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

[Feature Request] Support for replay song #601

Open
redog opened this issue Dec 2, 2016 · 13 comments
Open

[Feature Request] Support for replay song #601

redog opened this issue Dec 2, 2016 · 13 comments

Comments

@redog
Copy link

redog commented Dec 2, 2016

Pandora Plus includes unlimited song skips and now support replaying the current song.

pianobar should include support for this feature.

@redog redog changed the title Support for replay song [Feature Request] Support for replay song Dec 2, 2016
@PromyLOPh
Copy link
Owner

PromyLOPh commented Dec 3, 2016 via email

@Lvl4Sword
Copy link

Lvl4Sword commented May 19, 2017

https://www.pandora.com/api/v1/ondemand/getReplayTrack is only available if you've watched an ad on the desktop version and says "Replay not available" otherwise ( my experience, also https://help.pandora.com/customer/en/portal/articles/2590339-replays ). Headers:

Host: www.pandora.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0
Accept: application/json, text/plain, /
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Type: application/json
X-AuthToken: [EDITED]
X-CSRFToken: [EDITED]
Referer: https://www.pandora.com/station/play/[EDITED]/history
Content-Length: 251
Cookie: wrt=[EDITED]; v2regbstage=true; at=[EDITED]; v3ad=[EDITED]; pwc-2016=true; csrftoken=[EDITED]; _sl_path=/station/play/[EDITED]
DNT: 1
Connection: keep-alive

https://www.pandora.com/api/v1/ad/useReplayReward
had response:
replaysRemaining:1

useReplayReward and getReplayTrack are also used if you watch an ad and then switch on an adblocker of some type ( uBlock Origin or the like ).

Let me know if you need me to get you anything else.

@PromyLOPh
Copy link
Owner

PromyLOPh commented May 19, 2017 via email

@normancroan
Copy link

Hi folks, just found this while utilizing the windows binaries (https://github.com/thedmd/pianobar-windows-binaries) - if you pause the track with 0 seconds remaining, resuming will cause it to play from the beginning. I tested this a few times and got a song to play back 3 times. It's a bit of a hack but that could be reproduced in a feature pretty easily if the user indicates they wish to loop the current track.

@PromyLOPh
Copy link
Owner

PromyLOPh commented Jun 15, 2017 via email

@hatcreek68
Copy link

hatcreek68 commented Mar 25, 2018

is there any way to access the pianobar cache to replay?

@PromyLOPh
Copy link
Owner

PromyLOPh commented Mar 25, 2018 via email

@hatcreek68
Copy link

hatcreek68 commented Mar 25, 2018

Ok, it just streams the current song URL? Can the current song URL be posted to patiobar or a text file? Similar to the current song text file that gets overwritten?

@PromyLOPh
Copy link
Owner

PromyLOPh commented Mar 25, 2018 via email

@hatcreek68
Copy link

hatcreek68 commented Mar 25, 2018

Hey, if you want to keep it hidden, your call 100%; but here's some reasons it's NOT obvious to me to keep it hidden.

  1. pianobar is already accessing that URL to stream...
  2. You can legally record to the radio (over the air radio), for personal use. Also see VCR/PVR debate...
  3. If you go to pandora.com, play a song. Legally. Hit F12, observe the song URL. Go to said URL, it will work for a limited time. Does pandora want you to do this? Probably not. but it's just a URL made available to listen the a song, paid for by ads between x many songs.
  4. You can even straight download the song from the URL w/ 1 click - and own the consequences of doing so if you breach any law and/or terms of service - but pandora itself doesn't prevent this.
  5. Pandora lets you replay instantly on the mobile app, for the price of 1 ad; would be cool to integrate replay in pianobar (using ads or paid pandora one account). Pianobar is already adfree - so it's a dance here. We follow SOME rules but not all of them....... would be better to just commit one way or the other.
    Maybe REQUIRE pandora one accounts to use pianobar to mitigate legal issues?

example 1 - observe song URL straight from pandora.com
example 2 - said URL functions for some amount of time for a reply

@buu700
Copy link

buu700 commented Sep 16, 2024

Related to this, it would be really nice to have an option not just to replay the current song, but to choose a previous song to replay.

@PromyLOPh
Copy link
Owner

Everthing that has been said so far is still valid: 1) URLs expire, 2) there is no cache and 3) it’s not known how to use the replay API calls.

@buu700
Copy link

buu700 commented Sep 16, 2024

Makes sense, thanks for clarifying.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants