Commit graph

1313 commits

Author SHA1 Message Date
Roland
24df7c464e
Creating map import logger. 2022-10-22 14:40:08 -06:00
Roland
5970409209
Reformatting for easier reading. 2022-10-22 14:27:40 -06:00
Roland
d28797326b
Showing error modal when clicking hotspot toggle on Docker. 2022-10-22 14:27:18 -06:00
Roland
1230a3056d
Creating background_task function to keep set of tasks from being cleaned up during garbage collection. 2022-10-22 14:26:59 -06:00
Roland
6fa6be50fe
Stopping renderd when reseting map db.
Skipping channel import during test unless explicitly requested.

Deleting gis database during upgrade, if user agrees.  Increasing API verbosity.

Using status context to prevent fetching status in useHotspot.

Disabling wifi toggle button when pending.

Toggling hotspot when clicking nav hotspot icon.

Displaying Hotspot status icon in nav menu.

Importing channels/favorites after refreshing.

Refresh tasks cancel when server shuts down.

Bumping version for release speed.

Refreshing files is 3x faster.

Creating useRecurringTimeout hook which repeatedly calls a callback after a timeout.

Changing intervals to timeout so fetches don't stack up while server is loaded.

Checking that video file exists before fetching.

Creating release candidate branch.  Not indexing model associated files.
2022-10-21 15:21:57 -06:00
Roland
dbdcc7a57c
Copying some settings values to status to avoid calling both /settings and /status. 2022-10-16 11:53:44 -06:00
Roland
78218d3559
Decreasing some log warnings to debugs. Decreasing CPU temperature warning color. 2022-10-16 10:33:43 -06:00
Roland
c97af1060b
Restoring JSON date conversion. Handling when psutil temperatures are None. Updating Toggle.onChange usage in Settings. 2022-10-15 19:27:20 -06:00
Roland
ddcc2c0674
Increasing test coverage. Removing unused code. 2022-10-15 17:41:10 -06:00
Roland
acf4453a52
Increasing test coverage. 2022-10-15 10:37:49 -06:00
Roland
287edad9e6
Adding Download.settings column in alembic migration.
Reformatting.

Switching excluded_urls to a generic Download.settings json.

Download workers filter excluded urls.
2022-10-14 13:08:39 -06:00
Roland
e7fe65258c
Using divmod to calculate date parts. Using recommended datetime.now. 2022-10-10 08:51:46 -06:00
Roland
f0f48164f5 Upgrading Sanic to 22.6.2. 2022-10-09 18:46:05 -06:00
Roland
798f232fc5
Removing unused js functions. 2022-10-09 13:47:59 -06:00
Roland
bc7ebd4090
Indexing Archives after downloading. 2022-10-09 13:47:49 -06:00
Roland
dad00ad065
Using itertools.cycle to commit occasionally. 2022-10-09 13:12:59 -06:00
Roland
9a47135c99
Using asyncio subprocess for all archive service calls. Returning more informative errors when archive service fails. 2022-10-04 13:15:45 -06:00
Roland
c235ef65f3 Monitoring bandwidth for 2 seconds when running status main.
Updating archive's single-file call to use asyncio as well as fixing JSON error that used to be thrown.

Trying two place for single-file executable.

Adding more docs to bandwidth functions.  Extracting reused functions out.  Testing worker.

Ordering bandwidth statuses by their name.

Breaking down bandwidth by interface.

Splitting download buttons to avoid overflow.

Creating bandwidth worker which tracks server bandwidth usage to display on the status page.

Testing get_bandwidth_info() with no psutil.

