Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(PlayerEndpoint): Workaround for "The following content is not available on this app" (Android) #624

Merged
merged 6 commits into from
Mar 31, 2024

Conversation

LuanRT
Copy link
Owner

@LuanRT LuanRT commented Mar 31, 2024

To fix this, I modified the protobuf parameter we were using from:

{
    "1": {
        "2": 6
    },
    "59": 1
}

To:

{
    "1": {
        "1": 1
    },
    "59": 1
}

This is probably a temporary solution but it seems to work fine for now.

Unless you can't run our JavaScript interpreter (Jinter), I recommend using the WEB client (default) for something more stable.

Testing

Run the following code and try to play the streaming URL in a browser.

import { Innertube } from 'youtubei.js';

const yt = await Innertube.create();

const videoInfo = await yt.getBasicInfo('ksEYRaIpP7A', 'ANDROID');

console.info("Playback URL:", videoInfo.streaming_data.formats.find((stream) => stream.quality_label == '720p').url);

Related:
#623, iv-org/invidious#4498, yt-dlp/yt-dlp#9553, yt-dlp/yt-dlp#9554

Hard to find a comment with more than 20 replies. Removing this for now.
@LuanRT LuanRT merged commit d589365 into main Mar 31, 2024
4 checks passed
@LuanRT LuanRT deleted the fix/android-player-req branch March 31, 2024 14:35
pukkandan added a commit to yt-dlp/yt-dlp that referenced this pull request Mar 31, 2024
MoojMidge added a commit to MoojMidge/plugin.video.youtube that referenced this pull request Apr 1, 2024
kuylar added a commit to kuylar/InnerTube that referenced this pull request Apr 2, 2024
kuylar added a commit to kuylar/InnerTube that referenced this pull request Apr 2, 2024
kuylar added a commit to lighttube-org/InnerTube that referenced this pull request Apr 2, 2024
aalsuwaidi pushed a commit to aalsuwaidi/yt-dlp that referenced this pull request Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants