[theonion] Fix a small mistake in string formatting
authorNaglis Jonaitis <njonaitis@gmail.com>
Sun, 12 Oct 2014 12:47:31 +0000 (15:47 +0300)
committerNaglis Jonaitis <njonaitis@gmail.com>
Sun, 12 Oct 2014 12:47:31 +0000 (15:47 +0300)
youtube_dl/extractor/theonion.py

index 8e4c3414b95470a1e636cb5c8debf22069000b62..b65d8e03f7741a712001099c601ee354830a74a1 100644 (file)
@@ -36,8 +36,7 @@ class TheOnionIE(InfoExtractor):
         sources = re.findall(r'<source src="([^"]+)" type="([^"]+)"', webpage)
         if not sources:
             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 = []
         for src, type_ in sources: