Commit graph

1313 commits

Author SHA1 Message Date
Roland
862909fe7e
Truncating long titles and urls in UI. 2022-01-14 16:27:16 -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
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
6976abcdad
Upgrading dependencies. 2022-01-13 07:03:41 -07:00
Roland
1cb6cbbaef
Upgrading pillow. 2022-01-13 06:37:50 -07:00
Roland
caf13e50e2
Forcing more specific check to avoid flashing. 2022-01-12 09:59:48 -07:00
Roland
ae9737e52b
Creating WROLModeMessage to warn users why functionality is disabled. 2022-01-12 09:38:21 -07:00
Roland
491db17fac
Changing button wording. 2022-01-11 10:23:28 -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
f21dfa4195
Deferring large video columns from select. 2022-01-11 08:56:27 -07:00
Roland
5133bc1c8c
Adding index to Video.source_id to speed up view count updates. 2022-01-10 08:30:10 -07:00
Roland
8f48e1b0d2
Commiting using channel session. 2022-01-07 14:46:03 -07:00
Roland
a96d6f97f3
A Channel must be refreshed before download. 2022-01-07 14:41:28 -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
512fb532d8
Revert "Raising error if channel directory does not exist."
This reverts commit 90e7d682fa.
2022-01-07 13:33:47 -07:00
Roland
1d69e5417a
Making calling optional_session optional. 2022-01-07 10:33:52 -07:00
Roland
90e7d682fa
Raising error if channel directory does not exist. 2022-01-06 19:53:29 -07:00
Roland
0bedec533e
Testing optional_session. 2022-01-06 14:59:43 -07:00
Roland
30affa20cd
Using archive request when testing. 2022-01-06 14:20:21 -07:00
Roland
2447ced632
Enabling downloads. 2022-01-06 13:56:49 -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
9091efaf2b
Not setting validated unless the conversion was successful. 2022-01-05 15:10:11 -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
e6fa9c79f7
Importing videos config after successful refresh. This is apply favorites to videos. 2022-01-05 09:50:46 -07:00
Roland
9d325e3a51
Forcing 5000 port for wrolpi app. 2022-01-04 21:08:54 -07:00
Roland
a75f5658b4
Removing unnecessary center. 2022-01-04 20:38:49 -07:00
Roland
f3b49b3551
Handling when a video has no channel, but should not be downloaded again. 2022-01-04 16:24:02 -07:00
Roland
0c2250ea12
Skipping video when download URL is bad. 2022-01-04 16:21:27 -07:00
Roland
a190348263
Ignoring and warning about error when refreshing a channel's videos. 2022-01-04 15:10:44 -07:00
Roland
b6c7ef1d99
Using video path as alternate title on video player. Showing 'No Description' when no description is available. 2022-01-04 14:48:01 -07:00
Roland
61abff1c5e
Video titles have HTML entities replaced. 2022-01-04 14:30:45 -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
ad1b8b805e
Applying textsearch coalesce fix to archive.textsearch. 2022-01-04 11:14:15 -07:00
Roland
6344e41db3
Fixing downgrade for latest patch. 2022-01-04 11:09:02 -07:00
Roland
38b756cf9d
Fixing bug where video.textsearch would be null if one of the columns was null. 2022-01-04 11:05:00 -07:00
Roland
fe9bdc190e
Using more broad video format selection. 2022-01-04 10:31:37 -07:00
Roland
ea7fb09689
Fixing bug where videos were not fetched on a channel page. 2022-01-04 09:26:21 -07:00
Roland
51b7c1cc75
Reformatting pages in a consistent way. 2022-01-04 09:07:28 -07:00
Roland
73af881f74
Removing temporary db updating container. 2022-01-03 16:36:58 -07:00
Roland
116d3d2a5e
Updating readme with changes. 2022-01-03 16:36:44 -07:00