youtube-dl
14 months ago[compat] Fix old Pythons broken loading of valueless cookie attributes
dirkf [Mon, 17 Jul 2023 19:39:11 +0000 (20:39 +0100)]
[compat] Fix old Pythons broken loading of valueless cookie attributes

Cookie string parsing in Py 2.6.9, probably earlier, requires `=`.
Also 3.2, though the CPython code appears to be OK: 3.1 was also wrong.

14 months ago[test] Fixes for old Pythons
dirkf [Thu, 13 Jul 2023 19:14:50 +0000 (20:14 +0100)]
[test] Fixes for old Pythons

14 months ago[doc] Warn against setting cookies with --add-header
dirkf [Tue, 11 Jul 2023 20:51:32 +0000 (21:51 +0100)]
[doc] Warn against setting cookies with --add-header

14 months ago[downloader/external] Fix cookie support
bashonly [Tue, 4 Jul 2023 21:40:56 +0000 (16:40 -0500)]
[downloader/external] Fix cookie support

14 months ago[core] Process header cookies on loading
Simon Sawicki [Tue, 4 Jul 2023 19:41:04 +0000 (21:41 +0200)]
[core] Process header cookies on loading

14 months ago[utils] `YoutubeDLCookieJar`: Add `get_cookie_header` and `get_cookies_for_url` methods
bashonly [Tue, 4 Jul 2023 19:03:39 +0000 (14:03 -0500)]
[utils] `YoutubeDLCookieJar`: Add `get_cookie_header` and `get_cookies_for_url` methods

14 months ago[core] Remove `Cookie` header on redirect to prevent leaks
dirkf [Wed, 7 Jun 2023 18:38:54 +0000 (19:38 +0100)]
[core] Remove `Cookie` header on redirect to prevent leaks

Adated from yt-dlp/yt-dlp-ghsa-v8mc-9377-rwjj/pull/1/commits/101caac
Thx coletdjnz

14 months ago[core] Update redirect handling from yt-dlp
dirkf [Wed, 7 Jun 2023 13:51:50 +0000 (14:51 +0100)]
[core] Update redirect handling from yt-dlp

* Thx coletdjnz: https://github.com/yt-dlp/yt-dlp/pull/7094
* add test that redirected `POST` loses its `Content-Type`

14 months ago[compat] Add Request and HTTPClient compat for redirect
dirkf [Fri, 7 Jul 2023 17:51:38 +0000 (18:51 +0100)]
[compat] Add Request and HTTPClient compat for redirect

* support `method` parameter of `Request.__init__`  (Py 2 and old Py 3)
* support `getcode` method of compat_http_client.HTTPResponse (Py 2)

14 months ago[test] Make skipped tests in test_execution work with Py 2.6
dirkf [Mon, 17 Jul 2023 19:47:58 +0000 (20:47 +0100)]
[test] Make skipped tests in test_execution work with Py 2.6

14 months ago[core] Align error reporting methods with yt-dlp
dirkf [Fri, 7 Jul 2023 17:45:31 +0000 (18:45 +0100)]
[core] Align error reporting methods with yt-dlp

14 months ago[utils] Add {expected_type} and Iterable support to traverse_obj()
dirkf [Thu, 6 Jul 2023 14:46:22 +0000 (15:46 +0100)]
[utils] Add {expected_type} and Iterable support to traverse_obj()

14 months ago[core] Revert version display from b8a86dc
dirkf [Fri, 7 Jul 2023 17:41:32 +0000 (18:41 +0100)]
[core] Revert version display from b8a86dc

15 months ago[Misc] Fixes for 2.6 compatibility
dirkf [Tue, 4 Jul 2023 15:06:21 +0000 (16:06 +0100)]
[Misc] Fixes for 2.6 compatibility

15 months ago[workflows/ci.yml] Fix test support for Py 2.6
dirkf [Fri, 30 Jun 2023 02:52:39 +0000 (03:52 +0100)]
[workflows/ci.yml] Fix test support for Py 2.6

15 months ago[workflows/ci.yml] Restore test support for Py 3.2
dirkf [Thu, 29 Jun 2023 14:27:12 +0000 (15:27 +0100)]
[workflows/ci.yml] Restore test support for Py 3.2

