Commit graph

688 commits

Author SHA1 Message Date
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
ba59a2c75e
Creating user before media directory. 2022-01-16 09:22:03 -07:00
Roland
ca96bce6b7
Finding yt-dlp bin on startup. 2022-01-15 20:07:38 -07:00
Roland
c00bc98755
Fixing ownership of mount directory. 2022-01-15 20:00:36 -07:00
Roland
fac3a8eba8
Fetching before resetting. 2022-01-15 19:59:36 -07:00
Roland
e0b5966717
Creating videos and archives directory when they don't exist. 2022-01-15 19:58:38 -07:00
Roland
b5ea4fe3de
Forcing reset of branch when checking out git branch. 2022-01-15 19:52:55 -07:00
Roland
9194e47e76
Customizing nginx error page to help user start wrolpi services. 2022-01-15 19:34:12 -07:00
lrnselfreliance
75e24a4ade
Merge pull request #75 from lrnselfreliance/release
Release
2022-01-15 19:15:57 -07:00
Roland
97bae3e7b2
Changing default media_directory to be more RPi friendly. 2022-01-15 19:13:55 -07:00
Roland
0a6cc62ad6
Using release branch for install. 2022-01-15 19:00:26 -07:00
Roland
cdb3f5855b
Fetching release branch before checking it out. Preferring ipv4 address over ipv6. 2022-01-15 18:59:22 -07:00
Roland
4a90bb86b6
Removing outdated config settings. 2022-01-15 18:39:35 -07:00
Roland
631368c1b6
Modifying install to use release branch. 2022-01-15 18:25:06 -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
6c5533a775
Handling API error with a toast. Showing WROLModeMessage on more pages. 2022-01-15 18:15:23 -07:00
Roland
474e68cc3d
Fixing a few bugs in preparation for sneak peek. 2022-01-15 18:05:51 -07:00
Roland
064147a769
Disabling generate_posters on FE by default. 2022-01-15 14:43: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
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