1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

Remove unused imports and clarify variable names

This commit is contained in:
Philipp Hagemeister 2014-03-22 15:17:32 +01:00
parent 231f76b530
commit 56dd55721c
3 changed files with 4 additions and 9 deletions

View 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):

View 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]
}

View 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)