CrymanChen / iQIYI-Downloader

A repo for parsing m3u8 link and downloading non-DRM protected movies from iQIYI (爱奇艺).
MIT License
33 stars 5 forks source link

facing some error #5

Open irabro1992 opened 10 months ago

irabro1992 commented 10 months ago

hi , thanks for your script. i always download from iqiyi using your script . since yesterday , i have error when i download the movie. please check it. thank you

Output name: 11 11:58:41.895 INFO : N_m3u8DL-RE (Beta version) 20230628 11:58:41.909 INFO : Loading URL: 11.m3u8 11:58:41.926 INFO : Content Matched: HTTP Live Streaming 11:58:41.931 INFO : Parsing streams... 11:58:41.948 WARN : Writing meta json 11:58:41.952 INFO : Extracted, there are 1 streams, with 1 basic streams, 0 audio streams, 0 subtitle streams 11:58:41.953 INFO : Vid Kbps | 506 Segments | ~01h06m47s 11:58:41.959 INFO : Selected streams: 11:58:41.960 INFO : Vid Kbps | 506 Segments | ~01h06m47s 11:58:41.968 WARN : Writing meta json 11:58:41.973 INFO : Save Name: 11 11:58:41.975 INFO : Start downloading...Vid Kbps 11:58:42.684 WARN : Reading media info... 11:58:42.745 INFO : [0x100]: Video, h264 ([27][0][0][0]), 1920x1080, 25 fps 11:58:42.746 INFO : [0x101]: Audio, aac ([15][0][0][0]), 184 kb/s 11:58:47.392 WARN : The response ended prematurely, with at least 5173008 additional bytes expected. 11:58:47.424 WARN : The response ended prematurely, with at least 5440532 additional bytes expected. 11:58:48.046 WARN : An error occurred while sending the request. 11:58:54.126 WARN : The response ended prematurely, with at least 4050024 additional bytes expected. 11:58:55.303 ERROR: Segment count check not pass, total: 506, downloaded: 502. 11:58:55.304 ERROR: Failed

CrymanChen commented 10 months ago

Hi, from the logs you provided, I assume that there might be some reasons related to the Internet.
Would you mind elaborating what you have encountered? Like the video URL, and you can try uploading the manifest (.m3u8) file that this program generated. Then we'll see what might be the solution.

irabro1992 commented 10 months ago

this is the url of the video i tried to download.

https://www.iqiyi.com/v_ibbu02gfok.html?src=focustext_1_20130410_1

CrymanChen commented 10 months ago

Since I didn't restore my premium, I only downloaded the first 6 minutes of this episode.
I didn't meet any problems, have you retried yet? I guess this might be an Internet error.

There's another might-be solution. You can search that "dash link" in your browser.
image Under the path data -> program -> video, there are some numbers starting from 0. When you try to unfold them, under which number has the m3u8 value? Then make some changes on Line 49: https://github.com/CrymanChen/iQIYI-Downloader/blob/9905324e85c61add1b31c3f8af30ee1b8d630e10/iqiyi.py#L49
Change 'None' to m3u8DataJson["data"]["program"]["video"][**NUMBER**]["m3u8"]

irabro1992 commented 10 months ago

it's all working with old video and still working . since yesterday , it doesn't work with newly added video. now , i tried your method with new video url ( https://www.iqiyi.com/v_17obacyo3ug.html#vfrm=19-9-0-1 ). video legeth is 1 hr and 26 mins. when i check downloaded file , video length is 3hrs 4 mins and FPS is 12.07 . that's weird.