Browse Source

[ard] make rss match more universal

totalwebcasting
Ole Ernst 10 years ago
parent
commit
bfd91588f3
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      youtube_dl/extractor/ard.py

+ 1
- 1
youtube_dl/extractor/ard.py View File

@ -56,7 +56,7 @@ class ARDMediathekIE(InfoExtractor):
if '>Der gewünschte Beitrag ist nicht mehr verfügbar.<' in webpage: if '>Der gewünschte Beitrag ist nicht mehr verfügbar.<' in webpage:
raise ExtractorError('Video %s is no longer available' % video_id, expected=True) 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) doc = parse_xml(webpage)
if doc.tag == 'rss': if doc.tag == 'rss':
return GenericIE()._extract_rss(url, video_id, doc) return GenericIE()._extract_rss(url, video_id, doc)


Loading…
Cancel
Save