Commit Graph
692 Commits
Author SHA1 Message Date
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
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
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
James W Lane 0fafca037c updated tubesync type directory path 2024-12-09 09:33:28 -06:00