Commit graph

60 commits

Author SHA1 Message Date
Roland
7b1c07f076
Archive files are migrated to new format. 2022-02-02 20:43:11 -07:00
Roland
c1baeabe1f
Archive files with title in the name can be found. 2022-02-02 15:58:22 -07:00
Roland
cad3617239
Bumping version for Files search. 2022-02-02 14:23:21 -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
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
70dc356adc
Fixing bug where a daily download would be performed repeatedly on the same day. 2022-01-31 12:39:55 -07:00
Roland
72df7f7edf
Not searching when home page search screen is empty. 2022-01-31 09:01:54 -07:00
Roland
8170313dd7
Displaying name and version in footer. 2022-01-30 16:59:26 -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
lrnselfreliance
2f6b461e4f
Merge pull request #88 from lrnselfreliance/bugfix/download-next_download
Bugfix/download next download
2022-01-27 21:17:28 -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
418613e83e
Combining date_zig_zag and into zig_zag. 2022-01-26 15:45:29 -07:00
Roland
0062511931
Creating date_zig_zag function which creates an infinite amount of dates between two dates. 2022-01-26 15:16:49 -07:00
Roland
94899bef6c
Bumping version for Video modification date. 2022-01-25 17:26:44 -07:00
Roland
0315def174
Videos can be sorted by their modification date. 2022-01-25 08:51:55 -07:00
Roland
c264354f23
Printing media directory permissions in oct form. 2022-01-24 18:06:39 -07:00
Roland
f77ff75362
Creating main.py argument which checks if the media directory is correct. 2022-01-24 18:04:23 -07:00
Roland
4a7f33b625
Printing git branch when printing version. 2022-01-24 16:41:03 -07:00
Roland
4145aad23c
Bumping verion for fix. 2022-01-22 19:56:19 -07:00
Roland
7244f2c557
Mounting test directory to api's /media/wrolpi. Updating Archive's Sanic to avoid depreciation error with uvloop. 2022-01-22 19:54:46 -07:00
Roland
9580e6a106
Renaming beta version to use -beta. 2022-01-17 15:44:33 -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
bd82154fdd
Bumping version for latest bugfixes. 2022-01-15 18:19:42 -07:00
Roland
e525fa137b
Logging when api is running in docker. 2022-01-15 18:18:17 -07:00
Roland
4a2fb577da
Creating channel directory if requested. 2022-01-15 13:23:57 -07:00
Roland
b5d5515174
Not sending Download.info_json to frontend. 2022-01-14 15:58:51 -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
0dbf8b704b
Download can find it's Downloader. 2022-01-11 10:22:19 -07:00
Roland
ad9b970212
Adding button to kill and disable all downloads. 2022-01-11 10:08:47 -07:00
Roland
daf795662b
Downloads are disabled while WROL Mode is enabled. 2022-01-11 09:16:19 -07:00
Roland
e93987c5c0
Unifying fetcher to use same session. 2022-01-07 14:13:48 -07:00
Roland
7d85e10acd
Limiting downloads to 100 for speed. 2022-01-07 14:09:34 -07:00
Roland
ad53cec428
Checking database name directly. 2022-01-07 14:03:59 -07:00
Roland
b9606c1b31
Adding check to ensure that tests are running in test db. 2022-01-07 13:59:43 -07:00
Roland
1d69e5417a
Making calling optional_session optional. 2022-01-07 10:33:52 -07:00
Roland
0bedec533e
Testing optional_session. 2022-01-06 14:59:43 -07:00
lrnselfreliance
6e55e7360b
Feature/raspberry pi archive (#72)
* Converting OTP PDF generation to Latex to avoid installing wkhtmltopdf.

* Creating temporary_directory_path to simplify creating a TemporaryDirectory of type Path.

* Removing author

* Linting

* Installing texlive-latex-extra for more readable font.

* Raspberry pi has to archive locally.

Signed-off-by: Roland <roland@learningselfreliance.com>
2022-01-06 13:56:19 -07:00
Roland
d8f4d356bb
Adding version information. Beta!! 2022-01-05 17:07:54 -07:00
Roland
3284a210bf
Using relative path for shorter repr. 2022-01-05 13:40:11 -07:00
lrnselfreliance
bedcc3a5e9
Bugfix/favorites import (#71)
* Favorite videos are saved even if the DB is wiped.

* Logging when importing.

* Warning when favorite video cannot be found.

* Handling when a favorited video has no channel.

* Fixing link name in log.

* vid2 was not in a channel.

Signed-off-by: Roland <roland@learningselfreliance.com>
2022-01-05 12:52:38 -07:00
Roland
9da3b3d8b2
Creating api_param_limiter which can be used to restrict limit or offset. 2022-01-04 12:15:11 -07:00
Roland
3cb2aaf6cf
Fixing archive deleting. 2021-12-31 22:35:23 -07:00
Roland
fb1f1c6926
Removing duplicate sorting code. 2021-12-31 20:33:47 -07:00
Roland
3f7145c940
Fixing video search bug. 2021-12-31 20:28:51 -07:00
Roland
6e16ad9a23
Archives can be searched by their contents. 2021-12-31 20:14:14 -07:00
Roland
a05cb2272e
Handling when archives have been manually deleted. 2021-12-30 22:23:32 -07:00
Roland
02f8584762
Squashed commit of the following:
commit 1663e1be9e
Author: Roland <roland@learningselfreliance.com>
Date:   Thu Dec 30 19:37:25 2021 -0700

    Setting downloader to video when a channel schedules it's videos for download.

commit a6811f9e87
Author: Roland <roland@learningselfreliance.com>
Date:   Thu Dec 30 19:33:27 2021 -0700

    Setting channel downloader when spreading channel downloads.

commit b63c8f132a
Author: Roland <roland@learningselfreliance.com>
Date:   Thu Dec 30 19:28:53 2021 -0700

    Fixing DownloadManager.kill

commit 120ce7cd2c
Author: Roland <roland@learningselfreliance.com>
Date:   Thu Dec 30 19:10:12 2021 -0700

    Fixing OTP api urls.

commit d3b985241b
Author: Roland <roland@learningselfreliance.com>
Date:   Thu Dec 30 19:07:48 2021 -0700

    Channel Cancel button does not submit form.

commit 9d1a0ecd55
Author: Roland <roland@learningselfreliance.com>
Date:   Thu Dec 30 19:00:53 2021 -0700

    A Channel without an existing Download cannot be downloaded.

commit e7c920f382
Author: Roland <roland@learningselfreliance.com>
Date:   Thu Dec 30 18:41:02 2021 -0700

    Fixing typing.

commit d56c8fde24
Author: Roland <roland@learningselfreliance.com>
Date:   Thu Dec 30 18:36:02 2021 -0700

    Testing bad downloader param.

commit e3c57ef674
Author: Roland <roland@learningselfreliance.com>
Date:   Thu Dec 30 18:31:35 2021 -0700

    Adding __json__ to Downloader for sending them to the FE.  Hiding ChannelDownloader because it will be handled specifically.

commit 047b507119
Author: Roland <roland@learningselfreliance.com>
Date:   Thu Dec 30 18:20:37 2021 -0700

    Downloader can be specified by the user.

commit 4a169ba43c
Author: Roland <roland@learningselfreliance.com>
Date:   Tue Dec 28 18:37:30 2021 -0700

    Download info a set in create_downloads.

commit 8778d53fa1
Author: Roland <roland@learningselfreliance.com>
Date:   Tue Dec 28 18:21:43 2021 -0700

    Fixing Download.info_json name.

commit b28bacfd5b
Author: Roland <roland@learningselfreliance.com>
Date:   Tue Dec 28 18:17:53 2021 -0700

    Downloader names are in the class, not in the init.

commit f5ce952da0
Author: Roland <roland@learningselfreliance.com>
Date:   Tue Dec 28 18:07:42 2021 -0700

    Download info can be saved during the download process and can be used by the Downloader.
2021-12-30 20:45:11 -07:00
Roland
f830fe3dcc
Dropping channel.next_download. Removing noisy download logs. 2021-12-27 16:43:52 -07:00