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

Handle youtube stream urls in "vnd.youtube:videoId" format. #277

Merged
merged 1 commit into from
Mar 14, 2020

Conversation

XiangRongLin
Copy link
Collaborator

@XiangRongLin XiangRongLin commented Mar 2, 2020

I tested it on my Android 10 device by entering the "vnd.youtube:Jb8BqYYqDMQ" into the browser and opening it with NewPipe
app-debug.zip

  • I agree to ASAP create a PULL request for NewPipe for making in compatible when I changed the api.

No changes required in frontend

closes TeamNewPipe/NewPipe#3091
@Offerel

The official YouTube app accept intents in this format, which causes other developers to use it.
@TobiGr TobiGr added the youtube service, https://www.youtube.com/ label Mar 2, 2020
Copy link
Contributor

@TobiGr TobiGr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@TobiGr TobiGr merged commit 1c954fb into TeamNewPipe:dev Mar 14, 2020
@XiangRongLin XiangRongLin deleted the vnd branch March 15, 2020 10:37
Comment on lines +55 to +63
@Override
public LinkHandler fromUrl(String url) throws ParsingException {
if (url.startsWith(BASE_YOUTUBE_INTENT_URL)){
return super.fromUrl(url, BASE_YOUTUBE_INTENT_URL);
} else {
return super.fromUrl(url);
}
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is unnecessary and pointless as far as I could tell.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
youtube service, https://www.youtube.com/
Projects
None yet
Development

Successfully merging this pull request may close these issues.

java.net.MalformedURLException: unknown protocol: vnd.youtube
3 participants