khushpanchal / Ketch

An Android File downloader library based on WorkManager with pause and resume support.
https://medium.com/@khush.panchal123/ketch-android-file-downloader-library-7369f7b93bd1
440 stars 33 forks source link

Ketch can't download file from some url #29

Open a1x007 opened 1 month ago

a1x007 commented 1 month ago

If i use this type url - https://ssv2de.ytjar.xyz/rr2---sn-ixh7yn7d.googlevideo.com/videoplayback?expire=1725473530&ei=mk7YZtHeN8ePv_IPoLOg2QQ&ip=2a01%3A4f9%3A5a%3A22c0%3A%3A2&id=o-AGJYaakTU70CNRFNqf_DhKUIeW6oT8umzi0LZNDbtS89&itag=18&source=youtube&requiressl=yes&xpc=EgVo2aDSNQ%3D%3D&mh=65&mm=31%2C26&mn=sn-ixh7yn7d%2Csn-4g5edndl&ms=au%2Conr&mv=m&mvi=2&pl=44&gcr=de&initcwndbps=846250&bui=AQmm2ewig3e6cZ5FmvD0lhnAwtYGbl7IpnV1nO5KkNXlRxKGfwpZJpN7m6qM5-iQn-L5oBtlkVKbuNRn&spc=Mv1m9oAgXvk95spuRuKj_OkUVvGaFCoaf_9OmnUdC9dU1g7Uefr0&vprv=1&svpuc=1&mime=video%2Fmp4&ns=DRypCk1EV6OL9B3GilHSQusQ&rqh=1&gir=yes&clen=14761456&ratebypass=yes&dur=198.414&lmt=1724458486227757&mt=1725451508&fvip=3&c=WEB&sefc=1&txp=5538434&n=_rj50ti4YTM7nw&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cgcr%2Cbui%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Crqh%2Cgir%2Cclen%2Cratebypass%2Cdur%2Clmt&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=ABPmVW0wRgIhANrIcnZzLN__0rSmBmgDpZpi15tx3s1k2pZf7TabeDOGAiEAgyTBlCZyJZwmMstMTaJrrase7tLVlBuzSpDji2NitPE%3D&sig=AJfQdSswRQIgFTTlrQMJv92Qw8le9iPtWgfvbI-7niCyjjbP6u94-nYCIQDP8dhuVAsK8nRQmLIxNSCwPSfJOcYlWif8VdLaEKNi1Q%3D%3D&title=Sabrina%20Carpenter%20-%20Taste%20%28Official%20Video%29.mp4 it simply gives error but if i try simple url then its working fine. On the other hand if i use PRDownloader library then its downloading the files from this type url just fine. And i also check postman for this type url only accept get request and its sending information as chunked so i guess if ketch can't get total file size or file name, type, etc then ketch cant download

khushpanchal commented 1 month ago

Could you share the failure reason you are getting ? Also please note as of now for ketch to work properly content-length should be given by the url, then only ketch can show the progress and pause resume can work properly.

itsallan commented 4 weeks ago

W A connection to https://videohostedsite.com/ was leaked. Did you forget to close a response body? To see where this was allocated, set the OkHttpClient logger level to FINE: Logger.getLogger(OkHttpClient.class.getName()).setLevel(Level.FINE); 2024-10-01 03:05:22.750 32238-32722 okhttp.OkHttpClient @khushpanchal this is the error am getting