lavaplayer icon indicating copy to clipboard operation
lavaplayer copied to clipboard

Use WEB client, add 403 retry (Fix "Video returned by Youtube is not what was requested")

Open devoxin opened this issue 1 year ago • 6 comments

Should fix https://github.com/lavalink-devs/Lavalink/issues/1030 by switching from ANDROID client to WEB.

To minimize the chances of encountering a 403 due to the odd invalid cipher resolving, I've implemented a basic 403 retry mechanism that will aim to fetch a new stream URL up to 3 times before throwing.

devoxin avatar Mar 30 '24 13:03 devoxin

Maybe playlists will work with the new player params from https://github.com/lavalink-devs/lavaplayer/pull/93 ?

duncte123 avatar Apr 01 '24 05:04 duncte123

Can someone explain? I don't understand how this supersedes #93 because I don't see any file overlap 😕 What am I missing? Is the whole client being changed away from Android and that is why version is irrelevant now?

jocull avatar Apr 08 '24 01:04 jocull

What is there to explain? ANDROID breaks every other week so we changed the client back to WEB (what it originally was many moons ago) which appears to be more reliable, as evidenced by the fact many users have been running this PR in various forms over the last week or so.

devoxin avatar Apr 08 '24 01:04 devoxin

https://github.com/lavalink-devs/lavaplayer/pull/88/files#diff-3d9550aeb292216eaf9f44301e329a2df287b7a84b5697ed4a26cd5c1296e1abR224

Vulcano771 avatar Apr 10 '24 20:04 Vulcano771

I don't understand what you're asking.

This change will likely be superseded by my rewritten source manager once I make a release for it anyway. The entire lot has been refactored and restructured so this doesn't matter. It was just a dirty fix so we could at least release a working jar.

devoxin avatar Apr 10 '24 21:04 devoxin

Superseded by https://github.com/lavalink-devs/youtube-source

Users are advised to move to that as it's likely that the built-in source manager will be deprecated soon. Leaving this PR open until plans have been finalized in the form of a release to bring awareness to this change.

devoxin avatar Apr 22 '24 23:04 devoxin