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
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
5ee295db01
Keep the argument extraction in the function
2024-12-12 14:05:23 -05:00
tcely
11789df864
Pass the exception argument
...
Fixed up the try syntax too.
I really dislike try, but it's almost mandatory in Python.
2024-12-12 13:59:06 -05:00
tcely
ba0d5ab285
Regex and syntax tweaks
...
I didn't pay close enough attention to the try grammar.
2024-12-12 13:33:17 -05:00
tcely
36b395ae30
Don't pass the exception to _remove_invalid_keyword_argument
2024-12-12 12:31:30 -05:00
tcely
3fe7203ed5
Add and use _remove_invalid_keyword_argument
2024-12-12 12:13:27 -05:00
tcely
41215b9148
Automated invalid keyword argument removal
...
Less manual maintenance as versions change is a win!
2024-12-12 11:14:17 -05:00
tcely
32dead2126
Proof of concept for automated param removal
2024-12-12 10:35:46 -05:00
tcely
7b033d6e62
Use a filter map to make maintenance easier
...
A possible future improvement would be to define a map of which keys Connection accepts.
Right now, this is removing keys after Connection fails because of an unknown key.
This could be automated by using try and removing a key each time the exception is caught.
2024-12-12 09:52:51 -05:00
tcely
21e9cbef4b
Cleanup for _start_transaction_under_autocommit
2024-12-12 09:03:08 -05:00
tcely
de52e55e34
Return get_new_connection
...
Oops. It helps to have the resulting connection.
2024-12-11 16:30:48 -05:00
tcely
ebf1ed3ef4
Filter out the init_command key
...
TypeError: 'init_command' is an invalid keyword argument for Connection()
2024-12-11 16:04:09 -05:00
tcely
467ec947ff
Configure isolation_level from transaction_mode
...
TypeError: 'transaction_mode' is an invalid keyword argument for Connection()
2024-12-11 15:48:11 -05:00
tcely
0ab0605d22
Keep legacy_alter_table off
...
Newer Django will set this for us,
but it won't matter if it is disabled twice.
2024-12-11 13:42:05 -05:00
tcely
7e872bf8b5
Use tubesync.sqlite3
2024-12-11 13:35:12 -05:00
tcely
658f690b5b
Add tubesync.sqlite3
2024-12-11 13:33:50 -05:00
tcely
a11e3487d6
Add database options where newer Django expects them
...
The `3.2.x` versions don't have a lot of the code that `5.1.x` uses for this.
2024-12-11 12:33:14 -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
...
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
...
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