crunchy-xml-decoder icon indicating copy to clipboard operation
crunchy-xml-decoder copied to clipboard

Downloading error

Open AhmadKahlid opened this issue 8 years ago • 8 comments

I receive this error: Traceback (most recent call last): File "C:\crunchy-xml-decoder-master\crunchy-xml-decoder.py", line 354, in makechoise() File "C:\crunchy-xml-decoder-master\crunchy-xml-decoder.py", line 302, in makechoise queueu('.\queue.txt') File "C:\crunchy-xml-decoder-master\crunchy-xml-decoder.py", line 94, in queueu ultimate.ultimate(line.rstrip('\n'), '', '') File "crunchy-xml-decoder\ultimate.py", line 253, in ultimate if re.search('fplive.net', host): File "C:\Python27\lib\re.py", line 146, in search return _compile(pattern, flags).search(string) TypeError: expected string or buffer

and when I traced altfuncs.getxml('RpcApiVideoPlayer_GetStandardConfig', media_id) in ultimate.py the returned xml contains empty 'host' tag ''

The URL: http://www.crunchyroll.com/jojos-bizarre-adventure/episode-13-wheel-of-fortune-652601

AhmadKahlid avatar Aug 14 '16 14:08 AhmadKahlid

Hi, http://www.crunchyroll.com/jojos-bizarre-adventure/episode-13-wheel-of-fortune-652601 Is an HLS stream. crunchy-xml-decoder only works with flv streams. Unfortunately, no one has yet made a hls downloader.

iCertys avatar Aug 14 '16 14:08 iCertys

If you are interested this is the URL of the HLS http://serve.cxcdn.net/s/v/9vuxan8yjjaks8f/m/8d969e75710f3008f6d529581a5e9dc0/jaJP.m3u8

To get the m3u8 you need the following parameter: v= The video id (mybe md5 hash of video file???) k= The Authentication key (226 characters long)

iCertys avatar Aug 14 '16 14:08 iCertys

u can download it by get the hls url in vlc !

anoosi avatar Aug 15 '16 14:08 anoosi

we tested with ffmpeg but they lowered the quality of their video 3072 Kbps to 1500kbps

rcyclope avatar Aug 18 '16 07:08 rcyclope

See #70 for a proof-of-concept patch for fetching via HLS. Likely needs some manual work for the merge.

jsonn avatar Aug 20 '16 19:08 jsonn

...or let's trace this in #73.

jsonn avatar Aug 20 '16 19:08 jsonn

Cleaner version in #78.

jsonn avatar Sep 15 '16 16:09 jsonn

If is HLS this issue can be closed

Dokman avatar Sep 22 '16 10:09 Dokman