Commit graph

106 commits

Author SHA1 Message Date
Roland
a550b7d27b
Using lib in otp tests. 2022-02-03 13:16:10 -07:00
Roland
f2e4fcfa9c
Importing modules so its easier to see the relation between an api and its dependencies. 2022-02-03 12:39:14 -07:00
Roland
b4c1565fbb
Using new openapi.definition to show validation in docs. 2022-02-03 11:36:26 -07:00
Roland
56f31639db
Adding link to /docs for new Sanic version. 2022-02-03 10:07:04 -07:00
Roland
72cb9ce4ff
Missing Archive titles are filled in during refresh. 2022-02-03 08:50:40 -07:00
Roland
01bfe4de97
Limiting maximum title length in Archive files. 2022-02-02 20:48:43 -07:00
Roland
7b1c07f076
Archive files are migrated to new format. 2022-02-02 20:43:11 -07:00
Roland
8d3f65425a
Creating method that returns all Video files. Using this new method to delete the video files. 2022-02-02 16:30:58 -07:00
Roland
f655924c82
Fixing bug with DirectoriesRequest. 2022-02-02 16:18:08 -07:00
Roland
829f5eea08
Fixing archive counting. 2022-02-02 16:10:59 -07:00
Roland
a6a3284b49
Removing accidental print. 2022-02-02 16:09:39 -07:00
Roland
2946255fc6
Default to false to avoid non-archive files. 2022-02-02 16:08:18 -07:00
Roland
c1baeabe1f
Archive files with title in the name can be found. 2022-02-02 15:58:22 -07:00
Roland
284efedb80
Including title in archive file names. 2022-02-02 15:13:47 -07:00
Roland
3f08bce9ea
Removing consolidated hook because values were not being passed up. 2022-02-02 14:02:51 -07:00
Roland
812369fdb3
Refresh files removed files that were deleted. 2022-02-02 08:50:03 -07:00
Roland
22f603e567
Adding log when refreshing files. 2022-02-02 08:31:13 -07:00
Roland
643c86e9a4
Files can be searched. 2022-02-01 14:11:14 -07:00
Roland
a5e8ef16b6
Files are indexed by the words in their stem. Files can be searched via API. 2022-02-01 12:22:29 -07:00
Roland
30ca95d627
Creating files search api endpoint. 2022-02-01 10:02:39 -07:00
Roland
cd2ce1d691
Testing bad captions file parsing. 2022-02-01 09:56:59 -07:00
Roland
c79e28ff02
Upgrading base packages. Fixing failing test from merge. 2022-01-31 21:45:46 -07:00
Roland
c277a75a1a
Video tests pass with updated Sanic. 2022-01-31 21:30:07 -07:00
Roland
b1ed453466
Upgrading Sanic. Updating tests and schemas. 2022-01-31 21:30:07 -07:00
Roland
d17ad50d56
Archive tabs are handled by TabRouter. 2022-01-29 21:24:39 -07:00
Roland
dc888c6392
Squashed commit of the following:
commit 54d06bf8045fceaa2684348d110792e6833b170c
Author: Roland <roland@learningselfreliance.com>
Date:   Sat Jan 29 16:46:14 2022 -0700

    Can't delete files when WROL Mode is enabled.

commit 2d91f1983aae47bdb3f6dc7fc2bd2ae642c1126a
Author: Roland <roland@learningselfreliance.com>
Date:   Sat Jan 29 16:37:42 2022 -0700

    Fixing bug where files could not be deleted in series.

commit eed818c50682b19de9f18da2d4daedc54408cc49
Author: Roland <roland@learningselfreliance.com>
Date:   Sat Jan 29 16:26:31 2022 -0700

    Fixing fake_now to reset now() when complete.

commit 183e98cbec25784720ebaeabfac8af4a3fc87da8
Author: Roland <roland@learningselfreliance.com>
Date:   Sat Jan 29 16:08:14 2022 -0700

    Files can be deleted and downloaded.

commit c5bcd25a3da041f42b9e11eae804aa359ab9e985
Author: Roland <roland@learningselfreliance.com>
Date:   Sat Jan 29 14:41:07 2022 -0700

    Files can be deleted or downloaded.

commit 690b332bb4f89aa4e97ce2590b35bd4a71fefd87
Author: Roland <roland@learningselfreliance.com>
Date:   Sat Jan 29 14:11:05 2022 -0700

    File is opened in new tab when file is selected.

commit ba8ead6f3185d0a398c4f89cecb5958f5e7731a3
Author: Roland <roland@learningselfreliance.com>
Date:   Sat Jan 29 13:32:32 2022 -0700

    Removing files sort because React FE sorts them itself.

commit 4e04753234b11d615c5992bc08e9dd9fb7226c05
Author: Roland <roland@learningselfreliance.com>
Date:   Sat Jan 29 13:29:52 2022 -0700

    Duplicate directories are ignored.

