tcely
2e4ef80691
fixup: missed the list()
2025-02-12 13:25:40 -05:00
tcely
7bb29165e2
Correct the mapping keys
2025-02-12 13:15:56 -05:00
tcely
2195ac34b7
Remove RESOLUTION_MAP
2025-02-12 11:27:27 -05:00
tcely
3675496cfa
Use SourceResolution
2025-02-12 11:21:29 -05:00
tcely
668a3c6604
Use Fallback
2025-02-12 09:49:18 -05:00
tcely
0fdef5948c
Use Fallback
2025-02-12 07:32:23 -05:00
tcely
0f85803081
Use Fallback
2025-02-12 07:07:26 -05:00
tcely
4a1c0016fd
Use MediaServerType
2025-02-12 06:34:29 -05:00
tcely
f8229fff11
Use MediaServerType
2025-02-12 06:07:37 -05:00
tcely
ab9a6e6c76
Remove SponsorBlock_Category from fields.py
2025-02-12 05:46:32 -05:00
tcely
deefe060ed
Use SponsorBlock_Category from choices.py
2025-02-12 05:44:33 -05:00
tcely
073e08e27c
Actually return the updated dictionary
2025-02-12 05:29:10 -05:00
tcely
6b4adbd596
Add YouTube_SourceType._validation_urls class method
2025-02-12 05:03:48 -05:00
tcely
aabe249598
Use youtube_help
2025-02-12 04:10:52 -05:00
tcely
09c9d93372
Remove unneeded test_source_types
2025-02-12 03:20:25 -05:00
tcely
b45675b13a
Use a class method to generate the mapping dictionary
2025-02-12 02:46:27 -05:00
tcely
e79218c208
Use youtube_validation_urls
2025-02-12 01:33:11 -05:00
tcely
b64ca284e7
fixup: the 'p' must still be removed
2025-02-12 01:22:11 -05:00
tcely
8bedd4f9ff
Use a way that works for all versions
2025-02-12 01:18:45 -05:00
tcely
116b78db08
Make migrate happy again
2025-02-12 01:04:29 -05:00
tcely
3337dcae08
Fixes from testing
2025-02-12 00:59:38 -05:00
tcely
d550812022
Use youtube_long_source_types
2025-02-12 00:06:46 -05:00
tcely
c493e3c92a
Use youtube_long_source_types
2025-02-12 00:02:39 -05:00
tcely
934cb2ed58
Use IndexSchedule from choices.py
2025-02-11 23:31:13 -05:00
tcely
bb3d5fcdff
Remove CapChoices and IndexSchedule
2025-02-11 23:24:21 -05:00
tcely
47f3341b00
Remoce Source.SOURCE_TYPES
2025-02-11 23:10:23 -05:00
tcely
44a6e0c69a
Replace Source.SOURCE_TYPES
2025-02-11 23:08:02 -05:00
tcely
e0c60365ca
Start using YouTube_SourceType
2025-02-11 22:56:01 -05:00
tcely
50762d04f0
Merge pull request #286 from meeb/main
...
Update to upstream main
2025-02-11 22:33:56 -05:00
tcely
96737c4de3
Add choices from models.py
2025-02-11 22:32:43 -05:00
tcely
749fb1308e
Control writethumbnail with embed_thumbnail
2025-02-11 04:29:53 -05:00
tcely
0c282d4573
Use the .value strings
2025-02-11 02:51:23 -05:00
tcely
6f49474ade
Create choices.py
...
This is a start to moving various choices and mappings out of other files.
2025-02-11 02:16:29 -05:00
tcely
0850470867
Rename the internal function
...
After removing the assert, the old name was a bit confusing.
2025-02-10 22:57:09 -05:00
tcely
f963c55610
Limit the title string to fit in the database column
2025-02-10 08:52:09 -05:00
tcely
488294475a
Limit the metadata_title string to fit in the title column
2025-02-10 08:48:16 -05:00
tcely
b8f8d9d7fa
Use Media.get_metadata_field
2025-02-10 08:27:10 -05:00
tcely
b6334ce41c
Add timestamp to mappings
...
Return `field` instead of '' so that a missing mapping returns itself.
2025-02-10 08:18:22 -05:00
tcely
d7222e8fbb
Be consistent with get_media_metadata_task
2025-02-10 07:23:50 -05:00
tcely
92130f3604
Do not schedule additional download_media tasks
2025-02-10 06:19:25 -05:00
tcely
33ad4179b8
Clean up previously prepended task_status
2025-02-10 05:27:45 -05:00
tcely
b16fb062aa
Avoid ImportError
2025-02-10 04:50:08 -05:00
tcely
332f34c78e
Avoid ImportError
2025-02-10 04:46:35 -05:00
tcely
55637c2caf
Add status text to the download task
2025-02-10 04:34:58 -05:00
tcely
83dc375810
Save duration, timestamp, and title to Media instances
2025-02-09 19:32:13 -05:00
tcely
6390f5a1c3
Try to include timestamp
2025-02-09 16:15:48 -05:00
tcely
913514326a
Remove unused filter_media
2025-02-09 05:57:29 -05:00
tcely
cae285cd9f
Allow exec_cmd dictionary to be configured in settings
...
This is a dictionary with keys of `WHEN` and values are a `list` of commands for the `ExecPP` to run.
2025-02-09 04:51:17 -05:00
tcely
6247a8b062
Account for language code in subtitle files
2025-02-09 02:33:32 -05:00
tcely
4dbb0c5196
Remove subtitles also
...
Fixes #416
2025-02-09 02:21:16 -05:00
tcely
e58fae1f96
Skip over items that are not dictionaries
2025-02-08 20:17:53 -05:00
tcely
208a540bc9
Add and use list_of_dictionaries function
2025-02-08 19:59:00 -05:00
tcely
2fd5e70486
Use version sorting
2025-02-08 17:22:54 -05:00
tcely
1d51c6182b
COPY doesn't do any globbing
...
Instead, set up and use a 'python3' symbolic link.
2025-02-08 17:04:33 -05:00
tcely
2205f08124
Remove the assert for lang_codes
...
The test data doesn't conform to this expectation.
2025-02-08 16:11:45 -05:00
tcely
8bff3b6c24
More stringent checking of types
2025-02-08 16:02:38 -05:00
tcely
cfec876796
Adjust for requested_subtitles layout
2025-02-08 14:14:56 -05:00
tcely
e2680c4b24
Split the COPY line
2025-02-08 13:45:21 -05:00
tcely
a9078c3521
Update modify_chapters.py
2025-02-08 00:14:48 -05:00
tcely
bf7b57e666
Update modify_chapters.py
2025-02-07 22:27:26 -05:00
tcely
e889c78a48
Patch yt_dlp postprocessor modify_chapters.py
2025-02-07 21:20:31 -05:00
tcely
f78f33f8fa
Add modify_chapters.py
...
From:
https://github.com/tcely/yt-dlp/raw/refs/heads/modify-chapters-codecs/yt_dlp/postprocessor/modify_chapters.py
2025-02-07 21:15:13 -05:00
tcely
88a200a338
Update and rename modify_chapters.py to modify_chapters.py
2025-02-07 21:13:22 -05:00
tcely
23e38312a7
Create modify_chapters.py
2025-02-07 21:10:48 -05:00
tcely
3039e3105c
More VP9 tweaks
2025-02-07 19:12:17 -05:00
tcely
d1eecf19c2
Use libopus and speed up VP9 encoding
2025-02-07 18:56:09 -05:00
tcely
64302e8191
Change the minimum next step to 1
2025-02-07 17:15:45 -05:00
tcely
d7d1f52ff3
Completed fragments or bytes can be zero
2025-02-07 15:59:44 -05:00
tcely
23abc545d2
Replace '100%' with the calculated percent
2025-02-07 15:34:24 -05:00
tcely
90b892fd85
Prefer fragment count calculation
...
When the first fragment is downloaded, the percent is calculated as `100`, because the bytes and total are from the fragment, which prevents additional logging.
2025-02-07 15:21:23 -05:00
tcely
7f64226369
Add more keys to filter
...
- `heatmap`: is a huge list of tiny "chapters" used to display popularity of sections of the video
- `requested_subtitles`: also has a URL that expires
2025-02-07 14:58:43 -05:00
tcely
ee9849a1aa
Calculate percent from number of fragments downloaded
2025-02-07 13:58:22 -05:00
tcely
074230b737
Switch from key to filename
...
When downloading subtitles, key isn't available.
2025-02-07 13:04:23 -05:00
tcely
034110e6fe
Log str output
2025-02-07 11:42:19 -05:00
tcely
f5c832e5ab
fixup: use repr to identify the class
2025-02-07 07:35:51 -05:00
tcely
d6ed3388e2
Removing existing (unlocked) tasks is safe to use
2025-02-07 06:19:13 -05:00
tcely
71d84e1d74
Better output
2025-02-07 06:11:09 -05:00
tcely
6177ff4c59
Move get into BaseStatus
2025-02-07 05:42:34 -05:00
tcely
afa5ec8684
fixup: it is status not self needed here
2025-02-07 04:45:11 -05:00
tcely
09812019b5
Use next_progress to avoid logging in spurts
2025-02-07 04:28:52 -05:00
tcely
3c4849551b
Define then update *_hook dictionaries
2025-02-07 03:50:48 -05:00
tcely
75df4a57e3
Move common methods to a BaseStatus class
2025-02-07 03:44:12 -05:00
tcely
08842752d4
We can't use self without an instance
2025-02-07 03:06:21 -05:00
tcely
3b14e03842
Add & use functions from status classes
2025-02-07 01:50:23 -05:00
tcely
194e84b074
Differentiate the unknown event logs
2025-02-06 22:36:56 -05:00
tcely
3ec1d2dc29
Initialization is done by the class now
2025-02-06 22:26:23 -05:00
tcely
c24178f7d6
Support multiple independent statuses
2025-02-06 22:24:43 -05:00
tcely
36a9902d26
Reset hook.download_progress before downloading
2025-02-06 20:31:32 -05:00
tcely
6d71c69878
Reset hook.download_progress so that it isn't above 100%
2025-02-06 20:02:14 -05:00
tcely
dfc63a2b94
Reworked download progress hook
...
Be more resilient about missing keys.
Log the downloading state the first time through.
2025-02-06 18:06:15 -05:00
tcely
5a477eb97e
Stop when the paths match
2025-02-05 03:56:48 -05:00
tcely
4ec407cf6f
Bump ffmpeg
2025-02-04 13:39:46 -05:00
tcely
459cb4b891
Remove the td function
...
It is no longer being used for a default argument value.
2025-02-04 11:21:24 -05:00
tcely
0b233be517
Use a single datetime for now
2025-02-04 11:16:17 -05:00
tcely
3b58d86cd3
Remove code that didn't work
...
This method of changing `verbose_name` didn't result in any visible changes.
2025-02-04 11:05:18 -05:00
tcely
5cf7f1574a
We don't need the extra run
2025-02-03 21:22:19 -05:00
tcely
aba3b1f16d
Display the datetime without partial seconds
2025-02-03 18:32:41 -05:00
tcely
df5746dac4
Don't log the handled exception
2025-02-03 11:52:25 -05:00
tcely
a8e7299dbe
Log units and number within the try block
2025-02-03 11:44:02 -05:00
tcely
bf0dcc631a
Fixes from testing for wait_for_media_premiere
2025-02-03 11:33:56 -05:00