Commit Graph
79 Commits
Author SHA1 Message Date
tcely f7b36a47da Use the media_file storage location
This should be the same, but this way works outside of this file too.
2024-12-23 19:31:38 -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 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
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
tcely de4a15efed Remove audio / video directory modification 2024-12-11 07:48:39 -05:00
tcely a4794ec3b1 Enable filter_source_cutoff with new logic 2024-12-11 06:59:32 -05:00
tcely bb73cc6c97 Add days_to_keep_date 2024-12-11 06:43:26 -05: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
tcely ed44838aa1 Merge branch 'main' into patch-1 2024-12-10 03:11:26 -05:00
tcely 63d0f4f15a Simplify regex for sub_langs 2024-12-10 02:02:30 -05: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
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
tcely fb663d508f Uppercase the codec string first, not last 2024-12-05 18:27:46 -05:00
tcely 6fdcc5ffa5 Handle STR0NNN in a generic way
The function should return 'VP9' for:

- vp9.1.2.3
- vp09.4.5.6

As well as other variations.
It also works for avc01 or av01, or any others that fit the pattern.
2024-12-05 17:56:53 -05:00
tcely f570fb57b9 Adjust to correct 60 fps case 2024-12-05 07:57:24 -05:00
tcely b1a4c8bbaf Include streams with a blank format_note and the proper height 2024-12-05 00:30:32 +00:00
tcely 09044aa95d Return for empty format lists first 2024-12-05 00:30:32 +00:00
tcely 6d7d3483a4 Use the audio format list from youtube-dl 2024-12-05 00:30:32 +00:00
tcely ed98f56946 Adjust VP09 vcodec to match VP09 source vcodec 2024-12-05 00:30:32 +00:00
tcely 526c6a97b4 Match against height instead of format 2024-12-05 00:30:32 +00:00
tcely 77247f7a7f Use reversed argument for multiple key sorting 2024-12-05 00:30:32 +00:00
tcely ede9dff4e6 Use new multiple key sorting 2024-12-05 00:30:32 +00:00
tcely 4b60073ef0 Add multiple key sorting 2024-12-05 00:30:32 +00:00
tcely 8f9bb782a7 Adjusted awk check
It turned out `exit` doesn't work as I thought it did.
2024-11-25 17:00:31 -05:00
tcely 6c7c1c6510 The response headers weren't useful 2024-11-24 08:34:34 -05:00
tcely 073ae73add Merge branch 'meeb:main' into patch-3 2024-11-24 08:17:00 -05:00
tcely 29dfe4570d Used awk to check for correct ffmpeg output 2024-11-24 08:16:34 -05:00
tcely a921adedc0 Test the output for FFMPEG_VERSION exists
The shell used on the build system doesn't support `pipefail` so test for output instead.

It might be incorrect output, but in combination with running the `ffmpeg` binary earlier, this should be enough.
2024-11-24 07:13:19 -05:00
tcely f4a88cf7fa Used the long form for all curl options. 2024-11-24 06:34:28 -05:00
tcely 163fcbeb2a Overwrite the specified file when it already exists 2024-11-24 06:10:30 -05:00
tcely 6b807a8654 Log the server response headers 2024-11-24 05:47:40 -05:00
tcely 3c5641b542 Ignore a curl config file that may exist 2024-11-24 05:44:22 -05:00
tcely 599728d38c Had file inspect the binary from the /init script instead. 2024-11-24 05:33:53 -05:00
tcely 10678afca2 Log what file determined about the extracted files 2024-11-24 00:33:45 -05:00
tcely d4834e427f Failed ffmpeg is now noisier
This should be enough to fail the build when the binary doesn't work.
2024-11-24 00:27:33 -05:00
tcely 908b55c191 Show which directories were created 2024-11-24 00:21:57 -05:00
tcely 401c687725 Adjusted HOME only for pipenv
Nothing later should have been affected, but this is the cleaner way.
2024-11-24 00:18:51 -05:00
tcely a60f68faf3 Used printf consistently
Specifically turn off flags to printf where none are intended.
There are fewer things to keep in mind this way.
2024-11-24 00:15:28 -05:00
tcely 583ebffc58 Spelled firewall correctly
Anyone using this to turn off the healthcheck firewall needs to update the variable that they are using.

Maybe announce this in the UI if the setting is not true?
2024-11-23 08:11:23 -05:00
tcely 304c36d648 Remove value from TARGETARCH
This should be set by the build system. I had stuck that value in while testing from the command line.
2024-11-22 12:55:21 -05:00
tcely 83f2831439 More fixes from testing for download_expected_file
- Used download_expected_file for ffmpeg also
- Updated to a ffmpeg version that could be downloaded
- Optimized tar extraction for ffmpeg
- Preserved the original `/root` using a copy in `/tmp` instead
- DRY'd the file name and expected / URL values
2024-11-22 10:43:00 -05:00
tcely 8885571c5a Fixes from testing for download_expected_file 2024-11-22 06:39:35 -05:00
tcely e654eca107 Used download_expected_file for s6 2024-11-22 05:48:08 -05:00
tcely 17b03e2c69 Moved s6 hashes into build args 2024-11-22 04:24:21 -05:00
tcely 23cf332d02 Record version values in the container
I'm tempted to use a .environment file to set the build argument values so that there is less to change for new versions.

Perhaps later 

Also, I am unsure why we don't just use `ARCH="${TARGET ARCH}"` since we are only using `ARCH` in things we control, as far as I can tell.
2024-11-22 03:31:54 -05:00
tcely 726d128db9 Added YOUTUBE_DL_TEMPDIR 2024-11-19 17:34:58 -05:00
tcely 314f3d874a Enable the yt-dlp tempdir by default 2024-11-19 17:32:07 -05:00
tcely 41e24b82b8 Made DEBUG work for youtube-dl also 2024-11-19 17:29:55 -05:00
tcely 20d631ca78 Use YOUTUBE_DL_TEMPDIR setting
Fixes #218
2024-11-19 17:06:46 -05:00