Skip to content

A feature-rich command-line audio/video downloader

[ard] make rss match more universal

Ole Ernstbfd91588f3fa
diff --git a/youtube_dl/extractor/ard.py b/youtube_dl/extractor/ard.py
index cd9c1d9be9..630b1faa99 100644
--- a/youtube_dl/extractor/ard.py
+++ b/youtube_dl/extractor/ard.py
@@ -56,7 +56,7 @@ class ARDMediathekIE(InfoExtractor):
if '>Der gewünschte Beitrag ist nicht mehr verfügbar.<' in webpage:
raise ExtractorError('Video %s is no longer available' % video_id, expected=True)
- if re.search(r'rss=true', url):
+ if re.search(r'[\?&]rss($|[=&])', url):
doc = parse_xml(webpage)
if doc.tag == 'rss':
return GenericIE()._extract_rss(url, video_id, doc)