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

feat(YouTube Music - Change start page): Add more start pages #135

Conversation

ILoveOpenSourceApplications

Hopefully close #1905 and close #2641.

@ILoveOpenSourceApplications
Copy link
Author

ILoveOpenSourceApplications commented Jan 22, 2025

For Liked Music: "browseId\":\"VLLM\". URL: https://music.youtube.com/playlist?list=LM.
For Episodes for Later: "browseId\":\"VLSE\",\. URL: https://music.youtube.com/playlist?list=SE.

I believe simply adding that value won't be enough for these two. If so, what changes would be needed?

Simply adding them would be enough.

Also, Samples isn't available on web, so will it be similar to how it's achieved in YouTube, as in adding com.google.android.app.youtube.music.action.open.samples? Same for search as well?

@inotia00
Copy link
Owner

inotia00 commented Jan 27, 2025

Due to the limitations of the app structure, the Change start page patch was implemented in different ways on YouTube and YouTube Music.

In the case of YouTube, Intent for shortcut is public, so we can use Intent declared in AndroidManifest:

com.google.android.youtube.action.open.search
com.google.android.youtube.action.open.shorts

In the case of YouTube Music, the Intent for shortcut is private, so Intent is generated by the app's internal code.

According to the internal code, the available shortcuts are as follows:

QUICK_ACTION_TYPE_UNKNOWN
QUICK_ACTION_TYPE_SEARCH
QUICK_ACTION_TYPE_MY_MIX
QUICK_ACTION_TYPE_OFFLINE_MIXTAPE
QUICK_ACTION_TYPE_SHUFFLE_DOWNLOADS
QUICK_ACTION_TYPE_PODCASTS

Using shortcut seems to require a specific parameter (Base64) from the server side, as well as the Enum#ordinal().

(The parameter is encoded, but it was probably originally proto buffer)

The way to get this parameter is unknown.

@inotia00 inotia00 merged commit f7109f9 into inotia00:dev Jan 27, 2025
@ILoveOpenSourceApplications ILoveOpenSourceApplications deleted the feat/yt-music-add-more-start-pages branch January 27, 2025 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants