1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-13 04:51:22 +00:00
youtube-dl/youtube_dl
Darshaka Pathirana c03ea70461 [orf:radiothek] Add support for ORF Radiothek URLs
The ORF radio stations are also provided via https://radiothek.orf.at.
When doing so, the URLs are different. Currently only OE1 and OE3 have
been tested.

The ORFRADIOTHEK extractor has been tested with:

  ❯ python -m unittest -v test/test_download.py -k ORFRADIOTHEK
  test_ORFRADIOTHEK (test.test_download.TestDownload): ... [orf:radiothek] 645522: Downloading JSON metadata
  [download] Downloading playlist: Pandemie, Fossilien, Mars
  [orf:radiothek] playlist Pandemie, Fossilien, Mars: Collected 1 video ids (downloading 1 of them)
  [download] Downloading video 1 of 1
  [info] Writing video description metadata as JSON to: test_ORFRADIOTHEK_2021-07-23_1355_tl_51_7DaysFri25_1594313.info.json
  [debug] Invoking downloader on 'https://loopstream01.apa.at/?channel=oe1&id=2021-07-23_1355_tl_51_7DaysFri25_1594313.mp3'
  [download] Destination: test_ORFRADIOTHEK_2021-07-23_1355_tl_51_7DaysFri25_1594313.mp3
  [download] 100% of 10.00KiB in 00:00
  [download] Finished downloading playlist: Pandemie, Fossilien, Mars
  ok
  test_ORFRADIOTHEK_1 (test.test_download.TestDownload): ... [orf:radiothek] 3SDL: Downloading JSON metadata
  [download] Downloading playlist: Der Song deines Lebens
  [orf:radiothek] playlist Der Song deines Lebens: Collected 1 video ids (downloading 1 of them)
  [download] Downloading video 1 of 1
  [info] Writing video description metadata as JSON to: test_ORFRADIOTHEK_1_2021-07-28_1200_tl_53_7DaysWed3_1610654.info.json
  [debug] Invoking downloader on 'https://loopstream01.apa.at/?channel=oe3&id=2021-07-28_1200_tl_53_7DaysWed3_1610654.mp3'
  [download] Destination: test_ORFRADIOTHEK_1_2021-07-28_1200_tl_53_7DaysWed3_1610654.mp3
  [download] 100% of 10.00KiB in 00:00
  [download] Finished downloading playlist: Der Song deines Lebens
  ok

  ----------------------------------------------------------------------
  Ran 2 tests in 0.863s

  ❯ flake8 youtube_dl/extractor/orf.py

But as the files are only available for 7 days, "only_matching" was set to
true. While at it removed 'skip' in favour of it.

Closes: #29394
2022-03-28 10:34:59 +02:00
..
downloader Ignore --external-downloader-args if --external-downloader was rejected 2022-03-25 14:47:26 +00:00
extractor [orf:radiothek] Add support for ORF Radiothek URLs 2022-03-28 10:34:59 +02:00
postprocessor [postprocessor/ffmpeg] Show ffmpeg output on error (refs #22680) (#29336) 2021-06-20 23:58:19 +07:00
__init__.py Introduce --output-na-placeholder (closes #27896) 2021-01-22 23:54:29 +07:00
__main__.py [refactor] Single quotes consistency 2016-02-14 15:37:17 +06:00
aes.py Switch codebase to use compat_b64decode 2018-01-23 22:23:12 +07:00
cache.py Use expand_path where appropriate (closes #12556) 2017-03-26 02:31:16 +07:00
compat.py Back-port JS interpreter upgrade from yt-dlp PR #1437 2022-01-30 00:05:54 +00:00
jsinterp.py Refactor JSInterpreter._separate 2022-01-30 00:05:54 +00:00
options.py [options] Fix thumbnail option group name (closes #29042) 2021-05-16 21:34:10 +07:00
socks.py [socks] Report errors elegantly when credentails are required but missing 2017-04-22 21:48:41 +08:00
swfinterp.py Update coding style after pycodestyle 2.1.0 2016-11-17 19:45:42 +08:00
update.py [update] Fix updating via symlinks (closes #23991) 2020-02-08 19:46:58 +07:00
utils.py [utils] PEP 8 2021-04-17 03:32:04 +07:00
version.py release 2021.12.17 2021-12-17 01:49:07 +07:00
YoutubeDL.py Ignore --external-downloader-args if --external-downloader was rejected 2022-03-25 14:47:26 +00:00