YouTubeKit icon indicating copy to clipboard operation
YouTubeKit copied to clipboard

Failed to decode object from given start point:

Open Franknxtn opened this issue 1 year ago • 3 comments

Hi, The descrambling mechanism does not seem to work anymore. I receive below error on Xcode log, and the stream URL too refuses to play...

applying descrambler finding initial function name Failed to decode object from given start point: The data couldn’t be read because it isn’t in the correct format. [Extraction] pattern (ytplayer.config\s*=\s*) failed: The operation couldn’t be completed.

Franknxtn avatar May 01 '23 17:05 Franknxtn

Does it work with the new 0.1.8 release?

alexeichhorn avatar May 01 '23 20:05 alexeichhorn

Having the same issue here from time to time, I'm on the latest main commit.

Jeehut avatar Sep 26 '23 08:09 Jeehut

Here's the full value stored in fullObject within the parseForObjectFromStartpoint method that couldn't be parsed:

{args:{raw_player_response:window.ytplayer.bootstrapPlayerResponse}}

This is not valid JSON. Also the type it's trying to parse it to is Extraction.PlayerConfig which doesn't fit the structure.

The test in your unit tests named testSampleVideo1 also fails due to the same issue if you set the InnerTube client type to .web (it fails also with set to .ios in my project, but in the tests it works with .ios).

Jeehut avatar Sep 26 '23 08:09 Jeehut