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