Commit Graph

765 Commits

Author SHA1 Message Date
tcely
d35f52f8ac
Drop /expire/ URLs from automatic_captions too 2025-01-08 11:31:23 -05:00
tcely
1c432ccce1
Some formats are using a different URL 2025-01-07 13:49:58 -05:00
tcely
7793701228
Simplify results from _url_keys
Also, name the tuple values when using the results.
2025-01-07 13:01:06 -05:00
tcely
8ac5b36eee
Use the exception function for traceback 2025-01-07 06:38:56 -05:00
tcely
2d85bcbe14
Use a distinct try to log errors 2025-01-07 06:20:01 -05:00
tcely
c7457e94ac
Check that the drop_key exists 2025-01-07 05:58:50 -05:00
tcely
7b8d11791d
Drop keys from formats that cannot be useful 2025-01-07 05:39:50 -05:00
tcely
431de2e0df
Loop over a set of keys for each URL type 2025-01-07 04:11:14 -05:00
tcely
db25fa8029
Adjusted comment 2025-01-07 03:35:58 -05:00
tcely
9a4101a0a1
Fix formatting 2025-01-07 03:18:39 -05:00
tcely
2f34fff713
Fixes from testing
The `automatic_captions` has a layer for language codes that I didn't account for.

The type checking was copied and I didn't adjust for the arguments in this function.
2025-01-07 02:55:05 -05:00
tcely
25d2ff6802
Don't reduce the actual data yet 2025-01-07 02:12:22 -05:00
tcely
ca75398548
Merge branch 'meeb:main' into filter-metadata-response 2025-01-07 01:35:13 -05:00
tcely
8c31720bf7
Log the reduction of metadata length 2025-01-07 01:33:06 -05:00
tcely
63fa97cc58
More compact JSON
The software doesn't need an extra space per key.
2025-01-07 00:43:59 -05:00
meeb
f6e557f502
Merge pull request #611 from tcely/patch-1
Don't chmod a+r when it already has those permissions
2025-01-07 16:41:35 +11:00
tcely
8c22b6c99e
Add response filtering
These functions aren't being used yet, they will be tested against my database before that happens.
2025-01-07 00:05:57 -05:00
tcely
215aa64f2d
Change to a logged warning for NFO permission problems 2025-01-06 10:35:37 -05:00
tcely
e64f71a970
Don't chmod a+r when it already has those permissions 2025-01-06 10:23:17 -05:00
meeb
25bc6143e0
Merge pull request #610 from tcely/patch-1
Some checks failed
Run Django tests for TubeSync / test (3.10) (push) Has been cancelled
Run Django tests for TubeSync / test (3.11) (push) Has been cancelled
Run Django tests for TubeSync / test (3.12) (push) Has been cancelled
Run Django tests for TubeSync / test (3.7) (push) Has been cancelled
Run Django tests for TubeSync / test (3.8) (push) Has been cancelled
Run Django tests for TubeSync / test (3.9) (push) Has been cancelled
Run Django tests for TubeSync / containerise (push) Has been cancelled
Match another variation of the message
2025-01-03 01:48:43 +11:00
tcely
59865a885b
Match another variation of the message
```
{key}: This video is available to this channel's members on level: Level 2: Contributor (or any higher level). Join this YouTube channel from your computer or Android app.
```
2025-01-02 02:39:19 -05:00
meeb
e2f2a7bb49
Merge pull request #595 from tcely/patch-7
Some checks failed
Run Django tests for TubeSync / test (3.10) (push) Has been cancelled
Run Django tests for TubeSync / test (3.11) (push) Has been cancelled
Run Django tests for TubeSync / test (3.12) (push) Has been cancelled
Run Django tests for TubeSync / test (3.7) (push) Has been cancelled
Run Django tests for TubeSync / test (3.8) (push) Has been cancelled
Run Django tests for TubeSync / test (3.9) (push) Has been cancelled
Run Django tests for TubeSync / containerise (push) Has been cancelled
Do not try to skip already skipped media
2024-12-26 12:56:40 +11:00
meeb
b40564ff93
Merge pull request #596 from tcely/patch-8
Reduce image size and keep pycache in a volume
2024-12-26 12:44:42 +11:00
meeb
4248824332
Merge pull request #599 from tcely/patch-4
Fix paths for when filename includes sub-directories
2024-12-26 12:43:16 +11:00
meeb
3b3203c7f1
Merge pull request #591 from tcely/patch-5
Handle raise_no_formats exception
2024-12-26 12:42:10 +11:00
meeb
76ac432e53
Merge pull request #593 from RichardHyde/handle_member_only_videos
Handle download_media_metadata task failures
2024-12-26 12:40:45 +11:00
meeb
417675c1ea
Merge pull request #597 from tcely/patch-1
Update ci.yaml
2024-12-26 12:30:53 +11:00
meeb
083467296e
Merge pull request #601 from tcely/patch-9
Only log new media
2024-12-26 12:29:26 +11:00
tcely
d74e6bf2ca
Avoid the unlikely possibility of None comparison 2024-12-25 20:16:07 -05:00
meeb
5774e6dfc6
Merge pull request #604 from tcely/patch-12
Use title from DB
2024-12-26 12:05:46 +11:00
meeb
e38709809e
Merge pull request #606 from tcely/patch-15
Made messages more human friendly
2024-12-26 11:59:53 +11:00
meeb
37b303ecec
Merge pull request #605 from tcely/patch-14
Cleanup removed media that has not been downloaded too
2024-12-26 11:59:12 +11:00
meeb
c08619cd87
Merge pull request #602 from tcely/patch-10
Remove duplicated ' to:'
2024-12-26 11:57:30 +11:00
meeb
2591e384b4
Merge pull request #600 from tcely/patch-6
Do not log download progress lines by default
2024-12-26 11:56:59 +11:00
meeb
51738afe71
Merge pull request #607 from tcely/patch-16
Bump yt_dlp & ffmpeg
2024-12-26 11:41:37 +11:00
tcely
942452c6a2
Skip media without any formats 2024-12-25 10:53:25 -05:00
tcely
568698351d
Use the N version of ffmpeg 2024-12-25 05:23:53 -05:00
tcely
3cea9270a0
Bump ffmpeg 2024-12-25 05:09:30 -05:00
tcely
8def84c7b4
Use filename_path
It's more directly what we want here.

