[ard] make rss match more universal
authorOle Ernst <olebowle@gmx.com>
Wed, 22 Oct 2014 12:24:53 +0000 (14:24 +0200)
committerOle Ernst <olebowle@gmx.com>
Wed, 22 Oct 2014 12:24:53 +0000 (14:24 +0200)
youtube_dl/extractor/ard.py

index cd9c1d9be9de1e4257c52aadbf8bb4004b3c03fb..630b1faa999617c79d160a636052e2acd6d5debd 100644 (file)
@@ -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)