Closed andekande closed 1 year ago
Hi @andekande, thanks for pointing out the bug. Could you test again with version 16.8.1 from the link below to confirm that this bug is resolved?
https://github.com/efoxbr/megacubo/releases/v16.8.1
Edit: The installers were updated just now.
Thank you @efoxbr. EPG loaded succesfully !!! Also User-Agent is transmitted (see #23) !!! Your works makes me super happy. :+1: :clap: :tv:
@andekande Thanks for confirming. Let me know if you notice any other problems.
My EPG source is https://m3u4u.com/ A request to https://m3u4u.com/epg/a1b2c3d4e5 replies with these HTTP Headers:
So there is no
content-encoding
butcontent-disposition
. I believe that compression detection is not yet covered for that case in downloader module: https://github.com/efoxbr/megacubo/blob/master/www/nodejs-project/modules/download/download.js#L406 https://github.com/efoxbr/megacubo/blob/master/www/nodejs-project/modules/download/download.js#L634 Where it should detect 'gzip'.The EPG module throws with BAD_FORMAT: https://github.com/efoxbr/megacubo/blob/master/www/nodejs-project/modules/epg/epg.js#L238
An easy fix would be to check for '.gz' filename not only in url but also
content-disposition
header here: https://github.com/efoxbr/megacubo/blob/master/www/nodejs-project/modules/download/download.js#L412