fast4x / RiMusic

A multilingual Android application for streaming music from YouTube Music.
https://rimusic.xyz
GNU General Public License v3.0
2.5k stars 128 forks source link

Prevent same songs from appearing in radio queue #2102

Closed aneesh1122 closed 3 months ago

aneesh1122 commented 5 months ago

Description

Steps 1) play radio of any song 2) play 48th or 49th song 3) new songs will be added in queue

https://github.com/fast4x/RiMusic/assets/45353488/2323e6cc-78bb-4dc2-8d80-e3e15aeb1e9d

Suggested Solution

In these new added songs in 3), most of the songs are repeated from the first 49 songs.

https://github.com/fast4x/RiMusic/assets/45353488/aeb2bc07-a0c2-465a-b659-711972894fff

There are two ways to solve this 1) take 49 songs suggestions but those next 49 songs shouldn't include any songs from queue 2) take 49 songs suggestions but add n number of songs(<49) in the queue after removing all the songs which are already in queue

Basically there shouldn't be any repeated songs in queue

Alternatives

No response

Additional Context

If possible then please add an option to stop liked songs from appearing in radio suggestions. I use radio to discover new songs afterall

PaolaAtilano commented 5 months ago

I have the same problem too! I wonder if it's a problem with any API or something?

aneesh1122 commented 5 months ago

I have the same problem too! I wonder if it's a problem with any API or something?

YT API doesn't repeat songs in the radio queue.

It might have to do something with the unofficial API RiMusic uses.

Official api takes into account your listening history and has many algorithms to choose from to suggest songs like

Screenshot_2024-05-31-10-21-15-809_app.revanced.android.apps.youtube.music-edit.jpg

RiMusic doesn't consider your listening history while suggesting radio and simply suggests similar songs to the selected song.

I don't know how good unofficial/free API is so all I suggest is to not have repeated songs in queue

aneesh1122 commented 5 months ago

Could you please look into this once? @fast4x

Most of the radio suggestions are the songs I've already liked and most of the new suggestions are songs which are already in queue

Please add an option to prevent already liked songs from appearing in the radio suggestions and prevent duplicate songs in queue.