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

[ARD] Support for seasons #2975

Closed
6 tasks done
rassie opened this issue Mar 6, 2022 · 3 comments · Fixed by #8878
Closed
6 tasks done

[ARD] Support for seasons #2975

rassie opened this issue Mar 6, 2022 · 3 comments · Fixed by #8878
Labels
site-enhancement Feature request for some website

Comments

@rassie
Copy link

rassie commented Mar 6, 2022

Checklist

Region

Germany

Example URLs

https://www.ardmediathek.de/sendung/beforeigners/beforeigners/staffel-2/Y3JpZDovL2Rhc2Vyc3RlLmRlL2JlZm9yZWlnbmVycw/2

Description

ARD Mediathek seems to have added season numbers to their URL, therefore showId is 2 in the example URL, which obviously fails to query (with 'NoneType' object is not subscriptable as error message of all thngs).

Verbose log

$ yt-dlp -vU https://www.ardmediathek.de/sendung/beforeigners/beforeigners/staffel-2/Y3JpZDovL2Rhc2Vyc3RlLmRlL2JlZm9yZWlnbmVycw/2[debug] Command-line config: ['-vU', 'https://www.ardmediathek.de/sendung/beforeigners/beforeigners/staffel-2/Y3JpZDovL2Rhc2Vyc3RlLmRlL2JlZm9yZWlnbmVycw/2']
[debug] User config "/home/nikolai/.config/yt-dlp/config": ['--all-subs', '--embed-sub', '--sub-langs', 'all,-live_chat']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, err utf-8, pref UTF-8
[debug] yt-dlp version 2022.02.04 [c1653e9ef]
[debug] Python version 3.8.10 (CPython 64bit) - Linux-5.13.0-30-generic-x86_64-with-glibc2.29
[debug] exe versions: ffmpeg 4.2.4, ffprobe 4.2.4, rtmpdump 2.4
[debug] Optional libraries: Cryptodome, secretstorage, mutagen, sqlite, websockets
[debug] Proxy map: {}
Latest version: 2022.02.04, Current version: 2022.02.04
yt-dlp is up to date (2022.02.04)
[debug] Using fake IP 53.101.205.146 (DE) as X-Forwarded-For
[debug] [ARDBetaMediathek] Extracting URL: https://www.ardmediathek.de/sendung/beforeigners/beforeigners/staffel-2/Y3JpZDovL2Rhc2Vyc3RlLmRlL2JlZm9yZWlnbmVycw/2
[ARDBetaMediathek] [Playlist] beforeigners/beforeigners/staffel-2/Y3JpZDovL2Rhc2Vyc3RlLmRlL2JlZm9yZWlnbmVycw: Downloading JSON metadata
ERROR: 'NoneType' object is not subscriptable
Traceback (most recent call last):
  File "/home/nikolai/.local/lib/python3.8/site-packages/yt_dlp/YoutubeDL.py", line 1381, in wrapper
    return func(self, *args, **kwargs)
  File "/home/nikolai/.local/lib/python3.8/site-packages/yt_dlp/YoutubeDL.py", line 1451, in __extract_info
    ie_result = ie.extract(url)
  File "/home/nikolai/.local/lib/python3.8/site-packages/yt_dlp/extractor/common.py", line 612, in extract
    ie_result = self._real_extract(url)
  File "/home/nikolai/.local/lib/python3.8/site-packages/yt_dlp/extractor/ard.py", line 572, in _real_extract
    return self._ARD_extract_playlist(url, video_id, display_id, client, playlist_type)
  File "/home/nikolai/.local/lib/python3.8/site-packages/yt_dlp/extractor/ard.py", line 536, in _ARD_extract_playlist
    for teaser in show_page['teasers']:  # process playlist items
TypeError: 'NoneType' object is not subscriptable
@rassie rassie added site-enhancement Feature request for some website triage Untriaged issue labels Mar 6, 2022
@pukkandan
Copy link
Member

pukkandan commented Mar 8, 2022

409cdd1 fixes the extractor, but all seasons are downloaded for now, not just the one in URL

@pukkandan pukkandan removed the triage Untriaged issue label Mar 8, 2022
pukkandan added a commit that referenced this issue Mar 8, 2022
Partial fix for #2975
@rassie
Copy link
Author

rassie commented Mar 8, 2022

Thanks, this helps a lot already!

@chrizilla
Copy link

aalsuwaidi pushed a commit to aalsuwaidi/yt-dlp that referenced this issue Apr 21, 2024
Closes yt-dlp#8731, Closes yt-dlp#6784, Closes yt-dlp#2366, Closes yt-dlp#2975, Closes yt-dlp#8760
Authored by: seproDev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
site-enhancement Feature request for some website
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants