question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BRMediathek] redirect fails

See original GitHub issue

Checklist

Region

Germany

Description

both https://www.br.de/mediathek/video/av:61b0db581aed360007558c12 https://www.br.de/mediathek//video/av:61b0db581aed360007558c12

redirect to

https://www.br.de/mediathek/video/meryns-sprechzimmer-gesundheitstalk-corona-positiv-trotz-impfung-av:61b0db581aed360007558c12

yt-dlp recognizes the latter URL, but not the former (see log below).

Verbose log

[debug] Command-line config: ['https://www.br.de/mediathek//video/av:61b0db581aed360007558c12', '-v', '--ignore-config', '-F']
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, err utf-8, pref cp1252
[debug] yt-dlp version 2022.01.21 [f20d607] (win_exe)
[debug] Python version 3.8.10 (CPython 64bit) - Windows-10-10.0.19043-SP0
[debug] exe versions: ffmpeg N-105208-gb24f0c82b3-20220108 (setts), ffprobe N-105208-gb24f0c82b3-20220108
[debug] Optional libraries: Cryptodome, mutagen, sqlite, websockets
[debug] Proxy map: {}
[debug] [generic] Extracting URL: https://www.br.de/mediathek//video/av:61b0db581aed360007558c12
[generic] av:61b0db581aed360007558c12: Requesting header
WARNING: [generic] Falling back on generic information extractor.
[generic] av:61b0db581aed360007558c12: Downloading webpage
[generic] av:61b0db581aed360007558c12: Extracting information
[debug] Looking for video embeds
ERROR: Unsupported URL: https://www.br.de/mediathek//video/av:61b0db581aed360007558c12
Traceback (most recent call last):
  File "yt_dlp\YoutubeDL.py", line 1367, in wrapper
  File "yt_dlp\YoutubeDL.py", line 1437, in __extract_info
  File "yt_dlp\extractor\common.py", line 612, in extract
  File "yt_dlp\extractor\generic.py", line 3966, in _real_extract
yt_dlp.utils.UnsupportedError: Unsupported URL: https://www.br.de/mediathek//video/av:61b0db581aed360007558c12

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
pukkandancommented, Jan 29, 2022

This will probably fix this, but I cant test due to geo-blocking

diff --git a/yt_dlp/extractor/br.py b/yt_dlp/extractor/br.py
index 7169eceb6..bd618119c 100644
--- a/yt_dlp/extractor/br.py
+++ b/yt_dlp/extractor/br.py
@@ -175,7 +175,7 @@ class BRIE(InfoExtractor):

 class BRMediathekIE(InfoExtractor):
     IE_DESC = 'Bayerischer Rundfunk Mediathek'
-    _VALID_URL = r'https?://(?:www\.)?br\.de/mediathek/video/[^/?&#]*?-(?P<id>av:[0-9a-f]{24})'
+    _VALID_URL = r'https?://(?:www\.)?br\.de/mediathek/video/(?:[^/?&#]+?-)?(?P<id>av:[0-9a-f]{24})'

     _TESTS = [{
         'url': 'https://www.br.de/mediathek/video/gesundheit-die-sendung-vom-28112017-av:5a1e6a6e8fce6d001871cc8e',
diff --git a/yt_dlp/extractor/youtube.py b/yt_dlp/extractor/youtube.py
index 98f02331c..c29afe98e 100644
0reactions
calestyocommented, Mar 31, 2022

Ah I see.

Anyway… I’ve been able to confirm that it works.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add-on:BR Mediathek - Official Kodi Wiki
This add-on provides access to the BR Mediathek. Installing. This add-on is installed from the Add-on browser located in Kodi as follows:.
Read more >
BR Mediathek - Apps on Google Play
With the BR Mediathek of Bayerischer Rundfunk you can get Bavaria's best video offer on your smartphone or tablet.
Read more >
BR Online – High Quality Content Wherever You Are
Our internet player, the ' BR Mediathek', allows visitors to watch a wide range of recent programmes free of charge. It also comes...
Read more >
Can one access online the subtitles for the UT-tagged videos ...
1 Answer 1 · I reached the video I linked through this page: br.de/mediathek/video/programm/index.html; it is clearly marked UT in that page. It ......
Read more >
BR Mediathek:Amazon.com:Appstore for Android
The newest BR-Mediathek App is vastly improved, and a joy to use. It's well laid out, beautiful in form and function. There are...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found