Commit Graph

693 Commits

Author SHA1 Message Date
tcely
a33620f555
Add directory_and_stem and mkdir_p 2024-12-19 16:09:10 -05: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
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
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
meeb
679f77b6b4
Merge pull request #579 from tcely/patch-4
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
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
Some checks are pending
Run Django tests for TubeSync / test (3.7) (push) Waiting to run
Run Django tests for TubeSync / test (3.8) (push) Waiting to run
Run Django tests for TubeSync / test (3.9) (push) Waiting to run
Run Django tests for TubeSync / containerise (push) Waiting to run
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
Some checks are pending
Run Django tests for TubeSync / test (3.7) (push) Waiting to run
Run Django tests for TubeSync / test (3.8) (push) Waiting to run
Run Django tests for TubeSync / test (3.9) (push) Waiting to run
Run Django tests for TubeSync / containerise (push) Waiting to run
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
tcely
63d0f4f15a
Simplify regex for sub_langs 2024-12-10 02:02:30 -05:00
meeb
44b1d21854
Merge pull request #573 from tcely/patch-5
Accept '-' in sub_langs
2024-12-10 17:45:24 +11:00
meeb
e230b7ce36
Merge pull request #569 from tcely/patch-2
Adjust to correct 60 fps case
2024-12-10 17:42:43 +11:00
tcely
a4dc416ce8
Simplify directory_path
This looked to be identical code to what `filename` used.
Remove the duplicated code by using the function instead.
2024-12-10 00:05:58 -05:00
James W Lane
aa3bc7e6af fixed default test 2024-12-09 22:23:32 -06:00
James W. Lane III
cf1aec6922
Merge pull request #1 from tcely/patch-4
directory mode on settings
2024-12-09 20:53:00 -06:00
tcely
049c6f3764
Accept '-' in sub_langs 2024-12-09 18:05:45 -05:00
tcely
d33be55b51
Raise an error for an invalid custom value 2024-12-09 15:44:32 -05:00
tcely
a487e64550
Raise an error for an unsupported value 2024-12-09 15:40:16 -05:00
tcely
2a63e3a360
Reset tubesync/sync/models.py (#16) 2024-12-09 15:26:12 -05:00
tcely
233d384e25
Removed unnecessary str 2024-12-09 14:56:41 -05:00
tcely
a02fd5bde9
maxsplit and quoting 2024-12-09 14:21:55 -05:00
tcely
279a01f9bc
directory mode on settings 2024-12-09 14:06:35 -05:00