tcely
42a1033e7e
Rename old_youtube_cache_dirs
...
It makes sense to do this here because anyone who had the previous setting was, more than likely, using this file.
2024-12-22 02:42:30 -05:00
tcely
2f89c333a4
yt_dlp controls this directory
...
It's probably safe, and `yt_dlp` plays nicely when cleaning up, but this is more correct.
2024-12-22 01:52:15 -05:00
tcely
b9eb28fd36
There is a /config/cache directory we can safely use
2024-12-22 01:45:16 -05:00
tcely
2c26936035
fixup: remove the --no-cache-dir option
2024-12-21 20:23:47 -05:00
tcely
a2c97d2791
pipenv did not run with that option
2024-12-21 20:22:08 -05:00
tcely
f4c070ada7
Reduce image size and keep pycache in a volume
...
Not only are volumes typically faster to access than the image overlay, the cachee can be reused between containers.
2024-12-21 20:08:36 -05:00
tcely
abfa8ca042
Do not log when the skip state remains unchanged
2024-12-21 17:01:13 -05:00
tcely
f88df0d4e6
Manually skipped items do not need additional filtering
2024-12-21 16:46:17 -05:00
tcely
6c757185db
Do not try to skip already skipped media
...
Logically these functions can only mark media instances as skipped, so running them for media instances that are already marked that way is a waste of resources.
2024-12-21 16:19:26 -05: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
2ee635118b
Added logging to rename_files
...
Also, the fuzzy matching, by key in the filename, begins at the source directory.
2024-12-20 02:56:31 -05:00
tcely
4f56ebd1ce
Depend on the function to write a temporary file
2024-12-19 21:34:28 -05:00
tcely
72e4095354
Use TypeError in glob_quote
2024-12-19 21:26:10 -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
tcely
344759e522
Try not to leave empty directories around
2024-12-19 18:18:23 -05:00
tcely
521b903faa
Try to rename lost files by key
2024-12-19 18:01:30 -05:00
tcely
e3bcd78338
Use glob_quote in models.py
2024-12-19 17:28:15 -05:00
tcely
9168e82e8e
Add glob_quote
2024-12-19 17:20:06 -05:00
tcely
35912f0fe0
Use directory_and_stem in models.py
2024-12-19 16:56:31 -05:00
tcely
0e18d6d2bf
Don't return suffixes
...
This isn't useful.
The caller can create a `Path` to get this instead.
2024-12-19 16:46:11 -05:00
tcely
02f1d08570
Use mkdir_p in models.py
2024-12-19 16:36:15 -05:00
tcely
80a7718a64
Use mkdir_p in youtube.py
2024-12-19 16:30:43 -05:00
tcely
a33620f555
Add directory_and_stem and mkdir_p
2024-12-19 16:09:10 -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
Richard Hyde
435885ff61
added sync.tasks.download_media_metadata to the task map
2024-12-19 18:39:19 +00:00
Richard Hyde
6ae2676b8f
Ignore case when checking the filter
2024-12-19 18:18:33 +00:00
tcely
3a2157e9b3
Use the database values in the current instance
2024-12-18 05:11:26 -05:00
tcely
2ffeb5e8ea
Avoid glob matching the video itself
2024-12-18 04:58:47 -05:00
tcely
9be9b0c58a
More fixes after glob worked
...
stem should be:
1) a stem
2) a string
Replace temporary .nfo into the new directory.
2024-12-18 03:52:51 -05:00
tcely
4b17c08fa5
Fixup use of _glob_translation
2024-12-18 03:18:17 -05:00
tcely
40aed6fc5b
Escape fnmatch special characters in old_stem
2024-12-18 02:58:33 -05:00
tcely
8f0825b57f
Rewrite the .nfo file when the thumb path changed
2024-12-18 01:08:14 -05:00
tcely
278a92b7e1
Prioritize rename before checking for new media
2024-12-17 22:50:04 -05:00
tcely
fdbfd33cc7
Fixes from testing
...
I don't know how I missed `.suffix` on the later `stem` loop. Oops.
2024-12-17 22:27:37 -05:00
meeb
52865cb5b4
Merge pull request #585 from tcely/patch-1
...
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
Remove unused timedelta import
2024-12-18 13:33:15 +11:00
tcely
4193e79d0c
Ensure the directory exists
2024-12-17 19:29:20 -05:00
tcely
ba0449bd0c
Import rename_all_media_for_source too
2024-12-17 18:36:20 -05:00
tcely
b8ec33bba0
Hook up renaming to source_post_save
2024-12-17 18:24:13 -05:00
tcely
daaebc9c63
Add 'rename_all_media_for_source' to TASK_MAP
2024-12-17 18:13:47 -05:00
tcely
218c3e6dff
Add Media.rename_files
2024-12-17 17:39:02 -05:00