Commit Graph

542 Commits

Author SHA1 Message Date
rlaphoenix 50d6f3a64d docs(changelog): Add v3.3.3 Changes 2024-05-07 07:10:20 +01:00
rlaphoenix 259434b59d docs(version): Bump to v3.3.3 2024-05-07 07:10:02 +01:00
rlaphoenix 7df8be46da build(poetry): Update dependencies
We can remove explicit dependency on language-data and marisa-trie because langcodes v3.3.0 now depends on language-data 1.2.0 and language-data 1.2.0 now depends on marisa-trie 1.1.0.
2024-05-07 07:06:22 +01:00
rlaphoenix 7aa797a4cc
Merge pull request #67 from Shivelight/feature/fix-webvtt-timestamp
Correct timestamps when merging fragmented WebVTT
2024-05-07 06:54:42 +01:00
Shivelight 0ba45decc6 fix(Subtitle): Correct timestamps when merging fragmented WebVTT
This applies the X-TIMESTAMP-MAP data to timestamps as it reads through a concatenated (merged) WebVTT file to correct timestamps on segmented WebVTT streams. It then removes the X-TIMESTAMP-MAP header.

The timescale and segment duration information is saved in the Subtitle's data dictionary under the hls/dash key: timescale (dash-only) and segment_durations. Note that this information will only be available post-download.