commit c2f7d7929f37655e5c2d11767a512571263b35ef
Author: Roland <roland@learningselfreliance.com>
Date:   Sat Jan 29 12:22:38 2022 -0700

    Multiple directories can be requested.

commit 31678139c0799d0034d564cc1f8ae448234df90c
Author: Roland <roland@learningselfreliance.com>
Date:   Fri Jan 28 17:21:33 2022 -0700

    Files are displayed with the correct modified time.  Files can be recursively viewed.

commit a2d10a1dd792e518c8c6ad8f699b5d416c3d07e4
Author: Roland <roland@learningselfreliance.com>
Date:   Thu Jan 27 22:37:19 2022 -0700

    Files can be viewed.  Folders display their children.
2022-01-29 16:50:22 -07:00
Roland
83b9e3fc8f
Adding more video name parse tests. Using limiting match. 2022-01-27 21:09:22 -07:00
Roland
30b235a04e
Using greedy regex match on source_id. 2022-01-27 21:06:30 -07:00
Roland
8b0196ede3
Using new methods in download_channel. 2022-01-27 20:47:52 -07:00
Roland
8e47d2a9a0
Removing spread_channel_downloads function in favor of DownloadManager managing next_download. 2022-01-27 20:36:34 -07:00
Roland
b0465cb7f2
Restoring pytest fixture so PyCharm can find fixtures. 2022-01-26 17:15:35 -07:00
Roland
3dda813b9e
Download.next_download is assigned by the DownloadManager. 2022-01-26 17:10:18 -07:00
Roland
93204a0b2a
Displaying captions on video page. 2022-01-25 10:16:29 -07:00
Roland
0315def174
Videos can be sorted by their modification date. 2022-01-25 08:51:55 -07:00
Roland
f305d7912f
channel may be None. 2022-01-16 13:37:44 -07:00
Roland
6f58a2b563
Chrome attempts to screenshot in the current directory, but if the current directory is not a real user directory, the screenshot fail.s 2022-01-16 13:35:18 -07:00
Roland
1d9fe2f649
Setting channel id rather than channel because the channel may be in a different session. 2022-01-16 10:27:24 -07:00
Roland
89e3edb157
Creating functions to unify finding/making video directories. 2022-01-16 10:17:06 -07:00
Roland
a70e049823
Creating channel directory if it does not exist. 2022-01-16 09:28:22 -07:00
Roland
ca96bce6b7
Finding yt-dlp bin on startup. 2022-01-15 20:07:38 -07:00
Roland
e0b5966717
Creating videos and archives directory when they don't exist. 2022-01-15 19:58:38 -07:00
Roland
474e68cc3d
Fixing a few bugs in preparation for sneak peek. 2022-01-15 18:05:51 -07:00
Roland
fa0ccedd8b
Fetching next_download for each channel. 2022-01-15 13:52:43 -07:00
Roland
4f770bd215
Not counting empty videos in Channel statistics. 2022-01-15 13:31:53 -07:00
Roland
4a2fb577da
Creating channel directory if requested. 2022-01-15 13:23:57 -07:00
Roland
7d23a914e6
Info_json may not yet be a MediaPath. 2022-01-14 16:13:17 -07:00
Roland
f9a1f736ca
Not adding video when it was already in the session. 2022-01-14 16:11:14 -07:00
Roland
8b9d44df5c
Using str to check if video file is relative to channel directory. 2022-01-14 16:06:23 -07:00
lrnselfreliance
86893ef7f1
Feature/video validate (#74)
* Videos are marked as validated so they will not be tried again.  All previous bulk methods are combined into one.

* Passing json to fixture factory to avoid writing the files in every test.

* Adding log to explain if refresh is slow.

* Generating video poster if one cannot be found.

* Generating video poster if no poster can be found.

* Videos without a video file (yet to be downloaded) are not validated.

* Video title is extracted from the video file name as a last resort.

* Keeping existing view count because it may be from the channel, which will be more recent.

* Downloads should only be downloaded after they are due, not the same day.

* Setting manager on new downloads.

* Checking if downloading is disabled in loop.

* Adding log when refresh is complete.

* Not generating posters by default.  This is to avoid deleting files.

* Not converting posters unless channel has that enabled.

* Not logging on valid because all posters will be checked.

* Validating videos in upsert.

* Using video name parser in upsert.

* Using validate_video in upsert so that data is only read once from disk.

* Attaching manager in download_manager.get_download.

* Adding 22 to preferred video format for odd 720p resolution.

Signed-off-by: Roland <roland@learningselfreliance.com>
2022-01-14 15:54:51 -07:00
Roland
f21dfa4195
Deferring large video columns from select. 2022-01-11 08:56:27 -07:00