-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
YouTube Music search stuff #3240
Conversation
@opusforlife2: Here is a test APK, in case you wanted to test it, since you opened #3202. |
Yay! I'm gonna use this so much. ಠ‿ಠ Edit: I love you. (づ ̄ ³ ̄)づ |
This occurs for all 4 "Music/" options Exception
Crash log
|
@opusforlife2: Could confirm. It's caused by that "Did you mean: mega man x3" thing at the top. I'll fix it in a few minutes. Edit: fixed and updated APK. |
I would like a way to stay on Youtube Music when autoplay is on. But right now there's no guarantee that the next suggested video is a YT Music audio. That was basically what I wanted when I mentioned having YT Music as a separate selectable service. The ability to restrict all calls to music.youtube.com only. |
@opusforlife2: Autoplay in NewPipe is YouTube autoplay. What you also want is support for YouTube Music mixes, which are also different from YouTube mixes (that will be added by TeamNewPipe/NewPipeExtractor#280). Could you open a separate issue for that? Thanks! |
Werks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One thing to keep in mind is that videos on YouTube Music returns different titles from the normal version, so it will change when opening them. I guess is not a huge issue though?
Occurs for all 4 options, again. Exception
Crash log
|
@opusforlife2: I don't have that issue, though I think I've fixed it. |
Fixed! Suggestion: Just like you put YouTube Music above the bottom 4 filters, why not put YouTube above the top 4? It'll look consistent and clearer to the user as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Frontend looks good to me
if (filter.equals("music_songs")) { | ||
MenuItem musicItem = menu.add(2, | ||
itemId++, | ||
0, | ||
"YouTube Music"); | ||
musicItem.setEnabled(false); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, adding a disabled item as a header title is bad...
Though I don't know if something like that can even be implemented in a native way (closest thing would be a sub-menu), and I'm not sure if it's worth it to add custom components when this option will be improved in the near future.
Will we just leave it like this until that day?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, this couldn't be implemented in a native way other than submenus. I told Tobias that I didn't really like using a disabled item for that, but he seems to be fine with it until we improve the whole search filter thing some day.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, adding a disabled item as a header title is bad...
Yes. I hope that we will get proper search filter soon.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. @TobiGr it should be merged after TeamNewPipe/NewPipeExtractor#280 and #3243 are ready
@TobiGr: I just rebased this PR. |
@Stypox Why should this be merged after TeamNewPipe/NewPipeExtractor#280 and #3243? |
@TobiGr: He said that because it depends on the commits to add support for showing 100+/unlimited/unknown streams for playlists. However, I've added the relevant commits to this PR as you could see. |
@TobiGr oh ok, then merge it, the other ones can be rebased afterwards |
ITEM_COUNT_INFINITE and ITEM_COUNT_MORE_THAN_100. Use localizeStreamCount in PlaylistFragment and PlaylistItemHolder
Note: more_than_100_videos_mini and infinite_videos_mini are untranslatable
See TeamNewPipe/NewPipeExtractor#291.