Commit Graph
1113 Commits
Author SHA1 Message Date
tcely 5dc3cc2564 Merge branch 'main' into patch-3 2025-01-30 20:21:39 -05:00
tcely 4a484d9814 Merge branch 'main' into patch-4 2025-01-30 20:15:27 -05:00
tcely 1705d48f1a common.logger imports logging first 2025-01-30 20:04:07 -05:00
tcely 5af916d335 Add log in the block that uses it 2025-01-30 19:50:56 -05:00
tcely 89c70ec782 Fix log.debug()
`common.logger` imports `settings`

Creating a circular dependency causes the failure to load this file from `tubesync/settings.py`.

Without the change to `DEBUG` from this file the log level is `INFO` instead of `DEBUG` so none of those messages were showing.
2025-01-30 19:45:26 -05:00
tcely 36814ddfcd fixup: quoting fun 2025-01-30 18:02:42 -05:00
tcely 0a39d96fc6 Add & use postprocessor_hook 2025-01-30 17:44:39 -05:00
tcely 005cd37fa7 Convert --sponsorblock-mark using yt-dlp
I shouldn't have tried this myself.

It's much more complicated than I originally thought.
2025-01-30 15:29:30 -05:00
tcely 1bbfed8e4d Don't embed spaces in keys 2025-01-30 14:40:03 -05:00
tcely 470dbf426e Parse the post processors strings already in use 2025-01-30 14:29:52 -05:00
tcely eb37df4e5b Merge branch 'main' into patch-5 2025-01-30 13:47:16 -05:00
tcely 8b102a3be6 Use strings for ytopts paths
The quick fixup works, this is simply cleaner.
2025-01-30 13:37:29 -05:00
tcely eaaa4365f6 Better handling of user specified post processors 2025-01-30 13:08:48 -05:00
tcely 583863cb7c Do not delete tasks that are currently running 2025-01-29 22:51:53 -05:00
meeb 58bd4c314a Merge pull request #664 from tcely/patch-6
Add `ytopts`
2025-01-30 14:08:38 +11:00
tcely 3822c1a4f2 Add ytopts
These are all optimizations:
- `writethumbnail`: for EmbedThumbnail to use
- `check_formats`: to save requests
- `overwrites`: to keep the first version of the video
- sleep intervals to slow down our tasks only for video downloads
2025-01-29 21:13:17 -05:00
tcely 8019a94c46 Log failure to get hook status object 2025-01-29 18:45:45 -05:00
tcely 7a9ab47d9b fixup: missed a comma 2025-01-29 14:50:39 -05:00
tcely f59946e874 Cleanup youtube.py 2025-01-29 14:42:34 -05:00
tcely 0a8e95ce81 Create hooks.py 2025-01-29 14:13:05 -05:00
meeb 152f88e7e7 Merge pull request #659 from tcely/patch-2
Use a temporary directory per task
2025-01-29 23:39:48 +11:00
tcely b816eb3596 fixup: use the name attribute 2025-01-29 04:05:18 -05:00
tcely 78b9aadcbf Use a temporary directory per task
I am seeing multiple ffmpeg processes that mess each other up.

I do not know why this is happening yet, but for now let them operate in their own temporary directories.
2025-01-29 03:55:52 -05:00
meeb 0eb7a4dab1 Merge pull request #655 from tcely/issue-645-sponsorblock
Use yt_dlp.get_postprocessors()
2025-01-29 17:16:15 +11:00
meeb 90eca25c27 add migrations for sponsorblock categories reworking, part of #657 2025-01-29 17:15:29 +11:00
tcely 3241f5dde6 Merge branch 'main' into issue-645-sponsorblock 2025-01-29 01:05:01 -05:00
meeb 30dbb1031d Merge pull request #657 from tcely/patch-2
Fix CommaSepChoiceField
2025-01-29 16:45:21 +11:00
meeb e0bcd330cc Merge pull request #658 from tcely/patch-5
Use TextChoices for SponsorBlock_Category
2025-01-29 16:44:10 +11:00
meeb ee32f238c4 Merge pull request #586 from tcely/rename-files-with-source-format-issue-185
Rename files after a source format change
2025-01-29 16:42:33 +11:00
tcely 24ac2e1aed Field expects verbose_name to be first, not separator 2025-01-29 00:23:02 -05:00
tcely f60c1d7b5b Move SponsorBlock_Category to fields.py 2025-01-28 21:53:42 -05:00
tcely 2b5ad21b20 Use TextChoices for SponsorBlock_Category 2025-01-28 20:37:32 -05:00
tcely e3501fe77a Fix CommaSepChoiceField
Using the separator that was chosen is the biggest fix.
2025-01-28 19:12:56 -05:00
tcely e59ba88e4e Add default values for the new settings 2025-01-28 16:29:45 -05:00
tcely d9c73d3dd7 Add new container settings
- TUBESYNC_RENAME_ALL_SOURCES: True or False
- TUBESYNC_RENAME_SOURCES: A comma-separated list of Source directories
2025-01-28 16:28:21 -05:00
tcely bf7127b973 Schedule the rename task when only the settings allow it 2025-01-28 16:19:17 -05:00
tcely 0695036610 Tweak the behavior of post processors 2025-01-28 01:45:45 -05:00
tcely 803319fe9f Let deepcopy do more work for us 2025-01-28 01:00:35 -05:00
meeb 82418334d4 Merge pull request #650 from tcely/patch-5
Download thumbnail and media at the same priority
2025-01-28 16:46:44 +11:00
meeb ee5211f8b8 Merge pull request #656 from tcely/patch-12
Set a default nice level
2025-01-28 16:07:17 +11:00
meeb 76cb9411ec Merge pull request #654 from tcely/patch-10
Display language_code for audio formats
2025-01-28 16:06:41 +11:00
meeb 6338b13abd Merge pull request #653 from tcely/patch-9
Default to valid JSON
2025-01-28 16:05:22 +11:00
meeb 63dbb4d8a3 Merge pull request #652 from tcely/patch-8
DRY {json,nfo,thumb}name functions
2025-01-28 16:04:19 +11:00
meeb 2b77d29f50 Merge pull request #651 from tcely/patch-6
Remove unnecessary spaces
2025-01-28 16:00:29 +11:00
meeb f96244bbee Merge pull request #648 from tcely/patch-2
Display media we can't download as skipped
2025-01-28 15:57:32 +11:00
tcely b40626f9dc Guess at ffmpeg options based on filename 2025-01-27 20:24:23 -05:00
tcely d34e1a204e Set a default nice level
Now that SponsorBlock is running, these jobs are using significant CPU resources.

Setting a nice level to let other things run better while `ffmpeg` is running seems wise.
2025-01-27 16:12:52 -05:00
tcely 133f08bd86 Hide format_note for combined audio / video 2025-01-27 15:17:39 -05:00
tcely bb226d4bc1 Made the output more friendly
- Humanize the Hz number 
- Do not output '@Nonek' for combined audio / video
2025-01-27 15:08:24 -05:00
tcely d2641c39cd Add asr to parsed formats 2025-01-27 14:34:10 -05:00