dirkf
ae8ba2c319
[YouTube] Fix KeyError QV in signature extraction failed
...
* temporarily force missing global definition into sig JS
* improve test: thanks https://github.com/yt-dlp/yt-dlp/issues/7327#issuecomment-1595274615
* resolves #32314
2023-06-17 15:55:19 +01:00
dirkf
d6433cbb2c
[jsinterp] Don't find unrelated objects
2023-06-17 15:46:12 +01:00
dirkf
ff75c300f5
[jsinterp] Fix test for failed match in extract_object()
2023-06-17 15:34:11 +01:00
dirkf
a2534f7b88
[jsinterp] Fix div bug breaking player 8c7583ff
...
Thx bashonly: https://github.com/ytdl-org/youtube-dl/issues/32292#issuecomment-1585639223
Fixes #32292
2023-06-11 17:23:00 +01:00
dirkf
b8a86dcf1a
[core] Revise 1f7c6f8 to help downstream merger (possibly)
2023-05-26 20:25:25 +01:00
dirkf
2389c7cbd3
[compat] Fix casefold import __all__ syntax in a19855f
2023-05-23 17:11:22 +01:00
dirkf
ee731f3d00
[ITV] Fix UA capitalisation in 384f632
2023-05-23 16:50:25 +01:00
dirkf
1f7c6f8b2b
[core] Further improve platform debug log
...
* see d1c6c5c
2023-05-23 16:50:25 +01:00
dirkf
d89c2137ba
[jsinterp] Small updates for a85a875
...
* update signature tests
* clarify NaN handling
2023-05-23 16:50:25 +01:00
dirkf
d1c6c5c4d6
[core] Improve platform debug log, based on yt-dlp
2023-05-11 21:17:31 +01:00
dirkf
6ed3433828
[jsinterp] Add short-cut evaluation for common expression
...
* special handling for (d%e.length+e.length)%e.length speeds up ~6%
2023-05-11 21:02:01 +01:00
dirkf
a85a875fef
[jsinterp] Handle NaN in bitwise operators
...
* also add _NaN
* also pull function naming from yt-dlp
2023-05-11 20:59:30 +01:00
dirkf
11cc3f3ad0
[utils] Fix compiled_regex_type in 249f2b6
2023-05-11 20:53:07 +01:00
dirkf
64d6dd64c8
[YouTube] Support Releases tab
2023-04-23 22:58:35 +01:00
dirkf
211cbfd5d4
[jsinterp] Minimally handle arithmetic operator precedence
...
Resolves #32066
2023-04-21 14:04:30 +01:00
dirkf
26035bde46
[DashSegmentsFD] Correctly detect errors when fragment_retries == 0
...
* use the success flag instead of the retry count
* establish the fragment_url outside the retry loop
* only report skipping a fragment once.
* resolves #32033
2023-04-13 00:23:17 +01:00
dirkf
2da3fa04a6
[YouTube] Simplify signature patterns
2023-04-12 23:53:14 +01:00
dirkf
fe7e13066c
[core] Add and use sanitize_info() method from yt-dlp
2023-04-10 17:12:31 +01:00
dirkf
213d1d91bf
[core] No longer importing copy
2023-04-06 19:49:46 +01:00
dirkf
f8253a5289
[core] Avoid deepcopy of ctx dict (fix f35b757) (Pt 2)
2023-04-06 19:42:36 +01:00
dirkf
d6ae3b77cd
[core] Avoid deepcopy of ctx dict (fix f35b757)
...
* may now contain `LazyList`s
* resolves #31999
2023-04-06 14:56:55 +01:00
dirkf
9f4d83ff42
[options] Add --mtime option, unsets default --no-mtime
...
* resolves #1709 (!)
2023-04-05 19:05:16 +01:00
dirkf
25124bd640
[devscripts] Improve hack to convert command-line options to API options
...
* define equality for DateRange
* don't show default DateRange
2023-04-05 19:05:16 +01:00
dirkf
78da22489b
[compat] Add and use compat_open() like Py3 open()
...
* resolves FIXME: ytdl-org/youtube-dl/commit/dfe5fa4
2023-04-05 18:57:37 +01:00
dirkf
557dbac173
[FragmentFD] Fix iteration with infinite limit
...
* fixes ytdl-org/youtube-dl/baa6c5e
* resolves #31885
2023-04-05 18:55:41 +01:00
dirkf
cdf40b6aa6
[test] Update tests for Ubuntu 20.04
...
* 18.04 test runner was withdrawn
* for now, disable Py 3.3/3.4 tests
2023-04-05 18:54:30 +01:00
dirkf
f35b757c82
[utils] Ensure allow_types for variadic() is a tuple
2023-03-19 02:29:00 +00:00
dirkf
45495228b7
[downloader/http] Only check for resumability when actually resuming
2023-03-19 02:15:41 +00:00
dirkf
6fece0a96b
[AENetworksBaseIE] Report missing show data instead of crash
2023-03-14 16:23:20 +00:00
dirkf
70ff013910
[devscripts] Add a hack to convert command-line options to API options
2023-03-14 16:23:20 +00:00
dirkf
e8de54bce5
[core] Handle /../ sequences in HTTP URLs
...
* use Python's RFC implementation for embedded sequences
* hack: strip unbalanced leading `../` from path, like eg Firefox
See https://github.com/yt-dlp/yt-dlp/issues/3355
2023-03-14 16:23:20 +00:00
dirkf
baa6c5e95c
[FragmentFD] Respect --no-continue
...
* discard partial fragment on `--no-continue`
* continue with correct progress display otherwise
Resolves #21467
2023-03-14 16:23:20 +00:00
dirkf
5c985d4f81
[downloader] Let _ffmpeg_ handle DASH segments
...
Fixes https://github.com/ytdl-org/youtube-dl/issues/31792 after 3da1783 .
2023-03-14 16:23:20 +00:00
dirkf and GitHub
8c86fd33dc
[doc] Improve "guidance" on bug reporting
2023-03-09 16:40:30 +00:00
dirkf
0402710227
[jsinterp] Fix regexp parsing and .replace[All] method
...
* For performance, make regexp object instantiation lazy
* Other small performance improvements
2023-03-07 01:24:21 +00:00
dirkf
f7ce98a21e
[YouTube] Support @owner format in uploader_id etc
...
* implement https://github.com/ytdl-org/youtube-dl/issues/31530#issuecomment-1435734719
* update affected tests
* misc clean-ups
2023-02-24 12:22:16 +00:00
dirkf
e67e52a8f8
[test] Support test-case with volatile ID (eg live show)
...
Signalled by regexp ID value, eg: `'id': r're:[\da-zA-Z_-]{8,}'`
2023-02-24 12:22:16 +00:00
df
6067451e43
[Vimeo] Fix e19ec52 for tween-age Pythons
...
* a check in older Pythons in the 2.7 and earlier, 3.3, 3.4 series caused "sre_constants.error: nothing to repeat"
* satisfy the check by avoiding nested qualifiers that can match empty string
Resolves #31597
2023-02-20 01:41:46 +00:00
dirkf
57802e632f
[jsinterp] Fix dict comprehension for Py2.6
...
Resolves #31600
2023-02-19 13:48:58 +00:00
dirkf and GitHub
2dd6c6edd8
[YouTube] Avoid crash if uploader_id extraction fails
...
See #31530 .
2023-02-17 11:16:54 +00:00
dirkf
dd9aa74bee
[test] Avoid name TestIE which causes a pytest warning
...
See: https://github.com/yt-dlp/yt-dlp/commit/060ac76257a8c1f7370a8a571821c1d73377701f
2023-02-14 16:36:40 +00:00
dirkf
42b098dd79
[InfoExtractor] Handle unquoted values in OpenGraph searches
2023-02-14 02:53:16 +00:00
dirkf
e8198c517b
[YouTube] Fix tests
2023-02-13 03:54:51 +00:00
dirkf
bafb6dec72
[YouTube] Refresh compat/utils usage
...
* import parse_qs()
* import parse_qs in lazy_extractors (clears old TODO)
* clean up old compiled lazy_extractors for Py2
* use update_url()
2023-02-13 03:54:51 +00:00
dirkf
4e04f10499
[compat] Update test_compat
...
[skip ci]
2023-02-13 03:54:51 +00:00
dirkf
90c9f789d9
[utils] Add parse_qs, update_url
...
[skip ci]
2023-02-13 03:54:51 +00:00
dirkf
249f2b6316
[compat] Systematise compat_ naming
...
[skip ci]
2023-02-13 03:54:51 +00:00
dirkf
d6b14ba316
[test] Fix TestAgeRestriction
...
* age restriction may cause DownloadError
* update obsolete test URLs
[skip ci]
2023-02-13 03:54:51 +00:00
dirkf
30e986b834
[YouTube] Add signatureTimestamp for age-gate bypass
2023-02-13 03:54:51 +00:00
dirkf
58988c1421
[YouTube] Bypass age-gating for certain restricted videos
...
* Use TVHTML5_SIMPLY_EMBEDDED_PLAYER client
* Also add and fix tests
* Introduce and use new utility function `update_url()`
2023-02-13 03:54:51 +00:00
dirkf
e19ec52322
[Vimeo] Support /user{video_id}/{slug} URL format
2023-02-12 22:16:00 +00:00
dirkf
f2f90887ca
[Vimeo] Fix Unable to extract info section redux
...
* as reported in yt-dlp/yt-dlp#6149
* also allow newline in target JSON object
2023-02-12 22:16:00 +00:00
dirkf
cd987e6fca
[jsinterp] Nits
2023-02-12 22:16:00 +00:00
dirkf
d947ffe8e3
[IGN] Overhaul extractor to avoid URL redirection loop
...
Consequently/also:
* centralise video data extraction
* detect 404 and 503 expected errors
* handle the test video in IGNVideo
* handle two additional page formats for the tests in IGNArticle
2023-02-12 22:16:00 +00:00
dirkf and GitHub
384f632e8a
[ITV] Overhaul ITV extractor ( #30266 )
...
* support ITVX URLs (thanks Vangelis66)
* support legacy ITV Hub URLs
* include extraction fix 4c57dd2 from sleaux-meaux 3 May 2021
* include extraction fix 6fbcc16, fix by staubichsauger & pukkandan
* work-around duration parsing pending fix to utils.parse_duration
* apply default vanilla UA for pages and media to avoid site blocking
* also detect and report `Episode not found` instead of generic 404
* rework ITVBTCCIE with geo-block detection, best effort geo-restriction handling, news article support
* fix tests
2023-02-03 21:10:07 +00:00
9d17948b5a
[myvideoge] Add new extractor ( #31360 )
...
NB download tests on CI servers blocked
Co-authored-by: Alfonso Solbes <fonk666@gmail.com >
2023-02-02 23:25:44 +00:00
dirkf and GitHub
bc6f94e459
[FIFA] Back-port extractor from yt-dlp ( #31385 )
2023-02-02 23:19:03 +00:00
dirkf
295736c9cb
[jsinterp] Improve parsing
...
* support subset `... else if ...`
* support `while`
* add `RegExp` class
* generalise `new` support
* limited more debug strings
* matching test changes
2023-02-02 16:31:49 +00:00
dirkf and GitHub
195f22f679
[generic] Improve KVS (etc) extraction
2022-11-13 15:09:29 +00:00
dirkf and GitHub
fc2beab0e7
[generic] Improve KVS (etc) extraction
...
* detect kt_player('kt_player', 'https://.../kt_player.swf?v=5 ...
* detect age limit if 18 USC 2257 is mentioned
* test with shooshtime.com
Partially resolves #31332 .
2022-11-13 14:59:30 +00:00
dirkf and GitHub
c2f9be3e63
[generic] Add KVS player extraction
2022-11-12 11:55:05 +00:00
604762a9f8
[common:jwplayer] Improve jwplayer extraction and parsing ( #31000 )
...
* don't crash parser if jwplayer_data is invalid (empty, or no formats)
* use `label` in `sources[n]` as `format_id`
* relax `jwplayer().setup(...)` RE (also rework PR #27274 enhancement)
* detect more manifest formats in _parse_jwplayer_formats() (from PR #29596 )
* improve metadata extraction (from PR #25433 )
* remember URLs in a set
* use parse_resolution() in format
* extract filesize in format (from yt-dlp)
Co-authored-by: kikuyan <kikuyan@users.noreply.github.com >
Co-authored-by: martin54 <martin54@users.noreply.github.com >
2022-11-11 00:49:13 +00:00
dirkf and GitHub
de39d1281c
[extractor/ceskatelevize] Back-port extractor from yt-dlp, etc ( #30713 )
...
* back-port extractor, removing CeskaTelevizePoradyIE
* follow redirect URL
* support liveBroadcast and videobonusDetail in __NEXT__ data
* return single video for singleton playlist
* fix/add tests
2022-11-04 10:13:07 +00:00
dirkf and GitHub
c4b19a8816
[compat] Work around in case folding for narrow Python build
...
Resolves #31324 .
2022-11-02 11:56:26 +00:00
dirkf and GitHub
087ddc2371
[compat] Add test for compat_casefold()
2022-11-01 22:47:02 +00:00
dirkf and GitHub
65ccb0dd4e
[compat] Add test for compat_casefold()
2022-11-01 21:33:39 +00:00
dirkf and GitHub
a874871801
[compat] Reformat casefold.py for easier updating
2022-11-01 19:25:59 +00:00
dirkf and GitHub
b7c25959f0
[compat] Unify unicode/str compat and move up
2022-11-01 12:40:23 +00:00
dirkf and GitHub
f102e3dc4e
[compat] Add compat_casefold and compat_re_Match, for traverse_obj() port
2022-10-31 21:27:14 +00:00
dirkf and GitHub
a19855f0f5
[compat] Add Python 2 Unicode casefold using a trivial wrapper around icu/CaseFolding.txt
2022-10-31 21:18:36 +00:00
dirkf and GitHub
502cefa41f
[Vimeo] Update variable name in hydration JSON pattern
...
Fixes #31311
2022-10-27 14:33:00 +00:00
dirkf and GitHub
0faa45d6c0
[BongaCams] Support new .net domain
...
Resolves #31262 .
2022-10-20 11:06:44 +00:00
dirkf and GitHub
ee8560d01e
[ManyVids] Support new single-page app structure
2022-10-13 02:42:49 +00:00
dirkf and GitHub
7135277fec
[ManyVids] Support new single-page app structure
...
See https://github.com/yt-dlp/yt-dlp/issues/5210#issuecomment-1276919962 .
2022-10-13 01:59:01 +00:00
dirkf and GitHub
7bbd5b13d4
[Motherless] Pull from yt-dlp, etc
...
* use username field
* loosen regexes
* warn on page count 0 in group
* avoid reloading group page 1
Closes #29626
2022-10-12 01:09:55 +01:00
dirkf and GitHub
11b284c81f
[Common:JWPlayer] Fix x1000 scaling error
...
See https://github.com/yt-dlp/yt-dlp/issues/5106#issuecomment-1264625161
2022-10-11 12:36:44 +00:00
dirkf and GitHub
c94a459a24
[utils] Sanitize look-alike Unicode glyphs in non-ID filename fields when --restrict-filenames
...
Implements https://github.com/ytdl-org/youtube-dl/issues/31216#issuecomment-1236102822 , which has a test.
2022-10-11 12:18:12 +00:00
dirkf and GitHub
6e2626f092
[JSInterp] Improve separation logic
...
Based on https://github.com/yt-dlp/yt-dlp/commit/0468a3b3253957bfbeb98b4a7c71542ff80e9e06
2022-10-11 05:58:10 +01:00
dirkf
c282e5f8d7
[ZDF] Overhaul ZDF extractors
...
* pull some yt-dlp changes into ZDFBaseIE._extract_format()
* add test cases from yt-dlp to ZDFIE
* fix crash in ZDFIE._extract_mobile() when object had no `formitaeten`
* improve title extraction in ZDFChannelIE (remove trailing station ident)
* avoid extracting non-video playlist items (fixes #31149 )
2022-10-11 00:05:17 +01:00
dirkf
2ced5a7912
[test] Implement string "lambda x: condition(x)" as an expected value
...
Semantics equivalent to `assert condition(got)`
2022-10-11 00:05:17 +01:00
dirkf and GitHub
1b1442887e
[manyvids] Improve extraction ( #31172 )
...
* extract all formats from page
* extract description, uploader, views, likes
* downrate previews
* fix tests
* use txt_or_none()
2022-10-10 19:26:32 +01:00
dirkf and GitHub
22127b271c
[NRK] Remove explicit Accept-Encoding header that invites Brotli
...
Fixes #31285
2022-10-10 17:41:40 +00:00
dirkf
9493ffdb8b
[test] Use windows-2019 for tests
...
(At least for now) resolves #31249
2022-10-04 11:31:29 +01:00
dirkf
218c423bc0
[cache] Add cache validation by program version, based on yt-dlp
2022-09-01 13:28:30 +01:00
dirkf
55c823634d
[jsinterp] Handle new YT players 113ca41c, c57c113c
...
* add NaN
* allow any white-space character for `after_op`
* align with yt-dlp f26af78a8ac11d9d617ed31ea5282cfaa5bcbcfa (charcodeAt and bitwise overflow)
* allow escaping in regex, fixing player c57c113c
2022-09-01 10:57:12 +01:00
dirkf
4050e10a4c
[options] Document that postprocessing is not forced by --postprocessor-args
...
Resolves #30307
2022-08-29 13:02:17 +01:00
dirkf
ed5c44e7b7
[compat] Replace deficient ChainMap class in Py3.3 and earlier
...
* fix version check
2022-08-26 12:22:01 +01:00
dirkf
0f6422590e
[compat] Replace deficient ChainMap class in Py3.3 and earlier
2022-08-26 10:24:42 +01:00
dirkf
4c6fba3765
[jsinterp] Improve try/catch/finally support
2022-08-26 08:51:17 +01:00
dirkf
d619dd712f
[jsinterp] Fix bug in operator precedence
...
* from https://github.com/yt-dlp/yt-dlp/commit/164b03c4864b0d44cfee5e7702f7c2317164a6cf
* added tests
2022-08-25 12:16:10 +01:00
dirkf
573b13410e
[YouTube] Improve error check for n-sig processing
2022-08-25 12:14:59 +01:00
dirkf
66e58dccc2
[core] Avoid processing empty format list after removing bad formats
...
* also ensure compat encoding of error strings
2022-08-21 00:45:06 +01:00
dirkf
556862bc91
[utils] Ensure RFC3986 encoding result is unicode
2022-08-21 00:45:06 +01:00
dirkf
fd3f3bebd0
[uktvplay] Support domain without .uktv
2022-08-19 19:11:08 +01:00
dirkf
46b8ae2f52
[jsinterp] Clean up and pull yt-dlp style
...
* add compat_re_Pattern
* improve compat_collections_chain_map
* use class JS_Undefined
* remove unused code
2022-08-19 15:34:33 +01:00
dirkf and GitHub
538ec65ba7
[jsinterp] Handle regexp literals and throw/catch execution ( #31182 )
...
* based on https://github.com/yt-dlp/yt-dlp/commit/f6ca640b122239d5ab215f8c2564efb7ac3e8c65 , thanks pukkandan
* adds parse support for regexp flags
2022-08-19 11:45:04 +01:00
dirkf and GitHub
b0a60ce203
[jsinterp] Improve JS language support ( #31175 )
...
* operator ??
* operator ?.
* operator **
* accurate operator functions
* `undefined` handling
* object literals {a: 1, "b": expr}
* more tests for weird JS comparisons: see https://github.com/ytdl-org/youtube-dl/issues/31173#issuecomment-1217854397 .
2022-08-17 14:22:02 +01:00
dirkf
e52e8b8111
[postprocessor] Don't replace existing value with null metadata parsed from title
2022-08-15 16:45:04 +01:00
dirkf and GitHub
d231b56717
[jsinterp] Overhaul JSInterp to handle new YT players 4c3f79c5, 324f67b9 ( #31170 )
...
* back-port from yt-dlp 8f53dc44a0cc1c2d98c35740b9293462c080f5d0, thanks pukkandan
* also support void, improve <</>> precedence, improve expressions in comma-list
* add more tests
2022-08-14 18:45:45 +01:00
dirkf
e6a836d54c
[core] Make --max-downloads ... stop immediately on reaching the limit
...
Based on and closes #26638 .
2022-08-10 15:37:59 +01:00