Fix the "has already been downloaded” quetion
Hey, I was downloading a long video from iqiyi.com and only first segment of the video was downloaded. The rest segments weren’t downloaded as the output message said that the video “has already been downloaded” In fact, the following video in _TESTS reports the same problem to me. 'url': 'http://www.iqiyi.com/v_19rrhnnclk.html';, 'info_dict': { 'id': 'e3f585b550a280af23c98b6cb2be19fb', 'title': '名侦探柯南第752集', It looks like 'title' value in entries[i].update() step remains the same for different segments of the video, which made youtube-dl think that all segments are the same (with same pathname). I changed into 'title': title + '_part' + str(i + 1), and the problem went away. By the way, could anyone give me a clue as to how the enc_key and algorithm in construct_video_urls() are obtained? Looks like enc_key need update every once a while. I’m really curious to know. Thank you very much.
This commit is contained in:
parent
99709cc3f1
commit
5e7c32c27f
@ -573,7 +573,7 @@ class IqiyiIE(InfoExtractor):
|
||||
entries[i].update(
|
||||
{
|
||||
'id': '%s_part%d' % (video_id, i + 1),
|
||||
'title': title,
|
||||
'title': title + '_part' + str(i + 1),
|
||||
}
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user