tcely
89573e93f5
Add verbose_name
for better display
...
Also, some code readability changes.
2025-02-02 13:49:25 -05:00
tcely
deeb2f61a9
background
has less documentation than I wanted
2025-02-02 13:00:30 -05:00
tcely
9e46b9f6d5
A first attempt at waiting for future videos
2025-02-02 12:29:36 -05:00
tcely
480d5dd891
Add wait_for_media_premiere
task
2025-02-02 11:38:32 -05:00
tcely
4a3572c175
Also check for media.media_file.name
...
I thought this commit was already merged, but git claimed this line wasn't.
I don't think it matters if the `media.media_file.name` is blank here.
I made this mostly for completeness.
2025-02-02 07:31:41 -05:00
meeb
9c36b38ee3
Merge pull request #681 from tcely/squash-9
...
Fix the misspelled `expected_categories`
2025-02-02 17:18:32 +11:00
tcely
12fc5e2842
Fix the misspelled expected_categories
2025-02-02 01:16:47 -05:00
meeb
32e481675b
Merge pull request #680 from tcely/issue-362-sponsorblock_categories
...
Rework `sponsorblock_categories` and `CommaSepChoiceField`
2025-02-02 16:54:02 +11:00
meeb
f4eb18aa0e
Merge pull request #679 from tcely/patch-2
...
export `TUBESYNC_RESET_DOWNLOAD_DIR`
2025-02-02 16:47:37 +11:00
meeb
4902a446b4
Merge pull request #672 from tcely/patch-3
...
Adjustments for downloading delays
2025-02-02 16:46:23 +11:00
tcely
9397ec7389
Add tests for sponsorblock_categories
2025-02-02 00:07:45 -05:00
tcely
a06bd29f88
Do not uppercase
the SponsorBlock categories
...
Avoid the `text-transform` on `label` by simply not using that tag.
Anyone who is better with CSS than I am, with an improved solution, is welcome to create a pull request.
2025-02-01 22:45:57 -05:00
tcely
ae1042a3d0
Rework sponsorblock_categories
and CommaSepChoiceField
( #222 )
...
This is a good checkpoint.
* Loading from the database and saving back to the database both work.
* The categories are displayed in the web user interface appropriately.
* Editing the `Source` from the web user interface is working.
2025-02-01 20:57:27 -05:00
tcely
3939616d31
export TUBESYNC_RESET_DOWNLOAD_DIR
...
We don't need to overcomplicate this.
`sh` and `bash` provide easy ways to set empty variables.
2025-02-01 19:54:49 -05:00
tcely
da8aa06f27
Ensure MAX_RUN_TIME
is sane
...
Try the user's value, but set it appropriately if that fails.
Background tasks will have a minimum of 10 minutes to finish.
Downloading tasks will, at a minimum, sleep up to 90 seconds between downloads.
Increasing the `MAX_RUN_TIME` will also increase the maximum amount of time to sleep between downloads.
2025-02-01 11:13:44 -05:00
meeb
5e1da4e58e
remove common.logger import, switch to using stdout, solves #670
2025-02-01 18:50:36 +11:00
meeb
89d395f4ac
Merge pull request #674 from tcely/patch-2
...
Simply add the string we want
2025-02-01 18:33:30 +11:00
tcely
fefe1fbc4d
Simply add the string we want
...
I must have been fixated on using `replace()`.
After already splitting the string, using the part we don't want seems silly.
2025-02-01 02:28:23 -05:00
meeb
78e422f563
Merge pull request #673 from tcely/patch-2
...
Configure settings for this test
2025-02-01 16:48:47 +11:00
tcely
07a82e6df3
Configure settings for this test
...
Otherwise, environment variables can cause the `unfiltered` and `filtered` responses to match.
This breaks the assumption that the asserts are depending upon.
2025-02-01 00:31:47 -05:00
meeb
f9d838ca0d
Merge pull request #671 from tcely/patch-2
...
Update local_settings.py.container
2025-02-01 15:35:22 +11:00
tcely
d1a76ac0d1
Adjust download delays
...
It turns out I was being wildly optimistic with my first guess at useful delays.
2025-01-31 09:14:09 -05:00
tcely
86c1a5fcde
Remove duplicated settings and logic
2025-01-31 09:09:06 -05:00
tcely
b66073dcd2
Add formulas to settings
2025-01-31 09:05:11 -05:00
tcely
ec7c05d53f
Update local_settings.py.container
2025-01-31 08:46:49 -05:00
tcely
2c9e70f8cd
Update local_settings.py.container
2025-01-31 08:41:43 -05:00
meeb
65873a5963
Merge pull request #663 from tcely/patch-5
...
Reorganize hooks
2025-01-31 17:06:04 +11:00
meeb
9375bbacfb
Merge pull request #598 from tcely/patch-3
...
Remove files in post_delete when Media is deleted
2025-01-31 17:04:35 +11:00
meeb
157f5aabb0
Merge pull request #644 from tcely/patch-4
...
Fix filesizeformat prefixes
2025-01-31 16:58:31 +11:00
meeb
1c433159b1
Merge pull request #667 from tcely/patch-2
...
Fix log.debug()
2025-01-31 16:57:47 +11:00
meeb
667d535338
Merge pull request #666 from tcely/patch-8
...
Use strings for `ytopts` paths
2025-01-31 16:56:39 +11:00
tcely
60ee227caa
Prefer display_id
and fulltitle
for logs
2025-01-30 21:22:10 -05:00
tcely
2b8fea103e
Remove automatic_captions
from debug log too
2025-01-30 20:57:32 -05:00
tcely
cda3a485db
Prettier logged messages
2025-01-30 20:51:22 -05:00
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