33 Commits

Author SHA1 Message Date
Mike Fährmann
db8dd525f3 [ytdl] respect '--no-skip' 2025-12-13 10:50:38 +01:00
Mike Fährmann
9bf76c1352 replace 'util.re()' with 'text.re()'
remove unnecessary 'util' imports
2025-10-20 17:44:58 +02:00
Mike Fährmann
99d5c521d1 use 'encoding="utf-8"' when opening files in text mode (#8376) 2025-10-09 09:54:18 +02:00
Mike Fährmann
8d672fb1ea [ytdl] update to 08d78996831bd8e1e3c2592d740c3def00bbf548 2025-09-21 18:14:59 +02:00
Mike Fährmann
a097a373a9 simplify if statements by using walrus operators (#7671) 2025-07-22 20:57:54 +02:00
Mike Fährmann
008a08ca43 [ytdl] add 'deprecations' option
https://github.com/gdl-org/builds/issues/3
2025-07-20 19:55:24 +02:00
Mike Fährmann
d8ef1d693f rename 'StopExtraction' to 'AbortExtraction'
for cases where StopExtraction was used to report errors
2025-07-09 21:07:28 +02:00
Mike Fährmann
ed64b484ff [ytdl] use '__gdl_initialize' key to trigger init code 2025-07-06 18:29:00 +02:00
Mike Fährmann
13ef48f04a [dl:ytdl] implement dynamic download 'rate' limits (#7638) 2025-07-05 23:07:42 +02:00
Mike Fährmann
9dbe33b6de replace old %-formatted and .format(…) strings with f-strings (#7671)
mostly using flynt
https://github.com/ikamensh/flynt
2025-06-29 17:50:19 +02:00
Mike Fährmann
434bf3b1f3 use 'util.re()' in more places
continuation of b5c88b3d3e
2025-06-23 20:31:45 +02:00
Mike Fährmann
e08ec7e083 update copyright notices 2025-06-13 00:03:41 +02:00
Mike Fährmann
7a48b696a6 [dl] improve maximum 'rate' detection (#7638) 2025-06-09 12:15:39 +02:00
Mike Fährmann
a25e14e776 [dl:http] implement dynamic download 'rate' limits (#7638) 2025-06-08 20:04:31 +02:00
Mike Fährmann
8adf48316f [ytdl] detect yt-dlp independent of module name (#7599) 2025-05-30 23:52:32 +02:00
Mike Fährmann
182b544217 [ytdl] support specifying filesystem paths as 'module' (#6991) 2025-02-14 19:58:25 +01:00
Mike Fährmann
00fe1c81b2 [ytdl] fix AttributeError caused by 'decodeOption()' removal
in yt-dlp 2024.11.18
2024-11-18 16:22:08 +01:00
Mike Fährmann
127aa45834 [ytdl] ignore SyntaxErrors when trying to import a module 2024-08-29 19:28:08 +02:00
Mike Fährmann
f321272b7c [ytdl] fix --cookies-from-browser option parsing 2024-07-25 17:45:25 +02:00
Mike Fährmann
a5d0b03bde [ytdl] fix crash due to removed 'no_color' attribute
8417f26b8a
2023-05-25 23:11:49 +02:00
Mike Fährmann
61a65d5bb9 [ytdl] fix crash due to --geo-bypass deprecation (#3975) 2023-04-29 17:25:38 +02:00
Mike Fährmann
8f8b4de0e8 [ytdl] fix '--parse-metadata' (#3663) 2023-03-05 19:57:23 +01:00
Mike Fährmann
fa144f38ed [ytdl} fix dfe4f00c for legacy yt-dlp 2023-01-04 21:42:22 +01:00
Mike Fährmann
dfe4f00ca2 [ytdl] update for yt-dlp changes 2023-01-04 13:12:24 +01:00
Mike Fährmann
985fd398f5 [ytdl] update 'parse_bytes' location (#3256)
https://github.com/yt-dlp/yt-dlp/commit/64c464a
2022-11-19 11:43:58 +01:00
Mike Fährmann
6ad39f2b68 add ytdl tests
they only run when youtube-dl or yt-dlp are installed,
i.e. if __import__("<ytdl-package>") succeeds
2022-05-23 18:30:26 +02:00
Mike Fährmann
47cf05c4ab refactor proxy handling code (#2357)
- allow gallery-dl proxy settings to overwrite environment proxies
- allow specifying different proxies for data extraction and download
  - add 'downloader.proxy' option
  - '-o extractor.proxy=–PROXY_URL -o downloader.proxy=null'
    now has the same effect as youtube-dl's '--geo-verification-proxy'
2022-03-10 23:55:35 +01:00
Mike Fährmann
9b67e63a89 [ytdl] update to latest yt-dlp changes (fixes #2124) 2021-12-24 01:50:47 +01:00
Mike Fährmann
f4e3cee6ac use yt-dlp by default (#1850, #2028) 2021-11-29 18:24:26 +01:00
Mike Fährmann
8eaedb0bd3 [ytdl] fix some compatibility issues (#1680) 2021-11-15 22:37:03 +01:00
Mike Fährmann
01b28f3674 [ytdl] fix syntax for Python 3.4 2021-11-12 18:54:04 +01:00
Mike Fährmann
f4d201f626 [ytdl] fix syntax for Python 3.4 2021-11-09 23:05:12 +01:00
Mike Fährmann
efa178cc91 [ytdl] implement parsing ytdl command-line options (#1680)
- adds 'config-file' and 'cmdline-args' options
  for both ytdl downloader and extractor
- create 'ytdl' helper module, which combines YoutubeDL creation
  and option parsing.
- most likely a buggy mess due to incompatibilities between the
  original youtube-dl and yt-dlp.
2021-11-07 02:44:11 +01:00