Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support requst for DLF #6430

Closed
9 of 11 tasks
Peter0 opened this issue Mar 5, 2023 · 1 comment · Fixed by #6697
Closed
9 of 11 tasks

Support requst for DLF #6430

Peter0 opened this issue Mar 5, 2023 · 1 comment · Fixed by #6697
Labels
good first issue Good for new devs site-request Request to support a new website

Comments

@Peter0
Copy link

Peter0 commented Mar 5, 2023

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

  • I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

Region

Germany

Example URLs

Single Audio: https://www.deutschlandfunk.de/tanz-der-saiteninstrumente-das-wild-strings-trio-aus-slowenien-dlf-03a3eb19-100.html

Provide a description that is worded well enough to be understood

When visiting the mentioned example url with browser, there is a play button ("Hören"). On clicking it, my browser loads (among others) https://dradiohls.akamaized.net/hls/2023/03/03/tanz_der_saiteninstrumente_das_wild_strings_trio_aus_dlf_20230303_2105_03a3eb19/master.m3u8

Feeding this url as parameter to yt-dlp yields yt-dlp to succesfully download the wanted audio file. But it seems a little bit uncomfortable to harvest the url by using browser's developer tools.

Provide verbose output that clearly demonstrates the problem

  • Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
  • If using API, add 'verbose': True to YoutubeDL params instead
  • Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output

[debug] Command-line config: ['-vU', 'https://www.deutschlandfunk.de/tanz-der-saiteninstrumente-das-wild-strings-trio-aus-slowenien-dlf-03a3eb19-100.html']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version stable@2023.03.04 [392389b7d] (pip)
[debug] Python 3.8.10 (CPython x86_64 64bit) - Linux-5.4.0-144-generic-x86_64-with-glibc2.29 (OpenSSL 1.1.1f  31 Mar 2020, glibc 2.31)
[debug] exe versions: ffmpeg 4.2.7, ffprobe 4.2.7, rtmpdump 2.4
[debug] Optional libraries: Cryptodome-3.17, brotli-1.0.9, certifi-2019.11.28, mutagen-1.46.0, pyxattr-0.6.1, secretstorage-2.3.1, sqlite3-2.6.0, websockets-10.4
[debug] Proxy map: {}
[debug] Loaded 1786 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Available version: stable@2023.03.04, Current version: stable@2023.03.04
yt-dlp is up to date (stable@2023.03.04)
[generic] Extracting URL: https://www.deutschlandfunk.de/tanz-der-saiteninstrumente-das-wild-strings-trio-aus-slowenien-dlf-03a3eb19-100.html
[generic] tanz-der-saiteninstrumente-das-wild-strings-trio-aus-slowenien-dlf-03a3eb19-100: Downloading webpage
WARNING: [generic] Falling back on generic information extractor
[generic] tanz-der-saiteninstrumente-das-wild-strings-trio-aus-slowenien-dlf-03a3eb19-100: Extracting information
[debug] Looking for embeds
[debug] Identified a twitter:player iframe
[generic] Extracting URL: https://share.deutschlandradio.de/tanz-der-saiteninstrumente-das-wild-strings-trio-aus-slowenien-dlf-03a3eb19-100.twc
[generic] tanz-der-saiteninstrumente-das-wild-strings-trio-aus-slowenien-dlf-03a3eb19-100: Downloading webpage
WARNING: [generic] Falling back on generic information extractor
[generic] tanz-der-saiteninstrumente-das-wild-strings-trio-aus-slowenien-dlf-03a3eb19-100: Extracting information
[debug] Looking for embeds
ERROR: Unsupported URL: https://share.deutschlandradio.de/tanz-der-saiteninstrumente-das-wild-strings-trio-aus-slowenien-dlf-03a3eb19-100.twc
Traceback (most recent call last):
  File "/home/x/.local/lib/python3.8/site-packages/yt_dlp/YoutubeDL.py", line 1518, in wrapper
    return func(self, *args, **kwargs)
  File "/home/x/.local/lib/python3.8/site-packages/yt_dlp/YoutubeDL.py", line 1594, in __extract_info
    ie_result = ie.extract(url)
  File "/home/x/.local/lib/python3.8/site-packages/yt_dlp/extractor/common.py", line 694, in extract
    ie_result = self._real_extract(url)
  File "/home/x/.local/lib/python3.8/site-packages/yt_dlp/extractor/generic.py", line 2510, in _real_extract
    raise UnsupportedError(url)
yt_dlp.utils.UnsupportedError: Unsupported URL: https://share.deutschlandradio.de/tanz-der-saiteninstrumente-das-wild-strings-trio-aus-slowenien-dlf-03a3eb19-100.twc
@Peter0 Peter0 added site-request Request to support a new website triage Untriaged issue labels Mar 5, 2023
@dirkf
Copy link
Contributor

dirkf commented Mar 5, 2023

A good target is <button alt="Anhören" ...>.

Then extract_attributes() and find these data items:

  • url <- data-audioreference or data-audio or data-audio-src or data-audio-download-tracking-path
  • id <- data-audio-diraid
  • duration <- data-audioduration or data-audio-duration
  • title <- data-audiotitle or data-audio-title or data-audio-download-tracking-title
  • thumbnail <- data-audioimage
  • uploader <- data-audio-producer, perhaps
  • series <- data-audio-series
  • channel <- data-audio-origin-site-name, perhaps.

Apparently not a very disciplined data dictionary at DLF.

@pukkandan pukkandan added good first issue Good for new devs and removed triage Untriaged issue labels Mar 5, 2023
bashonly pushed a commit that referenced this issue May 2, 2023
Closes #6430
Authored by: nick-cd
aalsuwaidi pushed a commit to aalsuwaidi/yt-dlp that referenced this issue Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for new devs site-request Request to support a new website
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants