Browse Source

[vlive:channel] Limit number of videos per page to 100 (closes #13830)

master-ytdl-org
Sergey M․ 7 years ago
parent
commit
f172c86dcd
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      youtube_dl/extractor/vlive.py

+ 6
- 1
youtube_dl/extractor/vlive.py View File

@ -236,7 +236,12 @@ class VLiveChannelIE(InfoExtractor):
query={ query={
'app_id': app_id, 'app_id': app_id,
'channelSeq': channel_seq, 'channelSeq': channel_seq,
'maxNumOfRows': 1000,
# Large values of maxNumOfRows (~300 or above) may cause
# empty responses (see [1]), e.g. this happens for [2] that
# has more than 300 videos.
# 1. https://github.com/rg3/youtube-dl/issues/13830
# 2. http://channels.vlive.tv/EDBF.
'maxNumOfRows': 100,
'_': int(time.time()), '_': int(time.time()),
'pageNo': page_num 'pageNo': page_num
} }


Loading…
Cancel
Save