hls-downloader
hls-downloader copied to clipboard
More %NaN-s some possible insights - retry tactics needed
Same "test server" :-) Start from here for more problematic case (explanation below) A: https://www7.putlockertv.to/watch/impulse-1.kk7o6/vvxzqm4 This one behaved better "on average" but goes into NaN-s occasionally (explanation below) B: https://www7.putlockertv.to/watch/impulse-2.720o1
Always go for MyCloud row.
Chrome 78.0.3904.108, updates blocked Rerelvant extensions: HLS Downloader 1.7.0 Stream Recorder - 1.2.0 uBlock Origin - 1.24.2 uBlock Origin Extra 2.88
First the "easier case" B
Since I've noticed that you have "list" tooltip with URL for .m3us I tried it and the particular NaN I was seeing looked like 404 - like part of the URL changes in time and "expires" or has something that server s nonce (pseudo-crypto token with a timestamp or a monotonically increasing "integer" (can be in higher base == has letters) that serves as a timestamp).
The most important part was that "recovery" was F5 == retry -- so a bit of retry logic/heuristics/tactics might be helpful.
Also, videos on both A and B are in terrible "shape" on the server - in huge number of cases the player itself trips in the middle of playing or at the very beginning and gives "private message" (This video file cannot be played.(Error Code: 233011)) == timeouts are most probably the factor even for their own player.
Interesting aspect - they don't affect "HLS Downloader" - once it latches on the "good list" (read no NaN-s) it carries on.
On to the A - initially "HLS Downloader" was totally blinded - couldn't see a list for the life of it - F5-s Ctrl-F5-s, new window and copied URL - nada.
Then I clicked "Stream Recorder" (my last ditch savior, albeit terribly slow and annoying - you have to play the whole video in the worst case) and it didn't "see" the list either so I had to let it "restart the page in capture mode" (don't know what it actually does but after that it is able to capture the stream that page's player assembles - except that it breaks easily and in this cafe when the player trips there's no recovery).
BUT - on the page "relaunched in capture mode" by "Stream Recorder" - "HLS Downloader" SAW THE LIST - latched on it and life was good :-)
Meaning - "Stream Recorder" might have some code with good "retry tactics" - the whole "relaunched in capture mode" thing is really just a "stronger" and more controlled retry.
Even more interesting - from that point on, every click for a next video on that page had immediately discoverable and latchable list - no NaN-s, no glitches - bonanza :-)
"HLS Downloader" did lose "list indicator" (little number in blue rectangle) - until I clicked on it. Latched lists were intact but that means that he still got a bit confused when the player got stuck.