This is done regardless if you are converting to another subtitle or not, since the downloader automatically and forcefully concatenated the segmented subtitle data. We do not support the use of segmented Subtitles for downloading or otherwise, nor do we plan to.
2024-05-06 18:18:23 +01:00
rlaphoenix af95ba062a refactor(env): Shorten paths on Windows with env vars 2024-04-24 05:56:05 +01:00
rlaphoenix 3bfd96d53c fix(dl): Automatically convert TTML Subs to WebVTT for MKV support 2024-04-24 05:35:24 +01:00
rlaphoenix f23100077e refactor(dl): Improve readability of download worker errors
Now it will no longer print the full traceback for errors caused by a missing binary file. Other errors still include it and now explicitly label them as unexpected. CalledProcessError handling is now merged with all non-environment related errors and explicitly mentions that a binary call failed.
2024-04-24 05:28:10 +01:00
rlaphoenix fd64e6acf4 refactor(utilities): Remove get_binary_path, use binaries.find instead
The function now located at core/binaries should only be used by services to find a specific binary not listed in there already, or if the name of the binary needed by your service differs.
2024-04-24 05:10:34 +01:00
rlaphoenix 677fd9c56a feat(binaries): Move all binary definitions to core/binaries file
This simplifies and centralizes all definitions on where these binaries can be found to a singular reference, making it easier to modify, edit, and improve.
2024-04-24 05:07:25 +01:00
rlaphoenix 9768de8bf2 feat(env): List possible config path locations when not found 2024-04-19 19:28:15 +01:00
rlaphoenix 959b62222e fix(env): List all directories as table in info 2024-04-19 19:27:33 +01:00
rlaphoenix c101136d55 refactor(Config): Move possible config paths out of func to constant 2024-04-19 19:23:56 +01:00
rlaphoenix 4f1dfd7dd1 refactor(curl-impersonate): Update the default browser to chrome124 2024-04-18 09:50:17 +01:00
rlaphoenix c859465af2 refactor(curl-impersonate): Remove manual fix for curl proxy SSL
The new version of curl-cffi includes the proper fix for applying ca-bundles to proxy connections making this manual fix no longer required.
2024-04-18 09:49:35 +01:00
rlaphoenix d1ae361afc docs(changelog): Add v3.3.2 Changes 2024-04-16 06:07:00 +01:00
rlaphoenix a62dcff9ad docs(version): Bump to v3.3.2 2024-04-16 06:06:44 +01:00
rlaphoenix 920ce8375b build(poetry): Update dependencies 2024-04-16 06:06:05 +01:00
rlaphoenix 3abb869d80
Merge pull request #100 from retouching/patch-1
Check if width and height is digit if it's an str
2024-04-16 05:36:59 +01:00
rlaphoenix cbcb7e31b0 docs(contributors): Add retouching to Contributor list 2024-04-16 05:35:57 +01:00
retouching 4335806ca2 fix(Video): Allow specifying width/height as str, cast to int
We simply check the type near the top of the constructor, and later in the code it casts to int and handles failures there too (e.g., if the str is not a number, it will be handled).
2024-04-16 05:33:37 +01:00
rlaphoenix a850a35f3e fix(Basic): Return None not Exception if no proxy configured 2024-04-16 05:27:17 +01:00
rlaphoenix 09e80feee5 fix(cfg): Use loaded config path instead of hardcoded default 2024-04-14 03:44:30 +01:00
rlaphoenix f521ced3fe refactor(env): Use -- to indicate no config found/loaded 2024-04-14 03:42:41 +01:00
rlaphoenix b4e28050ab fix(env): List used config path, otherwise the default path 2024-04-14 03:35:17 +01:00
rlaphoenix 646c35fc1b fix(Subtitle): Optionalise constructor args, add doc-string & checks
Some HLS playlists can have extremely limited information so to accommodate this we need to make the Subtitle track support having almost no information. This isn't ideal but it's really the only solution.
2024-04-14 03:26:35 +01:00
rlaphoenix 7fa0ff1fc0 refactor(Subtitle): Do not print "?"/"Unknown" values in str() 2024-04-14 03:25:22 +01:00
rlaphoenix 5c7c080a34 fix(HLS): Ensure playlist.stream_info.resolution exists before use 2024-04-14 03:15:11 +01:00
rlaphoenix 1db8944b09 fix(HLS): Ensure playlist.stream_info.codecs exists before use 2024-04-14 03:14:45 +01:00
rlaphoenix 43585a76cb fix(Audio): Optionalise constructor args, add doc-string & checks
Some HLS playlists can have extremely limited information so to accommodate this we need to make the Audio track support having almost no information. This isn't ideal but it's really the only solution.
2024-04-14 03:13:46 +01:00
rlaphoenix 8ca91efbc5 refactor(Audio): Do not print "?"/"Unknown" values in str() 2024-04-14 03:12:50 +01:00
rlaphoenix 57b042fa4b refactor(Audio): List lang after codec for consistency with other Tracks 2024-04-14 03:08:40 +01:00
rlaphoenix 642ad393b6 style: Move __...__ methods after constructors 2024-04-14 03:07:23 +01:00
rlaphoenix 23485bc820 refactor(Video): Return None if no m3u RANGE, not SDR 2024-04-14 02:40:16 +01:00
rlaphoenix 15d73be532 fix(Video): Optionalise constructor args, add doc-string & checks
Some HLS playlists can have extremely limited information so to accommodate this we need to make the Video track support having almost no information. This isn't ideal but it's really the only solution.
2024-04-14 02:36:55 +01:00
rlaphoenix 9ddd9ad474 refactor(Video): Do not print "?"/"Unknown" values in str() 2024-04-14 02:32:34 +01:00
rlaphoenix dae83b0bd5 fix(Video): Ensure track is supported in change_color_range() 2024-04-14 02:31:31 +01:00
rlaphoenix 20da213066 docs(changelog): Add v3.3.1 Changes 2024-04-05 12:31:59 +01:00
rlaphoenix 36222972ee docs(version): Bump to v3.3.1 2024-04-05 12:30:43 +01:00
rlaphoenix 6a25b09301 build(poetry): Update dependencies 2024-04-05 12:30:09 +01:00
rlaphoenix b7ea94de29
Merge pull request #95 from knowhere01/master
Events not working as expected
2024-04-05 12:25:33 +01:00
rlaphoenix e92f8ed067 docs(contributors): Add knowhere01 to Contributor list 2024-04-05 12:24:25 +01:00
knowhere01 5a4c1bd6a2 fix(Events): Dereference subscription store from ephemeral store 2024-04-05 12:23:27 +01:00
rlaphoenix 994ab152a4 fix(requests): Fix multithreaded downloads
For some reason moving the download speed calculation code from the requests() function to the download() function makes it actually multi-threaded instead of sequential downloads.
2024-04-05 00:37:44 +01:00
rlaphoenix 5d1b54b8fa fix(Chapter): Cast values to int prior to formatting
If left as float, then it parses as e.g., `7.0` instead of `07`. This leads to the timestamp format being completely off.
2024-04-03 23:22:30 +01:00
rlaphoenix 10285c3819 feat(dl): Add *new* --workers to set download threads/workers
The previously named --workers which is now --downloads specified how many tracks to download, not how many threads/workers are used per-download.

It defaults to nothing, which each downloader then has their own defaults. All current downloaders though currently default to `min(32, (os.cpu_count() or 1) + 4)`, which is also the default for `ThreadPoolExecutor` in general.

This also brings a side effect of changing DASH and HLS's forced max_workers of 16 to now a more appropriate default but more importantly actually configurable. You can set a default in your config under `dl.workers`.
2024-04-03 00:58:47 +01:00
rlaphoenix 0cf20f84a9 refactor(dl): Change --workers to --downloads 2024-04-02 23:34:45 +01:00
rlaphoenix fb5580882b docs(changelog): Add v3.3.0 Changes 2024-04-02 21:59:43 +01:00
rlaphoenix 6d18402807 docs(version): Bump to v3.3.0 2024-04-02 21:53:07 +01:00
rlaphoenix 1db2230892 build(poetry): Update dependencies 2024-04-02 21:52:22 +01:00