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

Repeats the same song too close together #356

Open
pfahlstrom opened this issue Oct 21, 2019 · 10 comments
Open

Repeats the same song too close together #356

pfahlstrom opened this issue Oct 21, 2019 · 10 comments

Comments

@pfahlstrom
Copy link

When it queues the next song, it should do some kind of check to see if that song has already been played in the last X number songs. I'm getting a lot of songs repeating with only a small number of different songs played in the interim, sometimes less than 5. Today Hermes just played the same song twice in a row, in a station that has over 400 thumbs-ups.

Hermes builds on pianobar, right? Is this a pianobar issue?
Screen Shot 2019-10-21 at 11 59 11 AM

@pmetzger
Copy link

The music is sent to you by Pandora. So far as I know, Hermes is not selecting the songs.

@pfahlstrom
Copy link
Author

Sure. There's clearly something different about how the next song is selected though; repeats don't happen when listening on Pandora.com. There could be some type of client-side check added to see whether the next song was played recently.

@nriley
Copy link
Contributor

nriley commented Oct 24, 2019

It's possible Hermes is using an older API versus other Pandora clients. But as @pmetzger said, we just play what Pandora tells us to play.

@pfahlstrom
Copy link
Author

I understand. That makes this a feature request, to add a client-side check to keep songs from repeating too quickly. The current behavior is unfortunate.

@pmetzger
Copy link

Pandora clients don't do that. Which is to say, they don't check whether songs have played recently. That's something that is done by the server.

@pfahlstrom
Copy link
Author

It's certainly not done by the server, at least not at all well; the screenshot is the proof. And I just had this exact same song repeat again today, this time with one song intervening.

Pianobar's documentation says that Hermes is a client based on it. Pianobar has a command to see what songs are up next. I'm barely a scripter rather than a coder, but it would be straightforward to build a local hashtable or other list of the song IDs of the recently played songs, see what song is coming up next, and if its song ID appears in that list, play the next one instead.

@pmetzger
Copy link

pmetzger commented Oct 25, 2019

Whether it is done well by the server or not, the server is the part that selects what it's going to play you. 🤷🏻‍♂️

Which is to say that, fundamentally, the problem isn't Hermes but Pandora.

@pfahlstrom
Copy link
Author

There is no technical reason Hermes couldn't compensate for Pandora's error. Hermes plainly already keeps a list of what songs were played recently, since those appear in the sidebar.

@ghost
Copy link

ghost commented Aug 8, 2020

The list of previous songs is local though. Could check for duplicates.

@bmehling
Copy link

I too am seeing the same fews songs played quite often (same handful of songs over and over).

My hunch was this is related to their Modes feature. I tested playing directly from the web UI all day yesterday and believe my hunch is accurate. I don't think I had any repeats after a few hours of playing via the web vs. Hermes.

If Pandora added a 'modes' API endpoint, then Hermes could add support for it. Unfortunately their API docs are behind a login so I can't verify if that's even possible for 3rd-party clients...

I see a related feature request ticket (#359).

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

No branches or pull requests

4 participants