einstein95 / crunchy-xml-decoder

GNU General Public License v2.0
35 stars 14 forks source link

Downloading error #71

Open AhmadKahlid opened 7 years ago

AhmadKahlid commented 7 years ago

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

iCertys commented 7 years ago

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 commented 7 years ago

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)

anoosi commented 7 years ago

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

rcyclope commented 7 years ago

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

jsonn commented 7 years ago

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

jsonn commented 7 years ago

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

jsonn commented 7 years ago

Cleaner version in #78.

Dokman commented 7 years ago

If is HLS this issue can be closed