Using psutil to fetch status.  Adding bandwidth status.
2022-10-03 16:44:56 -06:00
Roland
d82b7c12fb
Using grey color by default for some Semantic elements when no color is provided. 2022-09-29 14:58:16 -06:00
Roland
335ad7ceb0
Splitting Admin components into admin directory. 2022-09-29 12:02:09 -06:00
Roland
ff2a34f249
Adding 'inverted' key to theme context to add inverted to class names. 2022-09-29 09:12:53 -06:00
Roland
6362a12345
Adding CSS to invert FileCard Icons. Adding CardIcon in Theme to handle theme switching. 2022-09-29 08:57:46 -06:00
Roland
90f59a1a7b
Adding on-delete-cascade to video and archive tables. 2022-09-28 15:25:10 -06:00
Roland
6686a44a12
Adding heartbeat logging to download workers. 2022-09-28 14:56:06 -06:00
Roland
f05ff8518a
Saving user theme selection in localStorage. 2022-09-28 09:57:04 -06:00
Roland
4d54032fca
Simplifying theme switching listener. 2022-09-28 09:40:36 -06:00
Roland
fdfd1e98fc
Moving main ThemeContext.Provider into Theme module. Using live elapsed timers on Downloads page. 2022-09-28 09:38:05 -06:00
Roland
854cdf597a
Increasing time between queuing downloads. 2022-09-27 08:21:15 -06:00
Roland
e80f24f690
Moving periodic download logic into manager so the manager can call it when it is enabled. 2022-09-25 17:27:48 -06:00
Roland
00acd9d891
Multiple videos can be deleted using Videos list view. 2022-09-23 16:43:45 -06:00
Roland
69e899e032
Multiple archives can be deleted using Archive list view. 2022-09-23 16:22:57 -06:00
Roland
5cc15c9328
Restoring channel.match_regex functionality. 2022-09-23 15:32:28 -06:00
Roland
65322edf42
Creating video_channel_id_idx index. 2022-09-23 12:31:11 -06:00
dependabot[bot]
d4ed5fa5ce Fixing JS warnings.
Handling all combinations of toggle in light and dark.

Changing CPUUsageProgress colors to be more readable in dark mode.

Moving theme handling into Theme.js.  Importing element wrappers from Theme.js to handle element theming.

Changing video menu to dark mode.

Creating ThemeContext to share Dark Mode setting.

Removing duplicate code for search functions.

Displaying X when downloads are disabled.

Using react context to share settings across components.

Refusing to start workers when WROL Mode is enabled.

Changing warning to debug.

Queuing recurring downloads first.

Adding Video.url index.

Adding special handling for youtube shorts to videos.

Reworking Downloads to have one worker per process.

Testing creating downloads and getting downloaders.

Testing video validation and poster generation.  Testing video statistics.

Increasing inventory test coverage.

Adding pytest.ini to automatically detect async test.

Adding more archive test coverage.

Testing Archive CRUD.

Catching and logging when encountering error during indexing.

Using FileIcon when Archive has no screenshot.

A Video will be assigned to a Channel by its info json first, then to its directory.

Including suffix in File json.

Adding index for File.suffix.

Gathering suffix during indexing.

Passing entire file down to FileIcon.

Moving logging up.

Returning File.associated in file json.

Associated files are last in file search.

Removing duplicate refreshing code by creating new _refresh_directory function.

Changing File.idempotency to a datetime to avoid having to clear idempotency.

Truncating indexes to avoid error with large files.

Don't overwrite video data when info json is empty.

Using already_downloaded for channel videos.

Awaiting refresh in Channel.refresh.

Testing that videos already downloaded aren't downloaded again.

Adding indexes for video/archive referenced paths.

Changing grid width for mobile or computer.

Adding button to refresh specific directories.

Restoring Channel edit link.

Fixing caption path in video_modeler.

Adding ZIP files to mimetype colors.

Using model instead of first file's model.

Fetching File models in batches to avoid issuing a SELECT for every File with a model.

Flushing generated poster file.

Getting Channel in VideoPage, relying on Video.channl_id, falling back to URL's channel_id.

Attaching Video to it's Channel during download.

Using ExternalCardLink for ArchivePage singlefile link.

Validating and indexing videos after download.

Handling glob when file name contains matching characters.

Reworking and testing split_path_stem_and_suffix and glob_shared_stem.

Adding associated video files to DB during upsert.

Adding pending downloads to dashboard.

Hiding status when download is open.

Handling when load is empty.

