Commit Graph
1106 Commits
Author SHA1 Message Date
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
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
tcely d85fb92b2e Remove unused timedelta import 2024-12-17 15:29:34 -05:00
tcely 10c5a989c0 Adjust to accurate function in logged error 2024-12-17 15:22:13 -05:00
tcely 11d9711907 Add rename_all_media_for_source function 2024-12-12 17:46:03 -05:00
tcely 730275746d Use django.db.connection as suggested 2024-12-12 15:19:54 -05:00
tcely 3e5711f0f2 Report db.sqlite3 size on dashboard 2024-12-11 08:19:34 -05:00
meeb 679f77b6b4 Merge pull request #579 from tcely/patch-4
Simplify directory_path
2024-12-12 00:07:41 +11:00
meeb 0fc3789cdc Merge pull request #578 from tcely/patch-1
Remove audio / video directory modification
2024-12-11 23:52:02 +11:00
tcely de4a15efed Remove audio / video directory modification 2024-12-11 07:48:39 -05:00
meeb fcb9803da6 Merge branch 'main' of github.com:meeb/tubesync 2024-12-11 23:44:39 +11:00
meeb 475a26d9dd migration caused by #574 2024-12-11 23:44:28 +11:00
meeb 356f4f1201 Merge pull request #577 from tcely/patch-1
Adjust days_to_keep logic
2024-12-11 23:34:16 +11:00
meeb 6c12244a25 whoops 2024-12-11 23:17:03 +11:00
meeb 2c12bf5797 tidy up settings and readme 2024-12-11 23:04:14 +11:00
tcely a4794ec3b1 Enable filter_source_cutoff with new logic 2024-12-11 06:59:32 -05:00
meeb 5f28b8be66 tweaks related to #572 2024-12-11 22:56:21 +11:00
meeb a8997400b2 Merge pull request #572 from jameswlane/main
Add Support for TUBESYNC_DIRECTORY_PREFIX Environment Variable
2024-12-11 22:45:42 +11:00
tcely bb73cc6c97 Add days_to_keep_date 2024-12-11 06:43:26 -05:00
meeb a8b12338af Merge pull request #576 from tcely/patch-1
Disable checking against days to keep
2024-12-11 22:16:32 +11:00
tcely d9c56db627 Disable checking against days to keep
This isn't the logic we should be using.
Just stop using it until the function is comparing the proper dates.
2024-12-11 05:35:09 -05:00
James W Lane ff8d00f5bd updating code per comments 2024-12-10 20:04:42 -06:00
meeb 1981301ed6 Merge pull request #566 from tcely/patch-1
Sort video formats by height and bitrate
2024-12-11 01:03:24 +11:00
meeb bd72513d69 bump s6 to v3.2.0.2 2024-12-10 22:36:45 +11:00
meeb 26cb02be07 bump yt-dlp and ffmpeg, resolves #575 2024-12-10 22:30:09 +11:00
tcely ed44838aa1 Merge branch 'main' into patch-1 2024-12-10 03:11:26 -05:00
meeb 7974819dfa Merge pull request #571 from tcely/patch-3
Handle STR0NNN in a generic way
2024-12-10 18:54:28 +11:00
meeb 6b7197c980 Merge pull request #574 from tcely/patch-2
Simplify regex for sub_langs
2024-12-10 18:44:51 +11:00