15 months ago[workflows/ci.yml] Restore test support for Py 3.3, 3.4, and add 2.6
dirkf [Thu, 22 Jun 2023 23:15:06 +0000 (00:15 +0100)]
[workflows/ci.yml] Restore test support for Py 3.3, 3.4, and add 2.6

15 months ago[YouTube] Avoid crash in author extraction
dirkf [Thu, 22 Jun 2023 22:10:04 +0000 (23:10 +0100)]
[YouTube] Avoid crash in author extraction

15 months ago[workflows/ci.yml] Replace actions/setup-python for legacy Pythons
dirkf [Thu, 22 Jun 2023 16:24:48 +0000 (17:24 +0100)]
[workflows/ci.yml] Replace actions/setup-python for legacy Pythons

Thanks MatteoH2O1999: https://github.com/MatteoH2O1999/setup-python

15 months ago[YouTube] Improve nsig function name extraction
pukkandan [Thu, 22 Jun 2023 07:53:31 +0000 (13:23 +0530)]
[YouTube] Improve nsig function name extraction

Fixes player b7910ca8, using `,` vs `;`
See https://github.com/ytdl-org/youtube-dl/issues/32292#issuecomment-1602231170

Co-authored-by: dirkf
15 months ago[YouTube] Improve fix for ae8ba2c
dirkf [Sat, 17 Jun 2023 23:52:18 +0000 (00:52 +0100)]
[YouTube] Improve fix for ae8ba2c
Thx: https://github.com/yt-dlp/yt-dlp/commit/01aba25

