mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-20 09:52:50 +01:00
fix linter errors
This commit is contained in:
parent
104e991b28
commit
4fa4bccabc
@ -1,9 +1,10 @@
|
|||||||
import itertools
|
import itertools
|
||||||
import json
|
import json
|
||||||
|
|
||||||
from .common import InfoExtractor
|
from .common import InfoExtractor
|
||||||
from ..utils import (
|
from ..utils import (
|
||||||
determine_ext,
|
|
||||||
ExtractorError,
|
ExtractorError,
|
||||||
|
determine_ext,
|
||||||
float_or_none,
|
float_or_none,
|
||||||
join_nonempty,
|
join_nonempty,
|
||||||
parse_iso8601,
|
parse_iso8601,
|
||||||
@ -56,8 +57,8 @@ def _call_api(self, slug, query, variables, message='Downloading JSON from Graph
|
|||||||
|
|
||||||
def _paginate(self, slug, query, where):
|
def _paginate(self, slug, query, where):
|
||||||
for i in itertools.count(0):
|
for i in itertools.count(0):
|
||||||
page = self._call_api(slug,
|
page = self._call_api(
|
||||||
query, {'where': where, 'first': 10, 'skip': i * 10},
|
slug, query, {'where': where, 'first': 10, 'skip': i * 10},
|
||||||
message=f'Downloading page {i + 1}')
|
message=f'Downloading page {i + 1}')
|
||||||
if not page:
|
if not page:
|
||||||
break
|
break
|
||||||
|
Loading…
Reference in New Issue
Block a user