]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
Remove unused imports and clarify variable names
authorPhilipp Hagemeister <phihag@phihag.de>
Sat, 22 Mar 2014 14:17:32 +0000 (15:17 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Sat, 22 Mar 2014 14:17:32 +0000 (15:17 +0100)
youtube_dl/extractor/parliamentliveuk.py
youtube_dl/extractor/toypics.py
youtube_dl/extractor/xtube.py

index 02dca14c054dce9800045a5432de4aebbfe25d96..0a423a08f0dd9b746ecf708509a525b4c0bed541 100644 (file)
@@ -3,10 +3,6 @@ from __future__ import unicode_literals
 import re
 
 from .common import InfoExtractor
-from ..utils import (
-    ExtractorError,
-    unified_strdate,
-)
 
 
 class ParliamentLiveUKIE(InfoExtractor):
index 33a6988cacdc36a0c18ad89db80d50f21cd74219..34008afc6b87226d37aee4612a4b782c7c392a57 100644 (file)
@@ -1,5 +1,4 @@
 from .common import InfoExtractor
-from math import ceil
 import re
 
 
@@ -70,7 +69,7 @@ class ToypicsUserIE(InfoExtractor):
             'id': username,
             'entries': [{
                 '_type': 'url',
-                'url': url,
+                'url': eurl,
                 'ie_key': 'Toypics',
-            } for url in urls]
+            } for eurl in urls]
         }
index cdc0059f6153714dbb7089f3135c01293edd3126..033a9d893ed2e44316ac0b26cebacf817acd8ec1 100644 (file)
@@ -58,10 +58,10 @@ class XTubeIE(InfoExtractor):
         QUALITIES = ['3gp', 'mp4_normal', 'mp4_high', 'flv', 'mp4_ultra', 'mp4_720', 'mp4_1080']
         formats = [
             {
-                'url': url,
+                'url': furl,
                 'format_id': format_id,
                 'preference': QUALITIES.index(format_id) if format_id in QUALITIES else -1,
-            } for format_id, url in player_quality_option.items()
+            } for format_id, furl in player_quality_option.items()
         ]
         self._sort_formats(formats)