mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-20 05:47:24 +01:00
fix style issues
This commit is contained in:
parent
47fb5ba647
commit
5ea1d902d3
@ -112,7 +112,7 @@ def _metapage_entries(self, display_id, url, params):
|
|||||||
|
|
||||||
next_metapage_params = {
|
next_metapage_params = {
|
||||||
**params,
|
**params,
|
||||||
"release_time": "<=%s" % metapage[-1]["release_timestamp"]
|
'release_time': '<={}'.format(metapage[-1]['release_timestamp']),
|
||||||
}
|
}
|
||||||
last_metapage = metapage
|
last_metapage = metapage
|
||||||
metapage = OnDemandPagedList(
|
metapage = OnDemandPagedList(
|
||||||
@ -150,7 +150,7 @@ def _playlist_entries(self, url, display_id, claim_param, metadata):
|
|||||||
if qs.get('order', ['new'])[0] == 'new':
|
if qs.get('order', ['new'])[0] == 'new':
|
||||||
entries = self._metapage_entries(display_id, url, params)
|
entries = self._metapage_entries(display_id, url, params)
|
||||||
else:
|
else:
|
||||||
self.report_warning("Extraction is limited to 1000 Videos when not sorting by newest.")
|
self.report_warning('Extraction is limited to 1000 Videos when not sorting by newest.')
|
||||||
entries = OnDemandPagedList(
|
entries = OnDemandPagedList(
|
||||||
functools.partial(self._fetch_page, display_id, url, params),
|
functools.partial(self._fetch_page, display_id, url, params),
|
||||||
self._PAGE_SIZE)
|
self._PAGE_SIZE)
|
||||||
|
Loading…
Reference in New Issue
Block a user