Adding load statistics to Dashboard.

Limiting concurrent after_refresh functions.

Handling when no onSelect is declared.

Adding ImageRow for FileTable.

Moving image date into Card.Meta.

Using ExternalLink for FileCard.

Using ExternalLink for ImageCard.

Handling when error occurs during refresh of a directory.  Committing during refresh to avoid losing all files if an error occurs.

Removing api health check to avoid spamming logs.

Creating ImageCard to display image posters when they aren't too large.

Removing archive.domain_id not null.

Reworking file refresh to process all files in a single directory.

Bumping version for major file rework.

No longer checking for video corruption.

Adding duration by default to speed up tests.

Using register_indexer for all indexers.

Adding CPU usage progress bar in Welcome.

Modifying TextIndexer to ignore large text files.

Counting all files during refresh.

Adding refresh_logger to clarify logging.  Checking for wrol_mode before refresh functions.

Removing unused idempotency from video/channel tables.

Using magic module to speed up mimetype identification.

All tests pass.

Archive tests pass.

Changing video get endpoint to return 'file' to avoid ambiguity.

Video tests pass.

Simplifying regex filtering.

Using regex to ignore case when filtering.

Converting all channel classes to functions.

Restoring channel refresh and download buttons.

Matching format of Archive and Video pages.

Adding sorting to Archives search.

Reworking video orders for file search.  Using SearchInput for videos search.

Archives can be searched on the Archives page.  Domains can be filtered.

Reworking Archive search to use Files.  Videos, Archives and Global search use the FilesView.

Videos are claimed by their Channel based on the Channel's directory.  Prev and Next video cards are displayed on the VideoPage.

Creating useVideo for reworked VideoWrapper and VideoPage.

Adding Paginator to FilesView.

Moving file refresh button out of manage tab.  Removing Files page tabs.  Limiting refresh to one at a time.

Adding class for card icon to match poster height.

Video and Archives always re-claim their files on refresh.

Archive files are indexed and claimed.

FileView table is compact and striped.

Videos page uses FileView.

Updated navlinks to router v6.

Removing ! character from file names.

Disabling select button when cards are visible.

Adding show/hide button for FileTable selection.

The Archive Page is displayed.

Adding mimetype dropdown.

Upgrading to React Router v6 for useSearchParams.

Validating video during modeling.  Removing screenshot during corruption check because it was very slow.  Updating app to use video files as search results.

Updating video search to return Files.

Video and WROLPi tests pass.

Creating function to refresh files within a channel's directory.

Removing troubleshooting print.  Updating result order in test.

Reworking video_factory to handle a specific video file location.

Returning video model on file search.

Getting session using video_file.

Screenshotting when checking for video corruption.

Reducing ffmpeg calls by gathering duration during poster generation.

Moving video file matching into model.

VideoIndexer is moved into video module.  Video files are validated.

Moving files module into wrolpi in preparation to use it in modules.

Title and contents are indexed for text file.

Files are indexed on refresh by using their indexer.

Zip files are indexed using their contents.

Testing multiple zip files.

Adding unique to file.path.  Checking that the correct indexer is used.

Adding index to file.modification_datetime and file.size.

Handling file info gathering in File.do_index.  Only reading contents of file if file.indexed is False.

Video model is found during file refresh.  A Video record is created that has the associated files.

Videos without associated files are found.

Videos are found using registered video_modeler() rather than in refresh code.

Removing old video columns.

Handling video info json files.

Trying to import each module individually.  Will continue to import modules even if one fails.

Reworking refresh so it performs less DB calls.

Converting file.path to primary key.

file.path is always a pathlib.Path.

Updating video_factory to use new file system, testing it.

Bump sanic from 21.9.1 to 21.12.2 in /docker/archive

Bumps [sanic](https://github.com/sanic-org/sanic) from 21.9.1 to 21.12.2.
- [Release notes](https://github.com/sanic-org/sanic/releases)
- [Changelog](https://github.com/sanic-org/sanic/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/sanic-org/sanic/compare/v21.9.1...v21.12.2)

---
updated-dependencies:
- dependency-name: sanic
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-23 11:25:55 -06:00
Roland
1ede5f3f55
Removing ! character from file names. 2022-08-15 12:17:40 -06:00
lrnselfreliance
f94837299d
Merge pull request #137 from lrnselfreliance/dependabot/pip/docker/archive/sanic-21.12.2
Bump sanic from 21.9.1 to 21.12.2 in /docker/archive
2022-08-06 12:51:31 -06:00
lrnselfreliance
0cd08b1950
Merge pull request #138 from lrnselfreliance/dependabot/pip/sanic-21.12.2
Bump sanic from 21.12.1 to 21.12.2
2022-08-06 12:51:18 -06:00
dependabot[bot]
49ef463c71
Bump sanic from 21.12.1 to 21.12.2
Bumps [sanic](https://github.com/sanic-org/sanic) from 21.12.1 to 21.12.2.
- [Release notes](https://github.com/sanic-org/sanic/releases)
- [Changelog](https://github.com/sanic-org/sanic/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/sanic-org/sanic/compare/v21.12.1...v21.12.2)

---
updated-dependencies:
- dependency-name: sanic
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-06 05:59:11 +00:00
dependabot[bot]
b838164a9f
Bump sanic from 21.9.1 to 21.12.2 in /docker/archive
Bumps [sanic](https://github.com/sanic-org/sanic) from 21.9.1 to 21.12.2.
- [Release notes](https://github.com/sanic-org/sanic/releases)
- [Changelog](https://github.com/sanic-org/sanic/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/sanic-org/sanic/compare/v21.9.1...v21.12.2)

---
updated-dependencies:
- dependency-name: sanic
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-06 05:22:07 +00:00
Roland
3bfbaa4c22
Fixing bug where new downloads may not refresh without a next_download. 2022-07-23 16:12:28 -06:00
lrnselfreliance
42a9dc4c7b
Merge pull request #136 from lrnselfreliance/feature/multi-domain-download
DownloadManager uses multiple workers to download domains in parallel.
2022-07-22 16:38:21 -06:00
Roland
b6b04f2739
Removing unused code. Updating comments.
Removing timeout.  Updating tests now that downloads work.

Bumping version for async downloads.

Downloads run asynchronously.  Using aiohttp to make archive http request so ArchiveDownloader.do_download can be asynchronous.

Removing session for create_download(s) usages.

Reworkingk create_downloads to use optional_session.

Canceling download workers after tests and when stopping the manager.

All tests passing.

Tests pass!

Downloader tests pass.

DownloadManager uses multiple workers to download domains in parallel.
2022-07-22 16:35:42 -06:00
Roland
4cc7ef907f
Ignoring live chat when downloading videos. 2022-07-06 17:44:37 -06:00
lrnselfreliance
1c7d01f2fd
Merge pull request #135 from lrnselfreliance/feature/testing-status
Adding minimum tests for status functions and page.
2022-06-30 16:28:48 -06:00
Roland
2cc4c8a1e0
Testing for percent in circleci. 2022-06-30 16:26:26 -06:00
Roland
9270c5a79a
Removing assertion for circleci. 2022-06-30 16:25:34 -06:00
Roland
b411df1d1d
Adding minimum tests for status functions and page. 2022-06-30 16:22:57 -06:00
lrnselfreliance
8c72ae468a
Merge pull request #134 from lrnselfreliance/feature/status-page
Feature/status page
2022-06-30 16:04:39 -06:00
Roland
a1a444934e
Updating timeout to match new timeout logic.
Logging timeout.  Simplifying timeout logic.

Updating yt-dlp.

Bumping version for status page.

Ignoring /etc for docker.

Using top instead of custom script.

Warning when temperature file does not exist.

Handling when CPU files are not available.

Using swapping drive availablility for size.  Reworking page format.

Creating wrolpi status page.
2022-06-30 16:02:38 -06:00
Roland
59b9f3f81e
Using which() to locate ffmpeg. 2022-06-29 17:32:28 -06:00