Browse Source

[theonion] Fix a small mistake in string formatting

master
Naglis Jonaitis 10 years ago
parent
commit
d18be55533
1 changed files with 1 additions and 2 deletions
  1. 3
      youtube_dl/extractor/theonion.py

3
youtube_dl/extractor/theonion.py

@ -36,8 +36,7 @@ class TheOnionIE(InfoExtractor):
sources = re.findall(r'<source src="([^"]+)" type="([^"]+)"', webpage) sources = re.findall(r'<source src="([^"]+)" type="([^"]+)"', webpage)
if not sources: if not sources:
raise ExtractorError( raise ExtractorError(
'No sources found for video %s' % (self.IE_NAME, video_id),
expected=True)
'No sources found for video %s' % video_id, expected=True)
formats = [] formats = []
for src, type_ in sources: for src, type_ in sources:

Loading…
Cancel
Save