Open dendrite210 opened 9 months ago
The Range request header refers to requesting a partial content of a resource file. The 403 status code is usually unrelated to this request header.
What appears to be true for this server is that unless the range header is specified, the server returns 403.
Basically, I am unable to get N_m3u8DL-RE to download any file from the mpd.
On Sat., Oct. 14, 2023, 9:54 a.m. nilaoda, @.***> wrote:
The Range request header refers to requesting a partial content of a resource file. The 403 status code is usually unrelated to this request header.
— Reply to this email directly, view it on GitHub https://github.com/nilaoda/N_m3u8DL-RE/issues/292#issuecomment-1762994544, or unsubscribe https://github.com/notifications/unsubscribe-auth/AETQEUUCWSPE2CIX2Q7X323X7KYSNANCNFSM6AAAAAA5ZYPHM4 . You are receiving this because you authored the thread.Message ID: @.***>
@dendrite210 I've come up with a workaround.
I would like to know if the server in your case responses with Content-Range
header in bytes <range-start>-<range-end>/<size>
format?
Output:
The Following mpd loads, however, no files are downloaded because the server returns 403. I suspect it is because the "Range" Header is missing.
From the MPD file... SegmentList seems to contain the pertinent information
-- and SegmentBase
MPD contents:
Chunk 1 -H 'Range: bytes=1039-22538' from bk_tant_024144_22_32.mp4
Chunk 2 -H 'Range: bytes=1039-22538' from bk_tant_024144_22_64.mp4
Chunk 3 -H 'Range: bytes=0-1038' bk_tant_024144_22_64.mp4
Chunk 4 -H 'Range: bytes=1039-83704' bk_tant_024144_22_64.mp4
Chunk 5 -H 'Range: bytes=0-1038' bk_tant_024144_22_64.mp4
Chunk 6 -H 'Range: bytes=22539-187553'
Chunk 7 -H 'Range: bytes=187554-352263' \
etc... bytes=352264-516669 bytes=516670-681471 bytes=681472-846046 bytes=846047-1010676