mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
Remove unused imports and clarify variable names
This commit is contained in:
parent
231f76b530
commit
56dd55721c
3 changed files with 4 additions and 9 deletions
|
@ -3,10 +3,6 @@
|
||||||
import re
|
import re
|
||||||
|
|
||||||
from .common import InfoExtractor
|
from .common import InfoExtractor
|
||||||
from ..utils import (
|
|
||||||
ExtractorError,
|
|
||||||
unified_strdate,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
class ParliamentLiveUKIE(InfoExtractor):
|
class ParliamentLiveUKIE(InfoExtractor):
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
from .common import InfoExtractor
|
from .common import InfoExtractor
|
||||||
from math import ceil
|
|
||||||
import re
|
import re
|
||||||
|
|
||||||
|
|
||||||
|
@ -70,7 +69,7 @@ def _real_extract(self, url):
|
||||||
'id': username,
|
'id': username,
|
||||||
'entries': [{
|
'entries': [{
|
||||||
'_type': 'url',
|
'_type': 'url',
|
||||||
'url': url,
|
'url': eurl,
|
||||||
'ie_key': 'Toypics',
|
'ie_key': 'Toypics',
|
||||||
} for url in urls]
|
} for eurl in urls]
|
||||||
}
|
}
|
||||||
|
|
|
@ -58,10 +58,10 @@ def _real_extract(self, url):
|
||||||
QUALITIES = ['3gp', 'mp4_normal', 'mp4_high', 'flv', 'mp4_ultra', 'mp4_720', 'mp4_1080']
|
QUALITIES = ['3gp', 'mp4_normal', 'mp4_high', 'flv', 'mp4_ultra', 'mp4_720', 'mp4_1080']
|
||||||
formats = [
|
formats = [
|
||||||
{
|
{
|
||||||
'url': url,
|
'url': furl,
|
||||||
'format_id': format_id,
|
'format_id': format_id,
|
||||||
'preference': QUALITIES.index(format_id) if format_id in QUALITIES else -1,
|
'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)
|
self._sort_formats(formats)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue