Commit Graph

731 Commits

Author SHA1 Message Date
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
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
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
tcely
495f62f25a
Display only the name part
`media.filename` is a `str`
`media.filepath` is a `Path`

The second has a simple way to remove directories, so use that instead of any custom string manipulation.
2024-12-22 11:14:32 -05:00
tcely
20527aa3c2
Update tests to not expect strings 2024-12-22 10:26:41 -05:00
tcely
8ebb333ea3
directory_path should be a Path, not str 2024-12-22 10:09:16 -05:00
tcely
4bbdfd2f24
Fix paths for when filename includes sub-directories 2024-12-22 09:44:27 -05:00
tcely
a1248be4ae
Update ci.yaml
Python `3.13` is not expected to work until Django `5.1` and we are currently using `3.2`, so that's not worth testing.

More info: https://code.djangoproject.com/ticket/34900
2024-12-22 05:33:08 -05:00
tcely
256f3254d9
Quote Python versions in ci.yaml 2024-12-22 05:21:28 -05:00
tcely
7c77ed1d78
Update ci.yaml
We can keep testing with Python `3.7` by using `ubuntu-22.04` instead of `ubuntu-latest` according to the `setup-python` issue.

More info: https://github.com/actions/setup-python/issues/962
2024-12-22 04:48:53 -05:00
tcely
6cce0520cb
Update ci.yaml
* Use the current major version tag for actions.
* Add current python versions.
* Remove Python 3.7 as it isn't being setup.
* Don't fail fast, so that one old version won't prevent testing other versions.
2024-12-22 04:28:43 -05:00
meeb
904c57f603
Merge pull request #592 from tcely/patch-6
Some checks failed
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
Use Path in file_is_editable
2024-12-22 19:06:40 +11:00
meeb
cfb8bef61e
Merge pull request #590 from tcely/patch-4
Switch to color option
2024-12-22 19:05:19 +11:00
meeb
63f82a0c54
Merge pull request #589 from tcely/patch-3
Remove forcejson option
2024-12-22 19:04:13 +11:00
meeb
4d2a393474
Merge pull request #587 from tcely/patch-1
Use tempfile for write_text_file
2024-12-22 18:58:35 +11:00
Richard Hyde
384d8a530d Merge branch 'handle_member_only_videos' of github.com:RichardHyde/tubesync into handle_member_only_videos 2024-12-21 14:20:23 +00:00
Richard Hyde
8f0e6c381f Removed filter ignore case change for pull request 2024-12-21 14:16:16 +00:00
Richard Hyde
9e04c66aac
Merge branch 'meeb:main' into handle_member_only_videos 2024-12-21 14:11:28 +00:00
tcely
cf951a820a
response is a dict just now
I don't know what I was thinking.
Add some type checking while I am at it.
2024-12-21 07:53:23 -05:00
tcely
54f2663f82
json.loads() expects a string 2024-12-21 06:50:24 -05:00
tcely
16e86ba79a
Accept limited metadata for subscriber_only videos 2024-12-21 05:55:48 -05:00
tcely
60a0600cde
Use Path in file_is_editable 2024-12-21 01:07:57 -05:00
tcely
394f937fcb
Handle raise_no_formats exception
Catching this and checking the message may be the best way to skip members only videos.
2024-12-20 10:07:24 -05:00
tcely
81bfe68034
Switch to color option
Avoids a warning:
`Overwriting params from "color" with "no_color"`
2024-12-20 08:23:35 -05:00
tcely
477753b88d
Remove forcejson option
As far as I can tell, this option only caused a lot of JSON output to be logged.
2024-12-20 08:18:40 -05:00
tcely
e204dea3e2
Use tempfile for write_text_file
This is more atomic and allows for checking `filepath`
before replacing the original file.
2024-12-19 20:32:52 -05:00
Richard Hyde
919d933d4d mark the video as skipped if the sync.tasks.download_media_metadata task fails 2024-12-19 18:44:35 +00:00
Richard Hyde
ca61df2e0b don't add the sync.tasks.download_media_metadata task if the video is skipped or there's already a task running 2024-12-19 18:42:14 +00:00