z-huang / InnerTune

A Material 3 YouTube Music client for Android
GNU General Public License v3.0
4.59k stars 285 forks source link

YouTube Integration #1409

Open z-huang opened 2 months ago

z-huang commented 2 months ago

As there are many issues related to YouTube Music integration, I decided to move them into this issue. The features you’re asking contain as follows:

It’s a huge work to implement this, from digging the API and considering data flow, to connecting the UI, and currently I don’t have a clear picture of how it should be like. Therefore, I need your suggestions, as detail as possible: How should local library and YTM library interact? Fully or partly?

gmankab commented 2 months ago

thank you for your very nice app ❤️

How should local library and YTM library interact? Fully or partly?

partialy in first commits, but the goal full integration

should we combine library songs and liked songs in order to be compatible with YTM library?

i think app should show 2 playlist, offline, and youtube music synced

offline one is always visible, and synced one is visible only if user logged in to youtube

i think here is a good roadmap for liked songs syncing commits:

gmankab commented 2 months ago

how to use official export of liked songs from youtube music to csv:

gmankab commented 2 months ago

gyawun and simpmusic are good examles of apps with youtube music synchronisation

Malopieds commented 2 months ago

I think OuterTune (a fork of InnerTune) also has it.

gmankab commented 2 months ago

I think OuterTune (a fork of InnerTune) also has it.

wow, first time seeing it, thank you a lot!

z-huang commented 2 months ago

I think OuterTune (a fork of InnerTune) also has it.

I tried, and it looks like songs, albums and artists are two-way synced. But playlist sync is not supported yet. I will figure out how the dev implement it.

z-huang commented 2 months ago

When a user turns on YTM sync, what should we do with the original local database? Merge, be replaced, or hide?

mikooomich commented 2 months ago

But playlist sync is not supported yet.

What do you mean by this? I added a song to a playlist and it appears on my account.

If you're talking about creating a new playlist and adding to it, the syncing technically work, albeit some Ux issues (the create playlist dialog in the playlist screen isn't the updated version with the sync toggle, and playlists don't appear immediately right after creation)

Hi, I am one of the OuterTune devs

z-huang commented 2 months ago

@mikooomich I cannot add or delete songs for my YTM playlists.

ruskcoder commented 2 months ago

I cannot add or delete songs for my YTM playlists.

It is working for me, I just signed in, and switch to the old interface layout, and all my ytm playlists show up in the library section. I usually use OuterTune to add/remove songs from my playlist.

gmankab commented 2 months ago

When a user turns on YTM sync, what should we do with the original local database? Merge, be replaced, or hide?

good solution would be a "choose user" menu, that allow to choose betweeh offline user with old local database, and online user with new synced database

Anonuser-code commented 2 months ago

When a user turns on YTM sync, what should we do with the original local database? Merge, be replaced, or hide?

Merge

unseenlarks commented 2 months ago

the 'account' section that leads to a user's YTM playlists, and the profile section found in settings that leads to the YTM home screen don't seem to be necessary, the first because those playlists could be on InnerTune's home screen after login, and the second because it shows the YTM UI which clashes as InnerTune's is much cleaner and easier to use.

if logged in, everything that belongs to the active YTM profile could be displayed on the main/home screen. if logged out, only local recommendations, albums, etc. would be there instead.

Xisrr1 commented 2 months ago

There is another Music streaming app called 'Echo', which has YT music integration, and does a much better job at syncing everything and using recommendations from your account instead of locally.

z-huang commented 2 months ago

There is another Music streaming app called 'Echo', which has YT music integration, and does a much better job at syncing everything and using recommendations from your account instead of locally.

Link please~

gmankab commented 2 months ago

https://github.com/brahmkshatriya/echo

asifbagali commented 1 month ago

java.lang.UnsupportedOperationException at k8.g.u(Unknown Source:5) at k8.g.e(SourceFile:10) at z8.t.u(SourceFile:58) at va.a.m(Unknown Source:8) at lb.n0.run(Unknown Source:100) at rb.a$a.run(SourceFile:82)

NiceSapien commented 1 month ago

Guys, is work being done on this? It would be very cool to have. Also, I had a question: Once this is implemented, would all my listening history from InnerTune appear in YouTube wrapped thingy at the end ot the year? This wrapped thingies is the reason I use spotify mods instead lol

zettaexa commented 1 month ago

Guys, is work being done on this? It would be very cool to have. Also, I had a question: Once this is implemented, would all my listening history from InnerTune appear in YouTube wrapped thingy at the end ot the year? This wrapped thingies is the reason I use spotify mods instead lol

Yes since YouTube is getting data for Recaps through your watch history, which as you can see in the starting post is being worked on to be synced with YTM

1YuvrajS commented 4 weeks ago
PhilippKosarev commented 3 weeks ago

Personally I think it could be a good idea to have offline and online playlists; with the ability convert offline to online and vice versa. It's good for privacy since then it will only interact with the cloud when the user requests to. Also just merging all playlists on login without asking the user could introduce a whole lot of issues and frustrated users (their asmr mommy roleplay playlist got leaked)

hsp1020 commented 2 weeks ago

simpmusic app updates all.

Sync liked songs, playlists, albums, artists, and history Show YTM history Personalized suggestion

aneesh1122 commented 2 weeks ago

simpmusic app updates all.

Sync liked songs, playlists, albums, artists, and history Show YTM history Personalized suggestion

Add songs to a local playlist and add some songs. It won't show you the newly added songs. You have to restart the app to see those songs.

There are many bugs in that app.

siggi1984 commented 2 weeks ago

https://github.com/Maloy-Android/Muzza

Here is another fork of Innertune that has YouTube Music integration. It's still in beta and some components are still missing. But it looks promising. Maybe you can check it out.

https://t.me/appmuzzaupdatesnews

aneesh1122 commented 2 weeks ago

https://github.com/Maloy-Android/Muzza

Here is another fork of Innertune that has YouTube Music integration. It's still in beta and some components are still missing. But it looks promising. Maybe you can check it out.

https://t.me/appmuzzaupdatesnews

I've been searching for a yt music player which can

1) sync likes and playlists with yt account 2) list all the cached songs 3) can set the cache limit 4) has mix playlists in the home page

siggi1984 commented 2 weeks ago

https://github.com/Maloy-Android/Muzza Here is another fork of Innertune that has YouTube Music integration. It's still in beta and some components are still missing. But it looks promising. Maybe you can check it out. https://t.me/appmuzzaupdatesnews

I've been searching for a yt music player which can

1. sync likes and playlists with yt account

2. list all the cached songs

3. can set the cache limit

4. has mix playlists in the home page

Basically, you're looking for ViMusic with YTM integration. I haven't come across it yet.

namename-123 commented 1 day ago

please add an option to view the YouTube ui directly, or better just to include what the site shows I really want categories like "forgotten favorites" and "from the community" and I hope these are implemented in the future, thank you for the amazing app 🙏