If `filepath` ever changed to not use `filename` the value would be incorrect, so this is the cleaner way to display this value.
2024-12-25 01:17:04 -05:00
tcely
7343e39f35
Verbose output is no longer needed
I confirmed that the changes reduced the amount of files being removed.
2024-12-25 00:32:03 -05:00
tcely
0795eb951d
Consistency fixes
The `filepath` variable is defined before the `if` and used throughout the first block, so we should use it in the `else` block too.

Otherwise, a change to that variable would change the first block but not the second block.
2024-12-25 00:21:58 -05:00
tcely
6c4d31765a
Made messages more human friendly 2024-12-25 00:16:18 -05:00
tcely
01f0d82788
Cleanup removed media that has not been downloaded too 2024-12-25 00:07:57 -05:00
tcely
99899aac9c
Use title from DB
We stored a stripped title string in the database, just use that instead of `.name` and calling `.strip()` again.
2024-12-23 20:13:56 -05:00
tcely
3b41c8df81
Remove duplicated ' to:' 2024-12-23 16:55:26 -05:00
tcely
2799d95119
Only log new media
Channels with thousands of videos, that won't be downloaded, create large blocks in the logs without this.
2024-12-23 10:17:58 -05:00
tcely
b19614cc9f
Do not log download progress lines by default
When you set debugging, the default progress output can be viewed and/or logged, depending on the other options.
2024-12-23 01:28:46 -05:00
tcely
67b4995448
Remove manual_skip check 2024-12-22 16:16:06 -05:00
tcely
d1c6236b9d
Display the location the media was actually saved to 2024-12-22 11:54:56 -05:00
tcely
8a04139da9
Add data items to make comparison easier 2024-12-22 11:46:29 -05:00