pydora icon indicating copy to clipboard operation
pydora copied to clipboard

onDemand.getAudioPlaybackInfo

Open 89z opened this issue 3 years ago • 4 comments

I am requesting the the above method be added. It is useful, as it returns audio links for download. Example request:

POST /services/json/?partner_id=42&user_id=1901383005&auth_token=VIUUlTskR...&method=onDemand.getAudioPlaybackInfo HTTP/1.1
Host: android-tuner.pandora.com
Content-Length: 1072

0b5b3f806abef32879a802a0749e65e9bea1623d9ff53d4c47e1db0a11135f61e8de2089919ef34facde3af32214db0ec6a249a41f1dee680de4a53dd649b4e447abe2f430167fbef7d0c40952bf86b4f89edfd49c846b348affb88374876158e61e7a1897570b3c5d649871a9f7a843eaea7ad91b6568cce8a4825e79fe600a497a074213cba320157cb173b2f7160be19ebcd105667b7cd8e3c16f3cb6588ec972859029ba17df0d643f758c918b8021c242b6fc63cb77698d9f20cd456757ae960d62daf16609f129dd0a75014a89649c7cb29abc3154a41b24843187b22c416e43635bc12a2aac171ac10dcb0ae32a8c36352df5b63177dfa7ddc0fd577b94ab4855ef1746ccf72a766bd4bbb1a6599fc44629c0c24b90e7ae1a12a4a47f698ad33d515193ab4f3eed1001037610909df3e58804038634eeec596eedc58f1d067b2d4a7b6e05136801425788d872e512be24936fa65e2a4ef9b796b76f3ea86242c72346da40f27a39516e3e887ca3ffbd0003be0e09735ef77a8ced7125b443bdb0ca3470fe098755d5d7d559ccf552d87546587a1ecf9cb940b2a3417f2f080c3e3cd5dda618392fa73d82b896e12f222c09c70ed7e67df541a956a0c86f570dfed8d921a32f18e82f705579b232dc6ba4debf9d52d0bf280d5d4b5b3f07a0b5c1965561912c2a452e255b799ba187c2c6eab13480a41275f6bddd777fddc2380d380bab700f77a58ee7b37328b66d7a7f3fbfd266

Example response:

{
  "stat": "ok",
  "result": {
    "audioSkipUrl": "http://audio-usc-mp1-t3-2-v4v6.pandora.com/skip/?version=5&token=…",
    "audioUrlMap": {
      "highQuality": {
        "trackToken": "PQL…F6A",
        "audioToken": "sa1i254i1",
        "bitrate": "192",
        "encoding": "mp3",
        "audioUrl": "http://audio-sv5-t3-1-v4v6.pandora.com/access/2835118250323119025.mp3?version=5&lid=1901383005&token=…"
      },
      "mediumQuality": {
        "trackToken": "…",
        "audioToken": "sa1i254i1",
        "bitrate": "64",
        "encoding": "aacplus",
        "audioUrl": "http://t3-3.p-cdn.us/access/9091895642801678337.mp4?version=5&lid=1901383005&token=…"
      },
      "lowQuality": {
        "trackToken": "…",
        "audioToken": "sa1i254i1",
        "bitrate": "32",
        "encoding": "aacplus",
        "audioUrl": "http://audio-sv5-t3-1-v4v6.pandora.com/access/5459227089843432243.mp4?version=5&lid=1901383005&token=…"
      }
    },
    "trackGain": "-0.64",
    "audioReceiptUrl": "http://audio-usc-mp1-t3-2-v4v6.pandora.com/receipt/?version=5&receiptId=rkq0tnelX%2BeQ4zs%2FnWNST11hrx2u55Pd&token=.."
  }
}

https://6xq.net/pandora-apidoc/rest/endpoints

89z avatar Dec 16 '21 01:12 89z

Adding this should be doable. I may have some time in the next few weeks, unless you want to give it a try?

Do you happen to have more details on the inputs required and any other documentation?

mcrute avatar Dec 16 '21 01:12 mcrute

Also, could you post a plaintext version of the blowfish encrypted call?

mcrute avatar Dec 16 '21 01:12 mcrute

I implemented this myself:

https://github.com/89z/mech/tree/master/pandora

you can reopen this if you decide to add here.

89z avatar Dec 19 '21 16:12 89z

Thanks for the pointer. I’ll keep this open for when I have some time to implement it.

mcrute avatar Dec 19 '21 21:12 mcrute