mirror / jdownloader

JDownloader mirror
389 stars 106 forks source link

Workarond to "PluginException: Segment:XXX not loaded" #16

Open i0xHeX opened 5 years ago

i0xHeX commented 5 years ago

I have unstable internet connection (it can drop sometimes up to 1 minute) and seems ok but sometimes on long download it can suddenly stop download and show that some segment not loaded:

--ID:2607TS:1557781429728-5/14/19, 12:03:49 AM -  [org.jdownloader.controlling.ffmpeg.AbstractFFmpegBinary(runCommand)] -> ExitCode:0
--ID:2607TS:1557781429729-5/14/19, 12:03:49 AM -  [org.jdownloader.downloader.hls.HLSDownloader(handleErrors)] -> Segment:207:http://***.**.12.34/sec/1557806831/38333636d7683c8a0d8d6cc3a8c66cee938cc4433827acee/ivs/d5/5a/edca93cbb123/hls/tracks-3,5/segment208.ts not loaded
--ID:2607TS:1557781429730-5/14/19, 12:03:49 AM -  [] -> Exception thrown at jd.controlling.downloadcontroller.SingleDownloadController.download(SingleDownloadController.java:424):
jd.plugins.PluginException: Segment:207 not loaded->ERROR_TEMPORARILY_UNAVAILABLE|Value:-1
    at org.jdownloader.downloader.hls.HLSDownloader.handleErrors(HLSDownloader.java:1384)
    at org.jdownloader.downloader.hls.HLSDownloader.onDownloadReady(HLSDownloader.java:1349)
    at org.jdownloader.downloader.hls.HLSDownloader.startDownload(HLSDownloader.java:1325)
    at jd.plugins.hoster.GenericM3u8.handleFree(GenericM3u8.java:183)
    at jd.plugins.hoster.GenericM3u8.handleFree(GenericM3u8.java:167)
    at jd.plugins.PluginForHost.handle(PluginForHost.java:1128)
    at jd.controlling.downloadcontroller.SingleDownloadController.download(SingleDownloadController.java:419)
    at jd.controlling.downloadcontroller.SingleDownloadController.run(SingleDownloadController.java:598)

I'm interesting, is there any workaround to continue download trying to redownload that segment and not entire video?