aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/neteasemusic.py
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2015-07-10 18:59:12 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2015-07-10 18:59:12 +0800
commit4eab60cbd27ea8ce31ae9c6bf6b3f6e0e469d3af (patch)
tree82c8abc112ca8ffee58545ce01c48fb1df795d73 /youtube_dl/extractor/neteasemusic.py
parenta0e060ac1e9871974c02fe7cb3e812a3cbe79e73 (diff)
[netease:djradio] Use compat_itertools_count
Diffstat (limited to 'youtube_dl/extractor/neteasemusic.py')
-rw-r--r--youtube_dl/extractor/neteasemusic.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/neteasemusic.py b/youtube_dl/extractor/neteasemusic.py
index 9e99ddbda..bdfe7e63f 100644
--- a/youtube_dl/extractor/neteasemusic.py
+++ b/youtube_dl/extractor/neteasemusic.py
@@ -4,7 +4,6 @@ from __future__ import unicode_literals
from hashlib import md5
from base64 import b64encode
from datetime import datetime
-import itertools
import re
from .common import InfoExtractor
@@ -12,6 +11,7 @@ from ..compat import (
compat_urllib_request,
compat_urllib_parse,
compat_str,
+ compat_itertools_count,
)
@@ -428,7 +428,7 @@ class NetEaseMusicDjRadioIE(NetEaseMusicBaseIE):
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),