Commit Graph

16256 Commits (d5ef405c5d533c85cebd205a5b7958614c7013f3)

Author SHA1 Message Date
dirkf 11b284c81f
[Common:JWPlayer] Fix x1000 scaling error
See https://github.com/yt-dlp/yt-dlp/issues/5106#issuecomment-1264625161
2 years ago
dirkf 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.
2 years ago
dirkf 6e2626f092
[JSInterp] Improve separation logic
Based on 0468a3b325
2 years ago
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)
2 years ago
Xiyue 82e4eca711
[motherless] Fixed the broken uploader_id in the extractor (#31243)
* Fixed the broken uploader_id in the extractor.
* Make uploader_id RE looser
* Fix uploader_id in test Motherless_3
* Fix group pagination
* # coding: utf-8

Co-authored-by: Andy Xuming <xuminic@gmail.com>
Co-authored-by: dirkf <fieldhouse@gmx.net>
2 years ago
dirkf 1b1442887e
[manyvids] Improve extraction (#31172)
* extract all formats from page
* extract description, uploader, views, likes
* downrate previews
* fix tests
* use txt_or_none()
2 years ago
dirkf 22127b271c
[NRK] Remove explicit Accept-Encoding header that invites Brotli
Fixes #31285
2 years ago
coletdjnz d35557a75d [Telegraaf] Use mobile GraphQL API endpoint
Workaround for Cloudflare 403
Fixes https://github.com/yt-dlp/yt-dlp/issues/5000
Authored by: coletdjnz
2 years ago
pukkandan 7009bb9f31 [jsinterp] Workaround operator associativity issue
* temporary fix for player 5a3b6271 [1]

1. https://github.com/yt-dlp/yt-dlp/issues/4635#issuecomment-1235384480
2 years ago
dirkf 218c423bc0 [cache] Add cache validation by program version, based on yt-dlp 2 years ago
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
2 years ago
dirkf 4050e10a4c [options] Document that postprocessing is not forced by --postprocessor-args
Resolves #30307
2 years ago
dirkf ed5c44e7b7 [compat] Replace deficient ChainMap class in Py3.3 and earlier
* fix version check
2 years ago
dirkf 0f6422590e [compat] Replace deficient ChainMap class in Py3.3 and earlier 2 years ago
dirkf 4c6fba3765 [jsinterp] Improve try/catch/finally support 2 years ago
dirkf d619dd712f [jsinterp] Fix bug in operator precedence
* from 164b03c486
* added tests
2 years ago
dirkf 573b13410e [YouTube] Improve error check for n-sig processing 2 years ago
dirkf 66e58dccc2 [core] Avoid processing empty format list after removing bad formats
* also ensure compat encoding of error strings
2 years ago
dirkf 556862bc91 [utils] Ensure RFC3986 encoding result is unicode 2 years ago
gudata a8d5316aaf
[infoq] Avoid crash if the page has no `mp3Form`
* proposed fix for issue #31131, aligns with yt-dlp

Co-authored-by: dirkf <fieldhouse@gmx.net>
2 years ago
dirkf fd3f3bebd0 [uktvplay] Support domain without .uktv 2 years ago
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
2 years ago
dirkf 538ec65ba7
[jsinterp] Handle regexp literals and throw/catch execution (#31182)
* based on f6ca640b12, thanks pukkandan
* adds parse support for regexp flags
2 years ago
dirkf 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.
2 years ago
dirkf e52e8b8111 [postprocessor] Don't replace existing value with null metadata parsed from title 2 years ago
dirkf 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
2 years ago
dirkf e6a836d54c [core] Make `--max-downloads ...` stop immediately on reaching the limit
Based on and closes #26638.
2 years ago
dirkf deee741fb1
[test, etc] Improve download test logs; also clean up some new flake8 issues (#31153)
* [test] Identify testcase errors better
* [test] Identify download errors better
* [extractor/minds] Linter
* [extractor/aes] Linter
2 years ago
Wes adb5294177
[aenetworks] Update _THEPLATFORM_KEY and _THEPLATFORM_SECRET (#29749)
Fixes ytdl-org/youtube-dl#29300
2 years ago
Kyraminol Endyeran 5f5c127ece
[VVVVID] Support video/dash types (#31060)
Resolves #31030.
2 years ago
dirkf 090acd58c1
[options] Improve be35e53 (--match-/reject-title parameter value)
Resolves #31064.
2 years ago
dirkf a03b9775d5 [Mediaset] Support player version number in URL pattern
Ref: https://github.com/yt-dlp/yt-dlp/issues/4141
2 years ago
dirkf 8a158a936c [NHK] Use new API URL 2 years ago
dirkf cc179df346 [XHamster] Support xhday.com alias, extract `uploader_id`
* support xhday.com alias for xhamster.com (resolves #31023)
  Authored by: dirkf
* extract `uploader_id`:
  from 908b56eaf7
  (PR https://github.com/yt-dlp/yt-dlp/pull/844)
  Authored by: octotherp
2 years ago
pukkandan 0700fde640 [utils, etc] Kill child processes when yt-dl is killed
* derived from PR #26592, closes #26592

Authored by: Unrud
2 years ago
dirkf 811c480f7b [YouTube] Support JSON3 subtitle format
* subtitle tests updated to match
2 years ago
dirkf 530f4582d0 [HRFernsehen] Back-port new extractor from yt-dlp
Closes #26445, where this was originally proposed.
2 years ago
pukkandan 1baa0f5f66 [utils] Escape URL while sanitizing
Closes #31008, #yt-dlp/263

While this fixes the issue in question, it does not try to address the root-cause of the problem
Refer: 915f911e365736227e134ad654601443dbfd7ccb, f5fa042c82300218a2d07b95dd6b9c0756745db3
2 years ago
dirkf 04fd3289d3 [YouPorn] Improve `upload_date` extraction
See https://github.com/yt-dlp/yt-dlp/issues/2701#issuecomment-1034341883
3 years ago
dirkf 52c3751df7 [utils] Enable ALPN in HTTPS to satisfy broken servers
See https://github.com/yt-dlp/yt-dlp/issues/3878
3 years ago
dirkf 187a48aee2 [YouTube] Handle player c5a4daa1 with indirect n-function definition
* resolves #30976
3 years ago
Jacob Chapman be35e5343a Update options.py 3 years ago
dirkf c3deca86ae
[wat.tv] Add version `pver` to metadata API call
Resolves #30959.
3 years ago
dirkf c7965b9fc2
[NHK] Support alphabetic characters in 7-char NhkVod IDs (#29682) 3 years ago
dirkf e27d8d819f
[streamcz] Remove empty `'{}'.format()` for Py2.6
Use `'-join()'` here, or `{0}`, ..., in general.
3 years ago
Árni Dagur ebc627847c
[KTH] Add new extractor for KTH play (#30885)
* Implement extractor for KTH play
* Make KTH Play url regex more relaxed
3 years ago
dirkf a0068bd6be [Youtube] Fix "n" descrambling for player fae06c11
Resolves #30856.
3 years ago
nixxo 871645a4a4 [RAI] Fix extraction of http formats
From https://github.com/yt-dlp/yt-dlp/pull/3272
Closes https://github.com/yt-dlp/yt-dlp/issues/3270
Authored by: nixxo
3 years ago
nixxo 1f50a07771 [RAI] Extend formats with direct http mp4 link (PR #27990)
* initial support for creating direct mp4 link
* improved regexes and info extraction
* added "connection: close" to request headers
* updated to https://github.com/yt-dlp/yt-dlp/pull/208
3 years ago
nixxo 9e5ca66f16 [RAI] Added checks for DRM protected content (PR #27657)
reviewed by pukkandan (https://github.com/yt-dlp/yt-dlp/pull/150)
3 years ago
lihan7 17d295a1ec [extractor/bilibili] Fix path "/audio/auxxxxx" download return 403 3 years ago
dirkf 49c5293014 Ignore --external-downloader-args if --external-downloader was rejected
... and generate warning
3 years ago
df 6508688e88 Make default upload_/release_date a compat_str
Ensures download tests pass in Python 2 as well as 3; also
add YoutubeDL tests for timestamp -> upload_date etc.
3 years ago
dirkf 4194d253c0 Avoid skipping ID when unlisted_hash is numeric
Pattern needed a non-greedy match; also replaced a redundant test with one for this, issue 29690
3 years ago
dirkf f8e543c906 [Alsace20TV] Add new extractors Alsace20TVIE, Alsace20TVEmbedIE 3 years ago
dirkf c4d1738316 [CPAC] Add extractor for Canadian Parliament
CPACIE: single episode
CPACPlaylistIE: playlists and searches
3 years ago
dirkf 1f13ccfd7f
Fixed groups() call on potentially empty regex search object (#30676)
* Fixed groups() call on potentially empty regex search object.
- https://github.com/ytdl-org/youtube-dl/issues/30521

* minimising lines changed

Co-authored-by: yayorbitgum <50963144+yayorbitgum@users.noreply.github.com>
3 years ago
marieell 923292ba64 [aliexpress] Fix test case 3 years ago
Lesmiscore (Naoya Ozaki) 782bfd26db
[bigo] add support for bigo.tv (#30635)
* [bigo] add support for bigo.tv

* [bigo] prepend "Bigo says"

* title fallback

* add error for invalid json data
3 years ago
Vladimir Stavrinov 3472227074
[rutv] fix vbr for empty string value (#30623)
* [rutv] use str_to_int() (thx dirkf)
3 years ago
Petr Vaněk bf23bc0489 add missing __future__ import unicode_literals 3 years ago
Petr Vaněk 85bf26c1d0 resolve problem with unpacking operator for <py3.5 3 years ago
Petr Vaněk d8adca1b66 [streamcz] test fixes and one additional test 3 years ago
Petr Vaněk d02064218b do not use f-strings 3 years ago
Petr Vaněk b1297308fb avoid traverse_obj function 3 years ago
Petr Vaněk 8088ce036a revert: use _match_valid_url function 3 years ago
Petr Vaněk 29f7bfc4d7 [streamcz] cherry-pick from yt-dlp
Cherry-picked-from: 7d449fff5346 ("[streamcz] Fix extractor (#1616)")
3 years ago
dirkf 74f8cc48af [extractor/videa] Back-port from yt-dlp PRs 463+1028
Authored by: nyuszika7h
3 years ago
kikuyan 8ff961d10f [extractor/videa] fix extraction in Py2
Fixes #30416
3 years ago
dirkf 266b6ef185 [BBC] Also allow PID with leading 'l' (live?) 3 years ago
dirkf 825d3426c5
[Nuvid] Use site JSON for video details (#29332)
Back-port yt-dlp PR 1022 onto PR #17890 and update

Video details aren't in the original HTML now but populated by async JS

Co-authored by: u-spec-png
Co-authored by: vidaritos
3 years ago
dirkf 47b0c8697a [ARD] Back-port subtitle extraction from yt-dlp PR 2409
Authored by: fstirlitz
Fixes #30543
Closes #17766 (thanks ngdio)
3 years ago
Seonghyeon Cho 734dfbb4e3 Remove redundant assigning `format_id` 3 years ago
df ddc080a562 Add ArteTVCategoryIE to support category playlists 3 years ago
Abdullah Ibn Fulan 16a3fe2ba6 Updated Album URL regex
Mistakenly forgot to edit a line in last commit.

Co-authored-by: dirkf <fieldhouse@gmx.net>
3 years ago
Abdullah Ibn Fulan c820a284a2 [extractor/audiomack] Updated URL regex, corrected invalid testcases, fixed bug
Co-authored-by: dirkf <fieldhouse@gmx.net>
3 years ago
dirkf 58babe9af7 Support __INITIAL_DATA__ with stringified JSON
Add test and fix test for bbcthreeConfig
3 years ago
df 6d4932f023 Try for timestamp, description from window.__INITIAL_DATA__ pages 3 years ago
dirkf 92d73ef393 [niconico] Implement heartbeat for download 3 years ago
dirkf 91278f4b6b [niconico] Back-port extractor from yt-dlp
Add Nico search extractors, fix extraction
3 years ago
dirkf 584715a803 [applepodcasts] Extract default thumbnail image 3 years ago
dirkf e00b0eab1e [applepodcasts] Improve format extraction
Set acodec and vcodec, etc, to avoid breaking, eg, bestaudio
3 years ago
dirkf 005339d637 [applepodcasts] Support new AMP-ish page structure 3 years ago
Chris Rose 23ad6402a6 xvideos: Fix for #30271 3 years ago
dirkf 9642344965 Fix tests for working IEs; disable obsolete WDRMobile 3 years ago
dirkf 568c7005d5 Fix WDRMaus; extend URL matching for other Maus pages; improve ID extraction 3 years ago
dirkf 5cb4833f40 Update URPlayIE extractor for Next.js page format, with subtitles 3 years ago
dirkf 5197336de6 Support more deeply nested ptmd_path with test, update tests 3 years ago
dirkf 01824d275b Additional tweaks: allow any .ndr.de, simplify quote match 3 years ago
dirkf 39a98b09a2 Fix NDR, NJoy tests 3 years ago
dirkf f0a05a55c2 NJoy: improve extraction of NDR id, description, etc with current page formats 3 years ago
dirkf 4186e81777 NDR: improve extraction of NDR id, description, etc with current page formats 3 years ago
dirkf b494824286 Support Tele5 pages with Discovery Networks format instead of JWPlatform 3 years ago
dirkf 8248133e5e Back-port yt-dlp Viki extractor
From https://github.com/yt-dlp/yt-dlp/pull/2540
3 years ago
dirkf 27dbf6f0ab Return the item itself if playlist has one entry
Removes playlist spam from log
3 years ago
dirkf 61d791726f Find TV2DK Kaltura ID in Nuxt.js page format 3 years ago
pukkandan 0c0876f790 [youtube:search] Add tests 3 years ago
dirkf 5add3f4373 Merge branch 'pukkandan-yt-searchurl' into yt-dl-master
Closes #27749
3 years ago
pukkandan 78ce962f4f [youtube] Support channel search
Code from cd684175ad
3 years ago
dirkf 41f0043983 Avoid crashing if n-sig decode fails 3 years ago
dirkf 34c06b16f5 Support Youtube Shorts URL format 3 years ago
dirkf 1e677567cd
[YouTube] Fix n-sig for player e06dea74 (#30582)
From yt-dl commit 48416bc
3 years ago
df af9e72507e Implement n-param descrambling using JSInterp
Fixes #29326, closes #29790, closes #30004, closes #30024, closes #30052,
closes #30088, closes #30097, closes #30102, closes #30109, closes #30119,
closes #30125, closes #30128, closes #30162, closes #30173, closes #30186,
closes #30192, closes #30221, closes #30239, closes #30539, closes #30552.
3 years ago
dirkf 6ca7b77696 Refactor JSInterpreter._separate
yt-dlp/yt-dlp/@06dfe0a, improve _MATCHING_PARENS
3 years ago
dirkf 9d142109f4 Back-port test_youtube_signature.py from yt-dlp and fix JSInterp accordingly 3 years ago
dirkf 1ca673bd98 Fix splice to handle float
Needed for new youtube js player f1ca6900
Add 57dbe8077f (diff-729b57caa8d006426f6a8960c061f519a8b6658682284015e069745af52ffb07)
3 years ago
df e1eae16b56 Handle default in switch better
Add a1fc7ca074
Thanks coletdjnz
3 years ago
df 96f87aaa3b Back-port JS interpreter upgrade from yt-dlp PR #1437 3 years ago
df 5f5de51a49 Add compat_map/filter and use the former 3 years ago
pukkandan a3373da70c
Merge branch 'UP/youtube-dl' into dl/YoutubeSearchURLIE 3 years ago
pukkandan 2c4cb134a9
Fix max_results 3 years ago
pukkandan bfe72723d8
Use `itertools.islice` 3 years ago
pukkandan ed99d68bdd
Add back `YoutubeSearchURLIE` 3 years ago
Sergey M․ 5014bd67c2
release 2021.12.17 3 years ago
lanegramling b5242da7d2
[youtube] Update signature function patterns (closes #30363) (#30366) 3 years ago
bopol a803582717
[peertube] only call description endpoint if necessary (#29383) 3 years ago
Remita Amine 7fb9564420 [periscope] pass referer to HLS requests(closes #29419) 3 years ago
Aleri Kaisattera 379f52a495
[liveleak] Remove extractor (closes #17625, closes #24222) (#29331) 3 years ago
Sergey M․ cb668eb973
[pornhub] Add support for pornhubthbh7ap3u.onion 3 years ago
Sergey M․ 751c9ae39a
[pornhub] Detect geo restriction 3 years ago
Sergey M․ da32828208
[pornhub] Dismiss tbr extracted from download URLs (closes #28927)
No longer reliable
3 years ago
Sergey M․ 2ccee8db74
[curiositystream:collection] Extend _VALID_URL (closes #26326, closes #29117) 3 years ago
Sergey M․ 47f2f2fbe9
[youtube] Make get_video_info processing more robust (closes #29333) 3 years ago
Sergey M․ 03ab02730f
[youtube] Workaround for get_video_info request (refs #29333)
See https://github.com/ytdl-org/youtube-dl/issues/29333#issuecomment-864049544
3 years ago
Tianyi Shi 4c77a2e538
[bilibili] Strip uploader name (#29202) 3 years ago
bopol 4131703001
[youtube] Update invidious instance list (#29281) 3 years ago
Logan B cc21aebe90
[umg:de] Update GraphQL API URL (#29304)
Previous one no longer resolves

Co-authored-by: Sergey M. <dstftw@gmail.com>
3 years ago
Sergey M․ 57b9a4b4c6
[nrk] Switch psapi URL to https (closes #29344)
Catalog calls no longer work via http
3 years ago
kikuyan 3a7ef27cf3
[postprocessor/ffmpeg] Show ffmpeg output on error (refs #22680) (#29336) 3 years ago
kikuyan a7f61feab2
[egghead] Add support for app.egghead.io (closes #28404) (#29303)
Co-authored-by: Sergey M. <dstftw@gmail.com>
3 years ago
kikuyan 8fe5d54eb7
[appleconnect] Fix extraction (#29208) 3 years ago
kikuyan d156bc8d59
[orf:tvthek] Add support for MPD formats (closes #28672) (#29236) 3 years ago
Sergey M․ b224cf39d5
release 2021.06.06 3 years ago
Sergey M․ bb7ac1ed66
[facebook] Improve login required detection 3 years ago
Sergey M․ fdf91c52a8
[youporn] Fix formats and view count extraction (closes #29216) 3 years ago
Sergey M․ 943070af4a
[orf:tvthek] Fix thumbnails extraction (closes #29217) 3 years ago
Remita Amine 82f3993ba3 [formula1] fix extraction(closes #29206) 4 years ago
Sergey M․ d495292852
[ard] Relax _VALID_URL and fix video ids (closes #22724, closes #29091) 4 years ago
Sergey M․ 2ee6c7f110
[ustream] Detect https embeds (closes #29133) 4 years ago
Sergey M․ 6511b8e8d7
[ted] Prefer own formats over external sources (closes #29142) 4 years ago
Sergey M․ f3cd1d9cec
[twitch:clips] Improve extraction (closes #29149) 4 years ago
phlip e13a01061d
[twitch:clips] Add access token query to download URLs (closes #29136) 4 years ago
Sergey M․ 24297a42ef
[youtube] Fix get_video_info request (closes #29086, closes #29165) 4 years ago
Remita Amine 1980ff4550 [vimeo] fix vimeo pro embed extraction(closes #29126) 4 years ago
Remita Amine dfbbe2902f [redbulltv] fix embed data extraction(closes #28770) 4 years ago
Remita Amine e1a9d0ef78 [shahid] relax _VALID_URL(closes #28772, closes #28930) 4 years ago
Sergey M․ f47627a1c9
release 2021.05.16 4 years ago
Sergey M․ e90a890f01
[playstuff] Add extractor (closes #28901, closes #28931) 4 years ago
Sergey M․ 199c645bee
[eroprofile] Skip test 4 years ago
Sergey M․ 503a3744ad
[eroprofile] Fix extraction (closes #23200, closes #23626, closes #29008) 4 years ago