from hashlib import md5
from base64 import b64encode
from datetime import datetime
-import itertools
import re
from .common import InfoExtractor
compat_urllib_request,
compat_urllib_parse,
compat_str,
+ compat_itertools_count,
)
name = None
desc = None
entries = []
- for offset in itertools.count(start=0, step=self._PAGE_SIZE):
+ for offset in compat_itertools_count(start=0, step=self._PAGE_SIZE):
info = self.query_api(
'dj/program/byradio?asc=false&limit=%d&radioId=%s&offset=%d'
% (self._PAGE_SIZE, dj_id, offset),