DevilXD / TwitchDropsMiner

An app that allows you to AFK mine timed Twitch drops, with automatic drop claiming and channel switching.
MIT License
1.44k stars 148 forks source link

InvalidURL #EXT-X-ENDLIST #504

Open matarife123 opened 6 days ago

matarife123 commented 6 days ago

Sin título

guihkx commented 6 days ago

I think this error is similar to what I randomly experienced here: https://github.com/DevilXD/TwitchDropsMiner/pull/466#issuecomment-2113733073

Sometimes the response body of that request will not be as expected...

DevilXD commented 6 days ago

Hmm, I see. I'm assuming that a valid link is present in the line just before this tag. If that's the case, it should be relatively simple to detect it, and just pick the -2nd line instead of -1st. I'd like to get a repro for this though, just to confirm before implementing a fix.

I'll run the miner in live debug mode over the weekend, with a breakpoint set to try and catch this. Will see how it goes.

DevilXD commented 4 days ago

I wasn't able to catch this one, but I've added some extra logic that should take care of this problem. The changes can be found here: https://github.com/DevilXD/TwitchDropsMiner/commit/5b515be34bd0c282a38886c4fca1991141d01c72

Unless it repeats after the fix, this issue can/will be closed at a later date, once it can be assumed that it works.