16 months ago[YouTube] Fix `KeyError QV` in signature extraction failed
dirkf [Sat, 17 Jun 2023 14:36:39 +0000 (15:36 +0100)]
[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

16 months ago[jsinterp] Don't find unrelated objects
dirkf [Sat, 17 Jun 2023 14:43:10 +0000 (15:43 +0100)]
[jsinterp] Don't find unrelated objects

16 months ago[jsinterp] Fix test for failed match in extract_object()
dirkf [Sat, 17 Jun 2023 14:34:11 +0000 (15:34 +0100)]
[jsinterp] Fix test for failed match in extract_object()

16 months ago[jsinterp] Fix div bug breaking player 8c7583ff
dirkf [Sun, 11 Jun 2023 12:33:50 +0000 (13:33 +0100)]
[jsinterp] Fix div bug breaking player 8c7583ff

Thx bashonly: https://github.com/ytdl-org/youtube-dl/issues/32292#issuecomment-1585639223
Fixes #32292

16 months ago[core] Revise 1f7c6f8 to help downstream merger (possibly)
dirkf [Fri, 26 May 2023 19:25:25 +0000 (20:25 +0100)]
[core] Revise 1f7c6f8 to help downstream merger (possibly)

16 months ago[compat] Fix casefold import __all__ syntax in a19855f
dirkf [Tue, 23 May 2023 16:11:22 +0000 (17:11 +0100)]
[compat] Fix casefold import __all__ syntax in a19855f

16 months ago[ITV] Fix UA capitalisation in 384f632
dirkf [Tue, 23 May 2023 15:19:55 +0000 (16:19 +0100)]
[ITV] Fix UA capitalisation in 384f632

16 months ago[core] Further improve platform debug log
dirkf [Fri, 19 May 2023 12:12:59 +0000 (13:12 +0100)]
[core] Further improve platform debug log
* see d1c6c5c

16 months ago[jsinterp] Small updates for a85a875
dirkf [Fri, 19 May 2023 12:09:18 +0000 (13:09 +0100)]
[jsinterp] Small updates for a85a875
* update signature tests
* clarify NaN handling

17 months ago[core] Improve platform debug log, based on yt-dlp
dirkf [Thu, 11 May 2023 20:17:31 +0000 (21:17 +0100)]
[core] Improve platform debug log, based on yt-dlp

17 months ago[jsinterp] Add short-cut evaluation for common expression
dirkf [Thu, 11 May 2023 20:02:01 +0000 (21:02 +0100)]
[jsinterp] Add short-cut evaluation for common expression
* special handling for (d%e.length+e.length)%e.length speeds up ~6%

17 months ago[jsinterp] Handle NaN in bitwise operators
dirkf [Thu, 11 May 2023 19:59:30 +0000 (20:59 +0100)]
[jsinterp] Handle NaN in bitwise operators
* also add _NaN
* also pull function naming from yt-dlp

17 months ago[utils] Fix `compiled_regex_type` in 249f2b6
dirkf [Thu, 11 May 2023 19:53:07 +0000 (20:53 +0100)]
[utils] Fix `compiled_regex_type` in 249f2b6

17 months ago[YouTube] Support Releases tab
dirkf [Sun, 23 Apr 2023 21:58:35 +0000 (22:58 +0100)]
[YouTube] Support Releases tab

17 months ago[jsinterp] Minimally handle arithmetic operator precedence
dirkf [Fri, 21 Apr 2023 13:04:30 +0000 (14:04 +0100)]
[jsinterp] Minimally handle arithmetic operator precedence

Resolves #32066

18 months ago[DashSegmentsFD] Correctly detect errors when `fragment_retries` == 0
dirkf [Wed, 12 Apr 2023 23:15:07 +0000 (00:15 +0100)]
[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

18 months ago[YouTube] Simplify signature patterns
dirkf [Tue, 11 Apr 2023 16:36:27 +0000 (17:36 +0100)]
[YouTube] Simplify signature patterns

18 months ago[core] Sanitize info dict before dumping JSON (fixes fe7e130) (#32032)
Gabriel Nagy [Wed, 12 Apr 2023 22:40:38 +0000 (01:40 +0300)]
[core] Sanitize info dict before dumping JSON (fixes fe7e130)  (#32032)

* follow up to fe7e130 which didn't fix everything.

Co-authored-by: dirkf <fieldhouse@gmx.net>
18 months ago[core] Add and use sanitize_info() method from yt-dlp
dirkf [Mon, 10 Apr 2023 16:12:31 +0000 (17:12 +0100)]
[core] Add and use sanitize_info() method from yt-dlp

18 months ago[core] No longer importing copy
dirkf [Thu, 6 Apr 2023 18:49:46 +0000 (19:49 +0100)]
[core] No longer importing copy

18 months ago[core] Avoid deepcopy of ctx dict (fix f35b757) (Pt 2)
dirkf [Thu, 6 Apr 2023 18:42:36 +0000 (19:42 +0100)]
[core] Avoid deepcopy of ctx dict (fix f35b757) (Pt 2)

18 months ago[core] Avoid deepcopy of ctx dict (fix f35b757)
dirkf [Thu, 6 Apr 2023 13:11:18 +0000 (14:11 +0100)]
[core] Avoid deepcopy of ctx dict (fix f35b757)

* may now contain `LazyList`s
* resolves #31999

18 months ago[options] Add --mtime option, unsets default --no-mtime
dirkf [Wed, 5 Apr 2023 17:50:25 +0000 (18:50 +0100)]
[options] Add --mtime option, unsets default --no-mtime

* resolves #1709 (!)

18 months ago[devscripts] Improve hack to convert command-line options to API options
dirkf [Wed, 5 Apr 2023 17:47:49 +0000 (18:47 +0100)]
[devscripts] Improve hack to convert command-line options to API options

* define equality for DateRange
* don't show default DateRange

18 months ago[compat] Add and use `compat_open()` like Py3 `open()`
dirkf [Wed, 5 Apr 2023 17:39:54 +0000 (18:39 +0100)]
[compat] Add and use `compat_open()` like Py3 `open()`

* resolves FIXME: ytdl-org/youtube-dl/commit/dfe5fa4

18 months ago[FragmentFD] Fix iteration with infinite limit
dirkf [Wed, 5 Apr 2023 17:29:24 +0000 (18:29 +0100)]
[FragmentFD] Fix iteration with infinite limit

* fixes ytdl-org/youtube-dl/baa6c5e
* resolves #31885

18 months ago[test] Update tests for Ubuntu 20.04
dirkf [Mon, 3 Apr 2023 20:07:10 +0000 (21:07 +0100)]
[test] Update tests for Ubuntu 20.04
* 18.04 test runner was withdrawn
* for now, disable Py 3.3/3.4 tests

18 months ago[extractor/youtube] Bypass throttling for `-f17`
pukkandan [Thu, 9 Mar 2023 16:39:23 +0000 (22:09 +0530)]
[extractor/youtube] Bypass throttling for `-f17`

and related cleanup

Thanks @AudricV for the finding

Ref: yt-dlp/yt-dlp/commit/c9abebb

18 months ago[extractor/youtube] Construct fragment list lazily
pukkandan [Sun, 12 Mar 2023 09:16:09 +0000 (14:46 +0530)]
[extractor/youtube] Construct fragment list lazily

Ref: yt-dlp/yt-dlp/commit/e389d17
See: yt-dlp/yt-dlp#6517

18 months ago[utils] Ensure `allow_types` for `variadic()` is a tuple
dirkf [Sun, 19 Mar 2023 02:27:46 +0000 (02:27 +0000)]
[utils] Ensure `allow_types` for `variadic()` is a tuple

18 months ago[downloader/http] Only check for resumability when actually resuming
dirkf [Sun, 19 Mar 2023 00:51:44 +0000 (00:51 +0000)]
[downloader/http] Only check for resumability when actually resuming

19 months ago[AENetworksBaseIE] Report missing show data instead of crash
dirkf [Tue, 14 Mar 2023 13:01:32 +0000 (13:01 +0000)]
[AENetworksBaseIE] Report missing show data instead of crash

19 months ago[devscripts] Add a hack to convert command-line options to API options
dirkf [Tue, 14 Mar 2023 00:58:59 +0000 (00:58 +0000)]
[devscripts] Add a hack to convert command-line options to API options

19 months ago[core] Handle `/../` sequences in HTTP URLs
dirkf [Mon, 13 Mar 2023 19:45:54 +0000 (19:45 +0000)]
[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

19 months ago[FragmentFD] Respect `--no-continue`
dirkf [Sat, 11 Mar 2023 12:17:00 +0000 (12:17 +0000)]
[FragmentFD] Respect `--no-continue`

* discard partial fragment on `--no-continue`
* continue with correct progress display otherwise

Resolves #21467

19 months ago[downloader] Let _ffmpeg_ handle DASH segments
dirkf [Sat, 11 Mar 2023 12:09:55 +0000 (12:09 +0000)]
[downloader] Let _ffmpeg_ handle DASH segments

Fixes https://github.com/ytdl-org/youtube-dl/issues/31792 after 3da1783.

19 months ago[doc] Improve "guidance" on bug reporting
dirkf [Thu, 9 Mar 2023 16:40:30 +0000 (16:40 +0000)]
[doc] Improve "guidance" on bug reporting

19 months ago[doc] Recommend "Get cookies.txt LOCALLY" extension in README.md (#31763)
Sophira [Tue, 7 Mar 2023 15:49:31 +0000 (15:49 +0000)]
[doc] Recommend "Get cookies.txt LOCALLY" extension in README.md (#31763)

* remove link to suspect "Get cookies.txt" extension, dropped from Chrome store
* link to new Manifest V3-compatible open-source "Get cookies.txt LOCALLY" extension.

Fixes #31465.

19 months ago[jsinterp] Fix regexp parsing and .replace[All] method
dirkf [Sun, 5 Mar 2023 23:07:07 +0000 (23:07 +0000)]
[jsinterp] Fix regexp parsing and .replace[All] method

 * For performance, make regexp object instantiation lazy
 * Other small performance improvements

19 months ago[jsinterp] Handle `Date` at epoch 0
pukkandan [Fri, 3 Mar 2023 11:18:54 +0000 (16:48 +0530)]
[jsinterp] Handle `Date` at epoch 0

See yt-dlp/yt_dlp#6400

19 months ago[Youtube] Construct dash formats with `range` query
pukkandan [Tue, 28 Feb 2023 17:33:44 +0000 (23:03 +0530)]
[Youtube] Construct dash formats with `range` query

See yt-dlp/yt_dlp#6369

19 months ago[YouTube] Support @owner format in uploader_id etc
dirkf [Fri, 24 Feb 2023 02:48:37 +0000 (02:48 +0000)]
[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

19 months ago[test] Support test-case with volatile ID (eg live show)
dirkf [Fri, 24 Feb 2023 02:32:40 +0000 (02:32 +0000)]
[test] Support test-case with volatile ID (eg live show)

Signalled by regexp ID value, eg: `'id': r're:[\da-zA-Z_-]{8,}'`

19 months agoEscape URLs in `sanitized_Request`, not `sanitize_url` d2558234cf5dd12d6896eed5427b7d...
pukkandan [Tue, 1 Jun 2021 12:35:41 +0000 (18:05 +0530)]
Escape URLs in `sanitized_Request`, not `sanitize_url` d2558234cf5dd12d6896eed5427b7dcdb3ab7b5a added escaping of URLs while sanitizing. However, `sanitize_url` may not always receive an actual URL. Eg: When using `youtube-dl "search query" --default-search ytsearch`, `search query` gets escaped to `search%20query` before being prefixed with `ytsearch:` which is not the intended behavior. So the escaping is moved to `sanitized_Request` instead.

19 months ago[Vimeo] Fix e19ec52 for tween-age Pythons
df [Mon, 20 Feb 2023 01:41:46 +0000 (01:41 +0000)]
[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

19 months ago[jsinterp] Fix dict comprehension for Py2.6
dirkf [Sun, 19 Feb 2023 13:47:49 +0000 (13:47 +0000)]
[jsinterp] Fix dict comprehension for Py2.6

Resolves #31600

19 months ago[YouTube] Avoid crash if uploader_id extraction fails
dirkf [Fri, 17 Feb 2023 11:16:54 +0000 (11:16 +0000)]
[YouTube] Avoid crash if uploader_id extraction fails

See #31530.

20 months ago[test] Avoid name TestIE which causes a pytest warning
dirkf [Tue, 14 Feb 2023 16:33:01 +0000 (16:33 +0000)]
[test] Avoid name TestIE which causes a pytest warning

See: https://github.com/yt-dlp/yt-dlp/commit/060ac76257a8c1f7370a8a571821c1d73377701f

20 months ago[InfoExtractor] Handle unquoted values in OpenGraph searches
dirkf [Tue, 14 Feb 2023 02:47:09 +0000 (02:47 +0000)]
[InfoExtractor] Handle unquoted values in OpenGraph searches

20 months ago[StreamsbIE] Add extractor for streamsb.com (viewsb.com) (#31517)
fonkap [Sat, 11 Feb 2023 02:54:45 +0000 (03:54 +0100)]
[StreamsbIE] Add extractor for streamsb.com (viewsb.com) (#31517)

* Add extractor for streamsb.com (viewsb.com)

* make data url using app.js version

---------

Co-authored-by: dirkf <fieldhouse@gmx.net>
20 months ago[KommunetvIE] Add extractor for kommunetv.no (#31516)
fonkap [Sat, 11 Feb 2023 02:47:43 +0000 (03:47 +0100)]
[KommunetvIE] Add extractor for kommunetv.no (#31516)

* Add extractor for kommunetv.no
* Using utils.update_url instead of regex

---------

Co-authored-by: dirkf <fieldhouse@gmx.net>
20 months ago[FileMoonIE] Add extractor for filemoon.sx (#31515)
fonkap [Sat, 11 Feb 2023 02:37:45 +0000 (03:37 +0100)]
[FileMoonIE] Add extractor for filemoon.sx (#31515)

---------

Co-authored-by: dirkf <fieldhouse@gmx.net>
20 months ago[feat]: Add support to external downloader aria2p (#31500)
teddy171 [Thu, 9 Feb 2023 20:19:27 +0000 (04:19 +0800)]
[feat]: Add support to external downloader aria2p (#31500)

* feat: add class Aria2pFD

* feat: create call_downloader function

* feat: a colorful download interface to aria2pFD

* feat: change value name

* Apply suggestions from code review

Co-authored-by: dirkf <fieldhouse@gmx.net>
* Typo in suggestion

* fix: remove unused value

* fix: add not function to return value(0 is normal); add total_seconds to download.eta(timedelta object); add waiting status when hook progress

* fix: remove unuse method ..utils.format_bytes

* fix: be up to flake8

* fix: be up to flake8

* Apply suggestions from code review

* [feat] test external downloader aria2p

* [feat] test external downloader aria2p

* [fix] test_external_downloader.py

* Apply suggestions from code review

Co-authored-by: dirkf <fieldhouse@gmx.net>
* Apply suggestions from code review

Co-authored-by: dirkf <fieldhouse@gmx.net>
* Update test/test_external_downloader.py

Co-authored-by: dirkf <fieldhouse@gmx.net>
* Update test/test_external_downloader.py

Co-authored-by: dirkf <fieldhouse@gmx.net>
* Update youtube_dl/downloader/external.py

Co-authored-by: dirkf <fieldhouse@gmx.net>
* refactoring code and fix bugs

* Apply suggestions from code review

* Rename test_external_downloader.py to test_downloader_external.py

---------

Co-authored-by: dirkf <fieldhouse@gmx.net>
20 months ago[rbgtum] Add new extractor (#31305)
Valentin Metz [Thu, 9 Feb 2023 11:25:28 +0000 (12:25 +0100)]
[rbgtum] Add new extractor (#31305)

* [rbgtum] Add new extractor

* Small update, force CI

---------

Co-authored-by: dirkf <fieldhouse@gmx.net>
20 months ago[YouTube] Fix tests
dirkf [Wed, 8 Feb 2023 18:16:51 +0000 (18:16 +0000)]
[YouTube] Fix tests

20 months ago[YouTube] Refresh compat/utils usage
dirkf [Mon, 6 Feb 2023 16:19:21 +0000 (16:19 +0000)]
[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()

20 months ago[compat] Update test_compat
dirkf [Mon, 6 Feb 2023 15:50:28 +0000 (15:50 +0000)]
[compat] Update test_compat

[skip ci]

20 months ago[utils] Add parse_qs, update_url
dirkf [Sun, 5 Feb 2023 13:46:43 +0000 (13:46 +0000)]
[utils] Add parse_qs, update_url

[skip ci]

20 months ago[compat] Systematise compat_ naming
dirkf [Sun, 5 Feb 2023 15:43:43 +0000 (15:43 +0000)]
[compat] Systematise compat_ naming

[skip ci]

20 months ago[test] Fix TestAgeRestriction
dirkf [Sat, 4 Feb 2023 23:18:24 +0000 (23:18 +0000)]
[test] Fix TestAgeRestriction

* age restriction may cause DownloadError
* update obsolete test URLs
[skip ci]

20 months ago[YouTube] Add `signatureTimestamp` for age-gate bypass
dirkf [Mon, 20 Jun 2022 22:15:20 +0000 (23:15 +0100)]
[YouTube] Add `signatureTimestamp` for age-gate bypass

20 months ago[YouTube] Bypass age-gating for certain restricted videos
dirkf [Mon, 31 Jan 2022 04:28:54 +0000 (04:28 +0000)]
[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()`

20 months ago[Vimeo] Support /user{video_id}/{slug} URL format
dirkf [Sat, 11 Feb 2023 03:25:14 +0000 (03:25 +0000)]
[Vimeo] Support /user{video_id}/{slug} URL format

20 months ago[Vimeo] Fix `Unable to extract info section` redux
dirkf [Sat, 4 Feb 2023 00:21:35 +0000 (00:21 +0000)]
[Vimeo] Fix `Unable to extract info section` redux
* as reported in yt-dlp/yt-dlp#6149
* also allow newline in target JSON object

20 months ago[jsinterp] Nits
dirkf [Sat, 4 Feb 2023 01:53:47 +0000 (01:53 +0000)]
[jsinterp] Nits

20 months ago[IGN] Overhaul extractor to avoid URL redirection loop
dirkf [Sat, 4 Feb 2023 00:19:48 +0000 (00:19 +0000)]
[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

20 months ago[ITV] Overhaul ITV extractor (#30266)
dirkf [Fri, 3 Feb 2023 21:10:07 +0000 (21:10 +0000)]
[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

20 months ago[myvideoge] Add new extractor (#31360)
dirkf [Thu, 2 Feb 2023 23:25:44 +0000 (23:25 +0000)]
[myvideoge] Add new extractor (#31360)

NB download tests on CI servers blocked

Co-authored-by: Alfonso Solbes <fonk666@gmail.com>
20 months ago[xhamster] add support for new domain xhvid.com (#31370)
afterdelight [Thu, 2 Feb 2023 23:20:14 +0000 (06:20 +0700)]
[xhamster] add support for new domain xhvid.com (#31370)

20 months ago[FIFA] Back-port extractor from yt-dlp (#31385)
dirkf [Thu, 2 Feb 2023 23:19:03 +0000 (23:19 +0000)]
[FIFA] Back-port extractor from yt-dlp (#31385)

20 months ago[Blerp] Add new extractor (#31398)
Epsilonator [Thu, 2 Feb 2023 17:33:09 +0000 (23:03 +0530)]
[Blerp] Add new extractor (#31398)

Co-authored-by: dirkf <fieldhouse@gmx.net>
20 months ago[YouTube] Fix not finding videos listed under a channel's "shorts" subpage. (#31409)
zhangeric-15 [Thu, 2 Feb 2023 17:26:31 +0000 (12:26 -0500)]
[YouTube] Fix not finding videos listed under a channel's "shorts" subpage.  (#31409)

Resolves #31336

Co-authored-by: Jouni Järvinen <rautamiekka@users.noreply.github.com>
Co-authored-by: dirkf <fieldhouse@gmx.net>
20 months ago[Callin] Add new extractor (#31414)
Ruowang Sun [Thu, 2 Feb 2023 17:21:05 +0000 (12:21 -0500)]
[Callin] Add new extractor (#31414)

Co-authored-by: dirkf <fieldhouse@gmx.net>
20 months ago[pr0gramm] implement InfoExtractor, Resolves #31433 (#31434)
Leon Etienne [Thu, 2 Feb 2023 17:13:39 +0000 (18:13 +0100)]
[pr0gramm] implement InfoExtractor, Resolves #31433 (#31434)

* [pr0gramm] implement infoextractor

* [pr0gramm] remove misplaced comment, uncapture regex-group

* [pr0gramm]: specify utf-8 coding

* [pr0gramm]: add trailing comma to lists for maintainability

* [pr0gramm]: ie only sets upload_date attribute

* [pr0gramm]: add video_id to title

* [pr0gramm]: more forgiving _valid_url regex

* [pr0gramm]: add uploader to title, if set

* Discriminate URL pattern

---------

Co-authored-by: dirkf <fieldhouse@gmx.net>
20 months ago[cammodels] fix and improve extractor (#31453)
JChris246 [Thu, 2 Feb 2023 17:12:36 +0000 (13:12 -0400)]
[cammodels] fix and improve extractor (#31453)

Co-authored-by: dirkf <fieldhouse@gmx.net>
20 months ago[doc] Fixed typo appearing to promise an example (#31489)
Rodrigo Dias [Thu, 2 Feb 2023 17:10:09 +0000 (17:10 +0000)]
[doc] Fixed typo appearing to promise an example (#31489)

Resolves #31425

Co-authored-by: dirkf <fieldhouse@gmx.net>
20 months ago[americastestkitchen] Add support for downloading entire series (#31493)
Brian Marks [Thu, 2 Feb 2023 16:58:21 +0000 (11:58 -0500)]
[americastestkitchen] Add support for downloading entire series (#31493)

Also
* support new sites and URL patterns
* back-port from yt-dlp

Co-authored-by: dirkf <fieldhouse@gmx.net>
20 months ago[jsinterp] Improve parsing
dirkf [Thu, 2 Feb 2023 14:28:32 +0000 (14:28 +0000)]
[jsinterp] Improve parsing
* support subset `... else if ...`
* support `while`
* add `RegExp` class
* generalise `new` support
* limited more debug strings
* matching test changes

20 months agoSupport `if` statements
pukkandan [Wed, 1 Feb 2023 04:09:49 +0000 (09:39 +0530)]
Support `if` statements

Fix for yt-dlp/yt_dlp#6131
Closes #31509