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

Ads randomly playing #415

Open
Matthew9170 opened this issue Dec 20, 2013 · 133 comments
Open

Ads randomly playing #415

Matthew9170 opened this issue Dec 20, 2013 · 133 comments
Labels

Comments

@Matthew9170
Copy link

As of late ads have been playing in my Pianobar and it is using the name of the song that is next in the list to be played as the track title.

@PromyLOPh
Copy link
Owner

Can you press '$' while the ad plays and post the debug output? How
often does this happen?

@rye
Copy link

rye commented Dec 24, 2013

I just started getting the same issue. It seems to happen every time Pianobar grabs a new playlist.

EDIT: Turns out that it happens, it seems, at least once every four songs for me. I've been getting some obviously foreign ads, as well (some ones in Brazilian Portuguese, for example).

EDIT 1: Brazilian isn't a language. My fault for being ignorant.

@rye
Copy link

rye commented Dec 24, 2013

Here's my debug output:

album:0:White Ladder
artist: David Gray
audioFormat:    1
audioUrl:   http://mediaserver-sv5-rt-1.pandora.com/access/4334981356347053567.mp4?version=4&lid=919772208&token=RkAfroIzhdUced2ipEhS1xN50woYosaTvVVjqaR5Skhtq7z1XP%2Bc6kdGNIkjph1Cbvr98qQbtATvUIosyhaPFbUTbAh2dCOS0i8w9IvbctZV5USFZ56ilQxRVHnRxWMR1Ur86iT9NflGa02VEz%2FNhYyx9cGR9KxxSUq3o8kriBdq%2Fn0tdFnjn%2B5iqzP8uCmvG8TbOKGZeINIRZk%2BXceigOcndIHiyoMNNCYLjArCAggKPNc0TzEKdvUIwOVy0qy9z21p7KSdaek6EK7%2F50PPSxx3Zl7gR7djh2i74MG59ZZ7OTBvGwXhFb1CuR%2FqX7%2Bvu%2FKH343r8UI6IAN2wroe2E2RaqCqFMCBMZg%2F3K%2B%2Bkj7lU1HZFTDC9EEdvsOJV2lpyieRJ0crPFgcYbMNfH0PdjAEFIKnZWfgOXSOi3bOZ238MK46vjstWw6ik7amSr2bwo%2B9TvfyTTmGa0KiwFZAYz0xa8SljWWK2P3M6x4kvmB6SJ27adPFG8gPFiPDXTKw3as31uFNvw90w%2F8swVYfwTUAJy1%2FPNxEKG7j9MUNT0rlzOdY7JvYZzwk%2FQGLC2tkTqPQSoyBygLN461JRe%2FlfQ%3D%3D
coverArt:   http://cont-sjl-1.pandora.com/images/public/amz/6/2/1/5/078636935126_500W_500H.jpg
detailUrl:  http://www.pandora.com/david-gray/white-ladder/this-years-love?dc=232&ad=1:16:1:47906::0:0:0:0:582:595:IN:18157:2:0:0:0:0:1
fileGain:   -0.910000
musicId:    (null)
rating: 0
stationId:  1764108610311461936
title:  This Years Love
trackToken: fa4192c8c237a78d9d1cff08552efc07aa87b578bbefe4f74babd54d6ca91fca7742079e0a5164717ae1fbc2fde70543f006    9fbfb9caa198ac07d0a7c31890fc

To me, it looks like this debug output is the output for the previous song, not the ad itself. I'm no expert, however.

@Matthew9170
Copy link
Author

I just got another ad and was able to get the debug output for.

|> "Hey Jude (Love Version)" by "The Beatles" on "Love"
album:0:Love0:30
artist: The Beatles
audioFormat: 1
audioUrl: http://mediaserver-sv5-rt-1.pandora.com/access/5301148938087702787.mp4?version=4&lid=1046294704&token=l7FQrBL7yODjN7nkIrBnCcijnluLMSS4ikf0O0EXY7PGHRgVvnUOBL8lc1KGCroQVLOtU6cN%2BSHaxlNpYLDLAivvwfVLV4r9PWxxREmC4pboQCLQJu0eIL1rDlrCZdDbs1gOJF1sJQQ6zs%2B5aIbbofjXXExdJ%2B3OkCj8DuWwlJoqGPQgy%2B8djW6pAMbVauNJn7ObuWc2PqbAr%2ByfLlAeEF8r4brXpZd9E2r%2FB8ZcSX0QpLv1M83aPbi6bBTJ0ehXhfjwIdLn3dlyGpRQYZzyvbCDz0uA9b2N8mCQVRNE6C9jQAiE75mcKIm6%2F9nj15xgGBduJYMbUkYkscnxhdTNm3UjhENmwljfnHYIbeGcLRI2pz2EUaw5tjpZ1cP11c78n8gvcBafr%2FbO50tghHqZbGNIA1LXzVR9uoasTnr0id8t481YLUr4Sq7EvCQJfbDezFB0UXanvXXyIh5F2qQ8uxZWhFi%2FamW16v2wQNffj2LimNhqG1PUN9IE0dfgK1%2FoGtFF3Q4JcU0n6LlEHbKg73Ot52sZMczi0sdncwcU5MB71hJaXH1mDtwvTnhoxIdKobHtcDVVpOG%2FlPom6EQvScyp6HlLrqG%2BGOu18NLLiBeDkmjIauI2AQ%3D%3D
coverArt: http://cont-2.p-cdn.com/images/public/amz/8/2/8/0/094637980828_500W_500H.jpg
detailUrl: http://www.pandora.com/beatles/love/hey-jude-love-version?dc=232&ad=1:23:1:04238::0:0:0:0:500:197:ME:23017:2:0:0:0:0:1
fileGain: -3.190000
musicId: (null)
rating: 0
stationId: 1359465946046869680
title: Hey Jude (Love Version)
trackToken: 1e5a7f5d29d0d297f4f0bc515b8fb10f978261e0940239dd413536d8719605254698433af225c35614279f1e0d97a725554bba77f7882885c3742dcc40e4a271

It was a 30sec ad that played instead of the song listed (Hey Jude by The Beatles). It happens on occasion, some days more than other but it started about a week or 2 ago.

Edit: Just got another one in less than an hour on a different station.

|> "Clocks" by "Dallas String Quartet" on "Eclectric"
album:0:Eclectric
artist: Dallas String Quartet
audioFormat: 1
audioUrl: http://mediaserver-sv5-rt-1.pandora.com/access/6079783325139117550.mp4?version=4&lid=1046294704&token=xI4cm3CfEV3EbhtH7ZBCTby2kvWsc2eFoWLV688h9SLjZdMG5OQl7BPg96%2Bfk220gGGfCTNYpgO6C%2FZX923cwf8HeYbIj%2FznZ70ppmgz1ym9jhaUWEcCT7aoK7ZHDKS1SVWz%2FK8yzRpDhQU%2BL8NOz9uasvNofX1kWCAQkkmWB97z8mctVJ7Mdnwp6KlxVLb%2BOFlTFufmGqlC%2Bb%2F%2FPXrCR5wQYAE2fXt6EBSqG%2BFlULozN%2BxplClo87y0w7h7yhAmQvwiwspBGy6HhaQRN1tO5fmP7WM4x4cEbR23IPYPtnMUDsjhJVXex5R2dJ7u9XnfhCo4zFcnCr4lh%2Fu84KjHAbO3U3ubLFKmOO4QNaYbXb%2Ftt227YTrSkHAbhT1rdM7gzLQWVBIRamFJb17glh7wlS3axQlP8X1P%2FaXhEEp3woYh5VyHO3322yrczXuH8%2Bs6adbrwVD9RN%2FOmHHX82KpYEQYLVJIPAmmon7v3d%2Fb%2F05zMg7PdkQNRRTz1ER38YAwAGJLcfpdyr9S1%2FCO0jgXpu4rbRdLBxbHmh%2FePS74Y4Y%2FHoC13Xh5XaU1ZQcMj8v1Jle83qMdJKe7%2FNTLlE8uehfk%2FNO1bzjV
coverArt: http://cont-ch1-1.pandora.com/images/public/amz/7/2/3/2/735885882327_500W_500H.jpg
detailUrl: http://www.pandora.com/dallas-string-quartet/eclectric/clocks?dc=232&ad=1:23:1:04238::0:0:0:0:500:197:ME:23017:2:0:0:0:0:1
fileGain: -2.690000
musicId: (null)
rating: 0
stationId: 1417281883797794992
title: Clocks
trackToken: 1f6329368b458192d00b2a8b38cff209edbae1b07e9d08afac9bd452ce2a047089189932f852d768ec42f22d94af18d23d6aa1a1958db41bb0ecff5769a92fda

@PromyLOPh
Copy link
Owner

Hm, looks like standard song url’s to me. I have not heard a single ad
myself – thus I’m gonna need help from those who have: Can someone apply
the patch below and post (or send me via email: [email protected]) the file
debug.json and the song/artist name which got replaced by an ad. The
file is created by pianobar and contains Pandora’s responses to API
calls, so remove sensitive data like authentication token, username,
etc. Thanks. https://gist.github.com/8151643

@gitvertiser
Copy link

The ad was in place of song "Simple Man":
Welcome to pianobar (2013.09.15)! Press ? for a list of commands.
(i) Control fifo at /home/spot/.config/pianobar/ctl opened
(i) Login... Ok.
(i) Get stations... Ok.
|> Station "Pink Floyd Radio" (1043281135054489434)
(i) Receiving new playlist... Ok.
|> "Tears In Heaven (Unplugged Live)" by "Eric Clapton" on "Unplugged (Live)"
|> "Can't You See" by "The Marshall Tucker Band" on "The Best Of The Marshall Tucker Band - The Capricorn Years"
|> "Simple Man" by "Lynyrd Skynyrd" on "Pronounced Leh-nerd Skin-nerd"
|> "Sunshine Of Your Love" by "Cream" on "Disraeli Gears"

Content of corresponding debug.json, which was eddited to remove auth tokens:
token{"stat":"ok","result":{"syncTime":"385c58cf10349a2a0e5d86081c347618","deviceProperties":{"optionalFeatures":{"optionalFeature":[{"feature":"useAudioProxy2","enabled":"false","platformVersionRange":{"low":"4.0","high":"5.0.0"},"productVersionRange":{"low":"1.6","high":"*"}}]},"adRefreshInterval":5,"videoAdUniqueInterval":0,"videoAdRefreshInterval":900,"videoAdStartInterval":180,"ooyala":{"videoAdLoadingTimeout":2,"videoAdBufferRetryCount":3,"streamingPercentage":0,"streamingWhitelist":[534051315],"videoAdPlayTimeout":8}},"partnerAuthToken":"","partnerId":"42","stationSkipUnit":"hour","urls":{"autoComplete":"http://autocomplete.pandora.com/search"},"stationSkipLimit":6}}
{"stat":"ok","result":{"stationCreationAdUrl":"http://ad.doubleclick.net/adx/pand.android/prod.createstation;d2=6;d1=7;mdid=98104622288042483907;msa=;OS=;aa=0;ag=42;app=;clean=0;co=36093;dma=532;et=0;fam=-1;genre=0;gnd=2;hhi=0;hisp=0;l=r63msgwsiga7w;logon=__LOGON__;mc=0;model=;tablet=0;st=NY;uq=R6DJR6A2QOPT2;zip=12345;tile=1;sz=320x50;ord=__CACHEBUST__","hasAudioAds":true,"splashScreenAdUrl":"http://ad.doubleclick.net/pfadx/pand.android/prod.welcome;d2=6;d1=7;mdid=98104622288042483907;msa=;OS=;aa=0;ag=42;app=;clean=0;co=36093;dma=532;et=0;fam=-1;gnd=2;hhi=0;hisp=0;hours=0;l=p44keukohu64c;mc=0;model=;tablet=0;st=NY;uq=R6DJR6A2QOPT2;zip=12345;sz=320x50;ord=__CACHEBUST__","videoAdUrl":"http://ad.doubleclick.net/pfadx/pand.android/prod.nowplaying;d2=6;d1=7;mdid=98104622288042483907;msa=;aa=0;ag=42;app=;clean=0;co=36093;dma=532;et=0;fam=-1;gnd=2;hhi=0;hisp=0;hours=0;index=__INDEX__;l=2572xabfk56n6;mc=0;model=;tablet=0;st=NY;uq=R6DJR6A2QOPT2;zip=12345;sz=442x188;ord=__CACHEBUST__","username":"___","canListen":true,"userId":"801769306","listeningTimeoutMinutes":"180","zeroVolumeNumMutedTracks":1,"zeroVolumeAutoPauseEnabledFlag":true,"maxStationsAllowed":100,"tileClassicIntegrationTime":60,"listeningTimeoutAlertMsgUri":"/mobile/still_listening.vm","userProfileUrl":"https://www.pandora.com/login?auth_token=","minimumAdRefreshInterval":5,"userAuthToken":"=="}}
{"stat":"ok","result":{"stations":[{"suppressVideoAds":false,"isQuickMix":true,"stationId":"1043281152234358618","stationDetailUrl":"https://www.pandora.com/login?target=%2Fstations%2Fed688f0a0fb05ef340f15a505a2354665bcf653b8f5bd8be","isShared":false,"dateCreated":{"date":21,"day":5,"hours":20,"minutes":21,"month":8,"nanos":427000000,"seconds":21,"time":1348284081427,"timezoneOffset":420,"year":112},"stationToken":"1043281152234358618","stationName":"QuickMix","stationSharingUrl":"https://www.pandora.com/login?target=%2Fshare%2Fstation%2Fed688f0a0fb05ef340f15a505a2354665bcf653b8f5bd8be","requiresCleanAds":false,"allowRename":false,"allowAddMusic":false,"quickMixStationIds":["1769272389243897690","1769271882437756762","1769268094276601690","1591295807855396698","1534636590696630106","1511753808102426458","1492645743415658330","1255632109239404378","1255622235109590874","1255450986173564762","1239680849810163546","1199449049334941530","1141385708582864730","1141372634702415706","1132546532743710554","1086899276724438874","1083086226233886554","1056469326058096474","1053515402170730330","1048914113512212314","1048912971050911578","1045758545205266266","1045333377802700634","1044727877608277850","1043281135054489434"],"allowDelete":false},{"suppressVideoAds":false,"isQuickMix":false,"stationId":"1769272389243897690","stationDetailUrl":"https://www.pandora.com/login?target=%2Fstations%2F290c5509c39b560c878955f13db1ba6f61c6e5f9ef949417","genre":[],"isShared":false,"dateCreated":{"date":25,"day":3,"hours":18,"minutes":33,"month":11,"nanos":88000000,"seconds":46,"time":1388025226088,"timezoneOffset":480,"year":113},"stationToken":"1769272389243897690","stationName":"The Beatles Radio","stationSharingUrl":"https://www.pandora.com/login?target=%2Fshare%2Fstation%2F290c5509c39b560c878955f13db1ba6f61c6e5f9ef949417","requiresCleanAds":false,"allowRename":true,"allowAddMusic":true,"allowDelete":true},{"suppressVideoAds":false,"isQuickMix":false,"stationId":"1769271882437756762","stationDetailUrl":"https://www.pandora.com/login?target=%2Fstations%2F7155ab6596b251226daf4bf0d426e98d8238ade8b079d9c9","genre":["Rock"],"isShared":false,"dateCreated":{"date":25,"day":3,"hours":18,"minutes":33,"month":11,"nanos":398000000,"seconds":32,"time":1388025212398,"timezoneOffset":480,"year":113},"stationToken":"1769271882437756762","stationName":"Paul McCartney & Wings Radio","stationSharingUrl":"https://www.pandora.com/login?target=%2Fshare%2Fstation%2F7155ab6596b251226daf4bf0d426e98d8238ade8b079d9c9","requiresCleanAds":false,"allowRename":true,"allowAddMusic":true,"allowDelete":true},{"suppressVideoAds":false,"isQuickMix":false,"stationId":"1769268094276601690","stationDetailUrl":"https://www.pandora.com/login?target=%2Fstations%2F5b7ca180e9788f370a916bba9f26c7b961c6e5f9ef949417","genre":[],"isShared":false,"dateCreated":{"date":25,"day":3,"hours":18,"minutes":31,"month":11,"nanos":308000000,"seconds":47,"time":1388025107308,"timezoneOffset":480,"year":113},"stationToken":"1769268094276601690","stationName":"Paul McCartney Radio","stationSharingUrl":"https://www.pandora.com/login?target=%2Fshare%2Fstation%2F5b7ca180e9788f370a916bba9f26c7b961c6e5f9ef949417","requiresCleanAds":false,"allowRename":true,"allowAddMusic":true,"allowDelete":true},{"suppressVideoAds":true,"isQuickMix":false,"stationId":"1591295807855396698","stationDetailUrl":"https://www.pandora.com/login?target=%2Fstations%2Fba9f5e399c88478094f4dcfac63c7d684e20334a1a321143","genre":["Classical"],"isShared":false,"dateCreated":{"date":2,"day":1,"hours":18,"minutes":33,"month":8,"nanos":266000000,"seconds":51,"time":1378172031266,"timezoneOffset":420,"year":113},"stationToken":"1591295807855396698","stationName":"Joaquin Rodrigo Radio","stationSharingUrl":"https://www.pandora.com/login?target=%2Fshare%2Fstation%2Fba9f5e399c88478094f4dcfac63c7d684e20334a1a321143","requiresCleanAds":true,"allowRename":true,"allowAddMusic":true,"allowDelete":true},{"suppressVideoAds":false,"isQuickMix":false,"stationId":"1534636590696630106","stationDetailUrl":"https://www.pandora.com/login?target=%2Fstations%2F3339286c336d105c55b558bc56c75667305754abab8a86df","genre":["Rock"],"isShared":false,"dateCreated":{"date":27,"day":6,"hours":19,"minutes":42,"month":6,"nanos":830000000,"seconds":29,"time":1374979349830,"timezoneOffset":420,"year":113},"stationToken":"1534636590696630106","stationName":"James Taylor Radio","stationSharingUrl":"https://www.pandora.com/login?target=%2Fshare%2Fstation%2F3339286c336d105c55b558bc56c75667305754abab8a86df","requiresCleanAds":false,"allowRename":true,"allowAddMusic":true,"allowDelete":true},{"suppressVideoAds":false,"isQuickMix":false,"stationId":"1511753808102426458","stationDetailUrl":"https://www.pandora.com/login?target=%2Fstations%2Fcdad648e626e96279de91093b7dbc83e94a5e807b3d77652","genre":["Rock"],"isShared":false,"dateCreated":{"date":12,"day":5,"hours":17,"minutes":35,"month":6,"nanos":121000000,"seconds":4,"time":1373675704121,"timezoneOffset":420,"year":113},"stationToken":"1511753808102426458","stationName":"Empire Of The Sun Radio","stationSharingUrl":"https://www.pandora.com/login?target=%2Fshare%2Fstation%2Fcdad648e626e96279de91093b7dbc83e94a5e807b3d77652","requiresCleanAds":false,"allowRename":true,"allowAddMusic":true,"allowDelete":true},{"suppressVideoAds":false,"isQuickMix":false,"stationId":"1492645743415658330","stationDetailUrl":"https://www.pandora.com/login?target=%2Fstations%2Fcd2b928635a1144010ee8e16a6738644e84ce25546ed532f","genre":[],"isShared":false,"dateCreated":{"date":30,"day":0,"hours":19,"minutes":57,"month":5,"nanos":999000000,"seconds":59,"time":1372647479999,"timezoneOffset":420,"year":113},"stationToken":"1492645743415658330","stationName":"2cellos Radio","stationSharingUrl":"https://www.pandora.com/login?target=%2Fshare%2Fstation%2Fcd2b928635a1144010ee8e16a6738644e84ce25546ed532f","requiresCleanAds":false,"allowRename":true,"allowAddMusic":true,"allowDelete":true},{"suppressVideoAds":false,"isQuickMix":false,"stationId":"1255632109239404378","stationDetailUrl":"https://www.pandora.com/login?target=%2Fstations%2F5a69d430ae38785c27763c3a0601f34394d5e660e90bb5df","genre":["New Age"],"isShared":false,"dateCreated":{"date":30,"day":3,"hours":18,"minutes":33,"month":0,"nanos":0,"seconds":47,"time":1359599627000,"timezoneOffset":480,"year":113},"stationToken":"1255632109239404378","stationName":"Enya Radio","stationSharingUrl":"https://www.pandora.com/login?target=%2Fshare%2Fstation%2F5a69d430ae38785c27763c3a0601f34394d5e660e90bb5df","requiresCleanAds":false,"allowRename":true,"allowAddMusic":true,"allowDelete":true},{"suppressVideoAds":false,"isQuickMix":false,"stationId":"1255622235109590874","stationDetailUrl":"https://www.pandora.com/login?target=%2Fstations%2Fbda31d5d4fec919de23d16e50b7d27babfca71b748be31de","genre":["New Age"],"isShared":false,"dateCreated":{"date":30,"day":3,"hours":18,"minutes":28,"month":0,"nanos":485000000,"seconds":6,"time":1359599286485,"timezoneOffset":480,"year":113},"stationToken":"1255622235109590874","stationName":"Vangelis Radio","stationSharingUrl":"https://www.pandora.com/login?target=%2Fshare%2Fstation%2Fbda31d5d4fec919de23d16e50b7d27babfca71b748be31de","requiresCleanAds":false,"allowRename":true,"allowAddMusic":true,"allowDelete":true},{"suppressVideoAds":false,"isQuickMix":false,"stationId":"1255450986173564762","stationDetailUrl":"https://www.pandora.com/login?target=%2Fstations%2Fc539aee0cdf565936549cfb8684321e18238ade8b079d9c9","genre":["Rock"],"isShared":false,"dateCreated":{"date":30,"day":3,"hours":16,"minutes":50,"month":0,"nanos":445000000,"seconds":53,"time":1359593453445,"timezoneOffset":480,"year":113},"stationToken":"1255450986173564762","stationName":"Electric Light Orchestra Radio","stationSharingUrl":"https://www.pandora.com/login?target=%2Fshare%2Fstation%2Fc539aee0cdf565936549cfb8684321e18238ade8b079d9c9","requiresCleanAds":false,"allowRename":true,"allowAddMusic":true,"allowDelete":true},{"suppressVideoAds":false,"isQuickMix":false,"stationId":"1239680849810163546","stationDetailUrl":"https://www.pandora.com/login?target=%2Fstations%2F06f61c77d5081ea61a8d704093c8684b19e585996243c3d7","genre":["Dance / Electronica","Rock"],"isShared":false,"dateCreated":{"date":20,"day":0,"hours":20,"minutes":2,"month":0,"nanos":451000000,"seconds":6,"time":1358740926451,"timezoneOffset":480,"year":113},"stationToken":"1239680849810163546","stationName":"Radiohead Radio","stationSharingUrl":"https://www.pandora.com/login?target=%2Fshare%2Fstation%2F06f61c77d5081ea61a8d704093c8684b19e585996243c3d7","requiresCleanAds":false,"allowRename":true,"allowAddMusic":true,"allowDelete":true},{"suppressVideoAds":false,"isQuickMix":false,"stationId":"1199449049334941530","stationDetailUrl":"https://www.pandora.com/login?target=%2Fstations%2Fa46d807feab7915951cd8b3303faa29dd47ee96856c8b5d7","genre":["Rock","New Age"],"isShared":false,"dateCreated":{"date":27,"day":4,"hours":17,"minutes":46,"month":11,"nanos":534000000,"seconds":31,"time":1356659191534,"timezoneOffset":480,"year":112},"stationToken":"1199449049334941530","stationName":"Rick Wakeman Radio","stationSharingUrl":"https://www.pandora.com/login?target=%2Fshare%2Fstation%2Fa46d807feab7915951cd8b3303faa29dd47ee96856c8b5d7","requiresCleanAds":false,"allowRename":true,"allowAddMusic":true,"allowDelete":true},{"suppressVideoAds":false,"isQuickMix":false,"stationId":"1141385708582864730","stationDetailUrl":"https://www.pandora.com/login?target=%2Fstations%2Fecb8a9169f0e9974d1ed82ab834a3ba92496b5410e22b885","genre":[],"isShared":false,"dateCreated":{"date":25,"day":0,"hours":12,"minutes":53,"month":10,"nanos":773000000,"seconds":58,"time":1353876838773,"timezoneOffset":480,"year":112},"stationToken":"1141385708582864730","stationName":"Indian Classical Radio","stationSharingUrl":"https://www.pandora.com/login?target=%2Fshare%2Fstation%2Fecb8a9169f0e9974d1ed82ab834a3ba92496b5410e22b885","requiresCleanAds":false,"allowRename":true,"allowAddMusic":false,"allowDelete":true},{"suppressVideoAds":false,"isQuickMix":false,"stationId":"1141372634702415706","stationDetailUrl":"https://www.pandora.com/login?target=%2Fstations%2F7640b1bfad323c25fac10c9bfbfd91e24aa04343f44a3aa4","genre":["Dance / Electronica"],"isShared":false,"dateCreated":{"date":25,"day":0,"hours":12,"minutes":46,"month":10,"nanos":899000000,"seconds":32,"time":1353876392899,"timezoneOffset":480,"year":112},"stationToken":"1141372634702415706","stationName":"Contemporary Bollywood Radio","stationSharingUrl":"https://www.pandora.com/login?target=%2Fshare%2Fstation%2F7640b1bfad323c25fac10c9bfbfd91e24aa04343f44a3aa4","requiresCleanAds":false,"allowRename":true,"allowAddMusic":false,"allowDelete":true},{"suppressVideoAds":false,"isQuickMix":false,"stationId":"1132546532743710554","stationDetailUrl":"https://www.pandora.com/login?target=%2Fstations%2Fa46569e11edda19ac07bce5ed98c4fbd2f776fddd682ce95","genre":["Rock"],"isShared":false,"dateCreated":{"date":20,"day":2,"hours":13,"minutes":33,"month":10,"nanos":579000000,"seconds":44,"time":1353447224579,"timezoneOffset":480,"year":112},"stationToken":"1132546532743710554","stationName":"Stone Temple Pilots Radio","stationSharingUrl":"https://www.pandora.com/login?target=%2Fshare%2Fstation%2Fa46569e11edda19ac07bce5ed98c4fbd2f776fddd682ce95","requiresCleanAds":false,"allowRename":true,"allowAddMusic":true,"allowDelete":true},{"suppressVideoAds":false,"isQuickMix":false,"stationId":"1086899276724438874","stationDetailUrl":"https://www.pandora.com/login?target=%2Fstations%2Fd9fb4f2a98de1d0b35db4e97b86e0281bfca71b748be31de","genre":["Rock"],"isShared":false,"dateCreated":{"date":21,"day":0,"hours":10,"minutes":12,"month":9,"nanos":926000000,"seconds":52,"time":1350839572926,"timezoneOffset":420,"year":112},"stationToken":"1086899276724438874","stationName":"Jane's Addiction Radio","stationSharingUrl":"https://www.pandora.com/login?target=%2Fshare%2Fstation%2Fd9fb4f2a98de1d0b35db4e97b86e0281bfca71b748be31de","requiresCleanAds":false,"allowRename":true,"allowAddMusic":true,"allowDelete":true},{"suppressVideoAds":false,"isQuickMix":false,"stationId":"1083086226233886554","stationDetailUrl":"https://www.pandora.com/login?target=%2Fstations%2Fa450fd031fda07001958a4b407d1677c2f776fddd682ce95","genre":["Dance / Electronica"],"isShared":false,"dateCreated":{"date":18,"day":4,"hours":19,"minutes":39,"month":9,"nanos":178000000,"seconds":54,"time":1350614394178,"timezoneOffset":420,"year":112},"stationToken":"1083086226233886554","stationName":"Mandalay Radio","stationSharingUrl":"https://www.pandora.com/login?target=%2Fshare%2Fstation%2Fa450fd031fda07001958a4b407d1677c2f776fddd682ce95","requiresCleanAds":false,"allowRename":true,"allowAddMusic":true,"allowDelete":true},{"suppressVideoAds":false,"isQuickMix":false,"stationId":"1056469326058096474","stationDetailUrl":"https://www.pandora.com/login?target=%2Fstations%2F6482f493538d737cc33182da3169aedd086247229a0a9b02","genre":["Blues"],"isShared":false,"dateCreated":{"date":30,"day":0,"hours":17,"minutes":25,"month":8,"nanos":993000000,"seconds":45,"time":1349051145993,"timezoneOffset":420,"year":112},"stationToken":"1056469326058096474","stationName":"Eric Clapton Radio","stationSharingUrl":"https://www.pandora.com/login?target=%2Fshare%2Fstation%2F6482f493538d737cc33182da3169aedd086247229a0a9b02","requiresCleanAds":false,"allowRename":true,"allowAddMusic":true,"allowDelete":true},{"suppressVideoAds":true,"isQuickMix":false,"stationId":"1053515402170730330","stationDetailUrl":"https://www.pandora.com/login?target=%2Fstations%2Fe1dd2999164e7b901e52fdb49322a9aee84ce25546ed532f","genre":["Classical"],"isShared":false,"dateCreated":{"date":28,"day":5,"hours":19,"minutes":45,"month":8,"nanos":711000000,"seconds":37,"time":1348886737711,"timezoneOffset":420,"year":112},"stationToken":"1053515402170730330","stationName":"Claude Debussy Radio","stationSharingUrl":"https://www.pandora.com/login?target=%2Fshare%2Fstation%2Fe1dd2999164e7b901e52fdb49322a9aee84ce25546ed532f","requiresCleanAds":true,"allowRename":true,"allowAddMusic":true,"allowDelete":true},{"suppressVideoAds":false,"isQuickMix":false,"stationId":"1048914113512212314","stationDetailUrl":"https://www.pandora.com/login?target=%2Fstations%2Fd6aeb1b2dcd72872045821ecffca38c9b4e1a756c5383233","genre":[],"isShared":false,"dateCreated":{"date":25,"day":2,"hours":17,"minutes":29,"month":8,"nanos":79000000,"seconds":15,"time":1348619355079,"timezoneOffset":420,"year":112},"stationToken":"1048914113512212314","stationName":"Cream Radio","stationSharingUrl":"https://www.pandora.com/login?target=%2Fshare%2Fstation%2Fd6aeb1b2dcd72872045821ecffca38c9b4e1a756c5383233","requiresCleanAds":false,"allowRename":true,"allowAddMusic":true,"allowDelete":true},{"suppressVideoAds":false,"isQuickMix":false,"stationId":"1048912971050911578","stationDetailUrl":"https://www.pandora.com/login?target=%2Fstations%2F5888444e9390ed792d5f42f30735682c1a0ba22c95bd23ac","genre":[],"isShared":false,"dateCreated":{"date":25,"day":2,"hours":17,"minutes":28,"month":8,"nanos":767000000,"seconds":33,"time":1348619313767,"timezoneOffset":420,"year":112},"stationToken":"1048912971050911578","stationName":"Chris Rea Radio","stationSharingUrl":"https://www.pandora.com/login?target=%2Fshare%2Fstation%2F5888444e9390ed792d5f42f30735682c1a0ba22c95bd23ac","requiresCleanAds":false,"allowRename":true,"allowAddMusic":true,"allowDelete":true},{"suppressVideoAds":false,"isQuickMix":false,"stationId":"1045758545205266266","stationDetailUrl":"https://www.pandora.com/login?target=%2Fstations%2Fa9ef92395353ea43a54f39bd588b8a7cceae96ee723f0b2c","genre":["Rock"],"isShared":false,"dateCreated":{"date":23,"day":0,"hours":13,"minutes":0,"month":8,"nanos":804000000,"seconds":41,"time":1348430441804,"timezoneOffset":420,"year":112},"stationToken":"1045758545205266266","stationName":"The White Stripes Radio","stationSharingUrl":"https://www.pandora.com/login?target=%2Fshare%2Fstation%2Fa9ef92395353ea43a54f39bd588b8a7cceae96ee723f0b2c","requiresCleanAds":false,"allowRename":true,"allowAddMusic":true,"allowDelete":true},{"suppressVideoAds":false,"isQuickMix":false,"stationId":"1045333377802700634","stationDetailUrl":"https://www.pandora.com/login?target=%2Fstations%2F105d71030a64745fd438e025b2c770da8d37c94ac1025d79","genre":[],"isShared":false,"dateCreated":{"date":23,"day":0,"hours":7,"minutes":49,"month":8,"nanos":647000000,"seconds":0,"time":1348411740647,"timezoneOffset":420,"year":112},"stationToken":"1045333377802700634","stationName":"Supertramp Radio","stationSharingUrl":"https://www.pandora.com/login?target=%2Fshare%2Fstation%2F105d71030a64745fd438e025b2c770da8d37c94ac1025d79","requiresCleanAds":false,"allowRename":true,"allowAddMusic":true,"allowDelete":true},{"suppressVideoAds":false,"isQuickMix":false,"stationId":"1044727877608277850","stationDetailUrl":"https://www.pandora.com/login?target=%2Fstations%2Fcce50ffa376935893dec21aa33c1e4489bb1db353c6e2cfb","genre":["Rock"],"isShared":false,"dateCreated":{"date":22,"day":6,"hours":18,"minutes":35,"month":8,"nanos":305000000,"seconds":56,"time":1348364156305,"timezoneOffset":420,"year":112},"stationToken":"1044727877608277850","stationName":"Camel Radio","stationSharingUrl":"https://www.pandora.com/login?target=%2Fshare%2Fstation%2Fcce50ffa376935893dec21aa33c1e4489bb1db353c6e2cfb","requiresCleanAds":false,"allowRename":true,"allowAddMusic":true,"allowDelete":true},{"suppressVideoAds":false,"isQuickMix":false,"stationId":"1043281135054489434","stationDetailUrl":"https://www.pandora.com/login?target=%2Fstations%2Fed688f0a0fb05ef3b50a4b2f6d723cfe38dbc782b833853d","genre":["Rock"],"isShared":false,"dateCreated":{"date":21,"day":5,"hours":20,"minutes":21,"month":8,"nanos":111000000,"seconds":21,"time":1348284081111,"timezoneOffset":420,"year":112},"stationToken":"1043281135054489434","stationName":"Pink Floyd Radio","stationSharingUrl":"https://www.pandora.com/login?target=%2Fshare%2Fstation%2Fed688f0a0fb05ef3b50a4b2f6d723cfe38dbc782b833853d","requiresCleanAds":false,"allowRename":true,"allowAddMusic":true,"allowDelete":true}],"checksum":"45c05dd8b4c1e2f1f6714c582cdb76d6"}}
{"stat":"ok","result":{"items":[{"trackToken":"203073ff0b7cf1071a256a6825b9acddc83f3f37146408a315825563636cb84a09b5befdbb23d4e59f1af7d1336dd8ce","artistName":"Eric Clapton","albumName":"Unplugged (Live)","amazonAlbumUrl":"http://www.amazon.com/dp/B000002MFE/?tag=wwwpandoracom-20","songExplorerUrl":"http://www.pandora.com/xml/music/song/eric-clapton/unplugged-live/tears-in-heaven-unplugged-live?explicit=false","albumArtUrl":"http://cont-ch1-2.pandora.com/images/public/amz/5/2/4/2/093624502425_360W_360H.jpg","artistDetailUrl":"http://www.pandora.com/eric-clapton?dc=232&ad=1:42:2:12345::0:0:0:0:532::NY:36093:0:0:0:0:0:1","audioUrlMap":{"highQuality":{"bitrate":"64","encoding":"aacplus","audioUrl":"http://mediaserver-sv5-rt-1.pandora.com/access/4904221297684108316.mp4?version=4&lid=","protocol":"http"},"mediumQuality":{"bitrate":"64","encoding":"aacplus","audioUrl":"http://mediaserver-sv5-rt-1.pandora.com/access/3365142877696520418.mp4?version=4&lid=","protocol":"http"},"lowQuality":{"bitrate":"32","encoding":"aacplus","audioUrl":"http://mediaserver-sv5-rt-1.pandora.com/access/6035909467826721723.mp4?version=4&lid=","protocol":"http"}},"itunesSongUrl":"http://search.itunes.apple.com/WebObjects/MZSearch.woa/wa/search?term=Eric+Clapton+Tears+In+Heaven+%28Unplugged+Live%29&at=11l3Hh&ct=google_sdk","amazonAlbumAsin":"B000002MFE","amazonAlbumDigitalAsin":"B00FIYFMXS","artistExplorerUrl":"http://www.pandora.com/xml/music/artist/eric-clapton?explicit=false","songName":"Tears In Heaven (Unplugged Live)","albumDetailUrl":"http://www.pandora.com/eric-clapton/unplugged-live?dc=232&ad=1:42:2:12345::0:0:0:0:532::NY:36093:0:0:0:0:0:1","songDetailUrl":"http://www.pandora.com/eric-clapton/unplugged-live/tears-in-heaven-unplugged-live?dc=232&ad=1:42:2:12345::0:0:0:0:532::NY:36093:0:0:0:0:0:1","stationId":"1043281135054489434","songRating":0,"trackGain":"0.27","albumExplorerUrl":"http://www.pandora.com/xml/music/album/eric-clapton/unplugged-live?explicit=false","allowFeedback":true,"amazonSongDigitalAsin":"B00FIYFQ5M","nowPlayingStationAdUrl":"http://ad.doubleclick.net/pfadx/pand.android/prod.nowplaying;d2=6;d1=7;mdid=98104622288042483907;msa=;OS=;__AFTERREG__p1n=P1INDEX;aa=0;ag=42;app=;artist=R105740;clean=0;co=36093;comped=;dma=532;dse=0;et=0;exp=0;fam=-1;gcat=none;genre=electronica;gnd=2;hhi=0;hisp=0;hours=0;iat=1;index=INDEX;interaction=INTERACTION;l=jaszurvfp3nto;logon=LOGON;mc=0;model=;tablet=0;st=NY;station=;uq=R6DJR6A2QOPT2;zip=12345;sz=320x50;ord=CACHEBUST"},{"adToken":"1043281135054489434-none"},{"trackToken":"b368371b9eff63b51a256a6825b9acddc83f3f37146408a31f8e5161390c1dec09b5befdbb23d4e51f5ae6f2053fdd69c32ce9f8e0513bec","artistName":"The Marshall Tucker Band","albumName":"The Best Of The Marshall Tucker Band - The Capricorn Years","amazonAlbumUrl":"http://www.amazon.com/dp/B000000S3N/?tag=wwwpandoracom-20","songExplorerUrl":"http://www.pandora.com/xml/music/song/marshall-tucker-band/best-of-marshall-tucker-band-capricorn-years/cant-you-see?explicit=false","albumArtUrl":"http://cont-ch1-1.pandora.com/images/public/amz/5/2/7/2/022775502725_301W_300H.jpg","artistDetailUrl":"http://www.pandora.com/marshall-tucker-band?dc=232&ad=1:42:2:12345::0:0:0:0:532::NY:36093:0:0:0:0:0:1","audioUrlMap":{"highQuality":{"bitrate":"64","encoding":"aacplus","audioUrl":"http://mediaserver-sv5-rt-1.pandora.com/access/8393799002599578418.mp4?version=4&lid=","protocol":"http"},"mediumQuality":{"bitrate":"64","encoding":"aacplus","audioUrl":"http://mediaserver-sv5-rt-1.pandora.com/access/22273308272891892.mp4?version=4&lid=","protocol":"http"},"lowQuality":{"bitrate":"32","encoding":"aacplus","audioUrl":"http://mediaserver-sv5-rt-1.pandora.com/access/8322531688108134987.mp4?version=4&lid=","protocol":"http"}},"itunesSongUrl":"http://itunes.apple.com/album/cant-you-see/id158948491?i=158948898&uo=5&at=11l3Hh&ct=google_sdk","amazonAlbumAsin":"B000000S3N","artistExplorerUrl":"http://www.pandora.com/xml/music/artist/marshall-tucker-band?explicit=false","songName":"Can't You See","albumDetailUrl":"http://www.pandora.com/marshall-tucker-band/best-of-marshall-tucker-band-capricorn-years?dc=232&ad=1:42:2:12345::0:0:0:0:532::NY:36093:0:0:0:0:0:1","songDetailUrl":"http://www.pandora.com/marshall-tucker-band/best-of-marshall-tucker-band-capricorn-years/cant-you-see?dc=232&ad=1:42:2:12345::0:0:0:0:532::NY:36093:0:0:0:0:0:1","stationId":"1043281135054489434","songRating":0,"trackGain":"-3.35","albumExplorerUrl":"http://www.pandora.com/xml/music/album/marshall-tucker-band/best-of-marshall-tucker-band-capricorn-years?explicit=false","allowFeedback":true,"amazonSongDigitalAsin":"B001O3UCHI","nowPlayingStationAdUrl":"http://ad.doubleclick.net/pfadx/pand.android/prod.nowplaying;d2=6;d1=7;mdid=98104622288042483907;msa=;OS=;__AFTERREG__p1n=P1INDEX;aa=0;ag=42;app=;artist=R105740;clean=0;co=36093;comped=;dma=532;dse=0;et=0;exp=0;fam=-1;gcat=none;genre=electronica;gnd=2;hhi=0;hisp=0;hours=0;iat=1;index=INDEX;interaction=INTERACTION;l=gino4i6z4oi7i;logon=LOGON;mc=0;model=;tablet=0;st=NY;station=;uq=R6DJR6A2QOPT2;zip=12345;sz=320x50;ord=CACHEBUST"},{"trackToken":"e4bb5b601b47abb233c7872af1fc14814cfc016431f3b9b4ea6b3ca03b3aeddf7374c8ec269c9b2d9348335c7002db0440d2a90d0d8357d59590e63230470ae5","artistName":"Lynyrd Skynyrd","albumName":"Pronounced Leh-nerd Skin-nerd","amazonAlbumUrl":"http://www.amazon.com/dp/B00005RIKI/?tag=wwwpandoracom-20","songExplorerUrl":"http://www.pandora.com/xml/music/song/lynyrd-skynyrd/pronounced-leh-nerd-skin-nerd/simple-man?explicit=false","albumArtUrl":"http://cont-sv5-2.pandora.com/images/public/amz/2/2/7/2/008811272722_500W_500H.jpg","artistDetailUrl":"http://www.pandora.com/lynyrd-skynyrd?dc=232&ad=1:42:2:12345::0:0:0:0:532::NY:36093:0:0:0:0:0:1","audioUrlMap":{"highQuality":{"bitrate":"64","encoding":"aacplus","audioUrl":"http://mediaserver-sv5-rt-1.pandora.com/access/8596990595449887311.mp4?version=4&lid=","protocol":"http"},"mediumQuality":{"bitrate":"64","encoding":"aacplus","audioUrl":"http://mediaserver-sv5-rt-1.pandora.com/access/2247197158782017082.mp4?version=4&lid=","protocol":"http"},"lowQuality":{"bitrate":"32","encoding":"aacplus","audioUrl":"http://mediaserver-sv5-rt-1.pandora.com/access/6649829024195725663.mp4?version=4&lid=","protocol":"http"}},"itunesSongUrl":"http://itunes.apple.com/album/simple-man/id2581299?i=2581179&uo=5&at=11l3Hh&ct=google_sdk","amazonAlbumAsin":"B00005RIKI","amazonAlbumDigitalAsin":"B000V6AD46","artistExplorerUrl":"http://www.pandora.com/xml/music/artist/lynyrd-skynyrd?explicit=false","songName":"Simple Man","albumDetailUrl":"http://www.pandora.com/lynyrd-skynyrd/pronounced-leh-nerd-skin-nerd?dc=232&ad=1:42:2:12345::0:0:0:0:532::NY:36093:0:0:0:0:0:1","songDetailUrl":"http://www.pandora.com/lynyrd-skynyrd/pronounced-leh-nerd-skin-nerd/simple-man?dc=232&ad=1:42:2:12345::0:0:0:0:532::NY:36093:0:0:0:0:0:1","stationId":"1043281135054489434","songRating":0,"trackGain":"-3.41","albumExplorerUrl":"http://www.pandora.com/xml/music/album/lynyrd-skynyrd/pronounced-leh-nerd-skin-nerd?explicit=false","allowFeedback":true,"amazonSongDigitalAsin":"B000V68LJ0","nowPlayingStationAdUrl":"http://ad.doubleclick.net/pfadx/pand.android/prod.nowplaying;d2=6;d1=7;mdid=98104622288042483907;msa=;OS=;__AFTERREG__p1n=P1INDEX;aa=0;ag=42;app=;artist=R105740;clean=0;co=36093;comped=;dma=532;dse=0;et=0;exp=0;fam=-1;gcat=none;genre=electronica;gnd=2;hhi=0;hisp=0;hours=0;iat=1;index=INDEX;interaction=INTERACTION;l=mnq2x53rrbwvw;logon=LOGON;mc=0;model=;tablet=0;st=NY;station=;uq=R6DJR6A2QOPT2;zip=12345;sz=320x50;ord=CACHEBUST"},{"adToken":"1043281135054489434-none"},{"trackToken":"d0586cdf2e99b4751a256a6825b9acddc83f3f37146408a3109923aee0384a291d75f621b21deb96602f3bd47a74b7543f5cde40fd2988d6","artistName":"Cream","albumName":"Disraeli Gears","amazonAlbumUrl":"http://www.amazon.com/dp/B0000067L2/?tag=wwwpandoracom-20","songExplorerUrl":"http://www.pandora.com/xml/music/song/cream/disraeli-gears/sunshine-of-your-love?explicit=false","albumArtUrl":"http://cont-sv5-1.pandora.com/images/public/amz/0/2/1/1/731453181120_500W_500H.jpg","artistDetailUrl":"http://www.pandora.com/cream?dc=232&ad=1:42:2:12345::0:0:0:0:532::NY:36093:0:0:0:0:0:1","audioUrlMap":{"highQuality":{"bitrate":"64","encoding":"aacplus","audioUrl":"http://mediaserver-sv5-rt-1.pandora.com/access/3657875244433319267.mp4?version=4&lid=","protocol":"http"},"mediumQuality":{"bitrate":"64","encoding":"aacplus","audioUrl":"http://mediaserver-sv5-rt-1.pandora.com/access/4917809039798109946.mp4?version=4&lid=","protocol":"http"},"lowQuality":{"bitrate":"32","encoding":"aacplus","audioUrl":"http://mediaserver-sv5-rt-1.pandora.com/access/1260569537723092374.mp4?version=4&lid=","protocol":"http"}},"itunesSongUrl":"http://itunes.apple.com/album/sunshine-of-your-love/id6255287?i=6255277&uo=5&at=11l3Hh&ct=google_sdk","amazonAlbumAsin":"B0000067L2","amazonAlbumDigitalAsin":"B001NCKPV8","artistExplorerUrl":"http://www.pandora.com/xml/music/artist/cream?explicit=false","songName":"Sunshine Of Your Love","albumDetailUrl":"http://www.pandora.com/cream/disraeli-gears?dc=232&ad=1:42:2:12345::0:0:0:0:532::NY:36093:0:0:0:0:0:1","songDetailUrl":"http://www.pandora.com/cream/disraeli-gears/sunshine-of-your-love?dc=232&ad=1:42:2:12345::0:0:0:0:532::NY:36093:0:0:0:0:0:1","stationId":"1043281135054489434","songRating":0,"trackGain":"0.08","albumExplorerUrl":"http://www.pandora.com/xml/music/album/cream/disraeli-gears?explicit=false","allowFeedback":true,"amazonSongDigitalAsin":"B001NCHBKQ","nowPlayingStationAdUrl":"http://ad.doubleclick.net/pfadx/pand.android/prod.nowplaying;d2=6;d1=7;mdid=98104622288042483907;msa=;OS=;__AFTERREG__p1n=P1INDEX;aa=0;ag=42;app=;artist=R105740;clean=0;co=36093;comped=;dma=532;dse=0;et=0;exp=0;fam=-1;gcat=none;genre=electronica;gnd=2;hhi=0;hisp=0;hours=0;iat=1;index=INDEX;interaction=INTERACTION;l=r6skfei5hqe44;logon=LOGON;mc=0;model=;tablet=0;st=NY;station=;uq=R6DJR6A2QOPT2;zip=12345;sz=320x50;ord=CACHEBUST"}]}}

@PromyLOPh
Copy link
Owner

Thanks for the debug output. As I expected there’s no flag identifying
the track as advertising. I guess the track is dynamically replaced by
an ad, based on geo-location and whether the client fetched ads
previously.

Here’s a patch that calls ad.getAdMetadata:
https://gist.github.com/8220159 Does it return anything for those of
you, who receive ads? For me the response is empty:
{"stat":"ok","result":{}}

@caravone
Copy link

caravone commented Jan 3, 2014

I tried your patch. Everything song printed {"stat":"ok","result":{}}, even one that played an ad instead of a real song.

But one interesting thing I noticed was that the playing time of the ad/fake song showed the actual 30 seconds, much shorter than the actual playing time of a real song. Maybe that's a way to tell when an ad is playing?

@PromyLOPh
Copy link
Owner

Maybe that's a way to tell when an ad is playing?
Sure, you could do that. But it’s a dirty hack that’ll flag songs
regardless of the actual content (assuming there are “real” songs, like
prelude/interlude/…, with that length too).

My guess it that the ads “go away” if we’d implement whatever the mobile
client is doing to fetch ads. (See adToken in the playlist response.)
Is there anyone who got a disassembled/decompiled version of the current
official Android client?

@mdc4115
Copy link

mdc4115 commented Jan 6, 2014

I have sent you an email regarding the source.

@ghost
Copy link

ghost commented Jan 7, 2014

I too am starting to hear ads when using pianobar. I am fairly certain this is a change on the part of Pandora, as I am starting to see this issue in other pandora clients as well, specifically Hermes for OSX.

As mentioned earlier, I used $ to capture the debug information from pianobar. The results are as follows:

album:0:Disraeli Gears
artist: Cream
audioFormat:    1
audioUrl:       http://mediaserver-sv5-rt-1.pandora.com/access/1141152615591629351.mp4?version=4&lid=1219396138&token=7c7qm95UzEg5kn7JfDGGnVwocvuWKcjY978%2BZdYzGXIBemzzxS8YlWVvzKUbkQeUj%2BHlwn60YageinBdgJh9p48OQFoIBmj81osTmO0KoEZF3ZM5IcZA%2B7mpLPa9xgdnm%2Br%2Bp6iQ1r8%2BbZBJ2D4cIdEB0GTs6lv2hTCRJvSIf3VLjy0YikVSn4l8oPYS3H5iGqHc%2ByxzijLsvan%2FuXFaAH2Li8Bly39kqWcoTd49KYdxDHCaPvDgI0KmvihDjTQjq1cDjYqNWvnl36C0cn1q0s0o2IO7UtZVbv5yNXYTLfV%2Bs0ngbhuft3OQrgP4HLUd3%2Bmg04YsLcvKDeN39mbY6Jzc1nq8HUqwAxPuFQColonlmIB765qlOEds9K9nlk1NjS8wiEIE03g7O8vnXC463cZcz4V4nqfnnEsn6pCTG8HZpbA9AE7RY8G%2FwSBTfTAi%2B77JzUPvsl3%2FL%2F0LFF8EOklloaYbcYWdR07A6XPLatx94o66u%2FDGgf4gzBjsnAVqG1me9hWTvm1yf6khwyLDybLNMxrrGJayFefc3sTTSo8bxFzEFVmohzoNqIyVz4%2Fxhs%2FFnNHOVLW07ep79Sx3eA%3D%3D
coverArt:       http://cont-sjl-1.pandora.com/images/public/amz/0/2/1/1/731453181120_500W_500H.jpg
detailUrl:      http://www.pandora.com/cream/disraeli-gears/sunshine-of-your-love?dc=232&ad=1:19:1:97225::0:0:0:0:820:051:OR:41067:2:0:0:0:0:1
fileGain:       0.080000
musicId:        (null)
rating: 0
stationId:      1671779363641524778
title:  Sunshine Of Your Love
trackToken:     d0586cdf2e99b4750225059ecff7ba2fca6621aee0bf67cc77d9ab34909505ef2cfff77e162359d7f48dd657f85f97455de86ef2dba5ac81

As was also mentioned above, each ad I hear, while labeled as a normal song, has a duration of 30 seconds or less.

@rye
Copy link

rye commented Jan 7, 2014

Does anyone know if there are any ads on Pandora itself that are longer than 30 seconds?

@brianpipa
Copy link

data point - I hear them now using pithos... discussion here: pithos/pithos#39

@PromyLOPh
Copy link
Owner

I had a look at the decompiled source code of the mobile client. As far
as I understand it ads work like this: If the playlist contains a track
without trackToken (usually its a track without any useful data and just
an adToken, which pianobar currently ignores) ad.getAdMetadata is
called. This returns various data, including an audioUrlMap with stream
URL’s for the ad. Starting an ad track results in another API call to
ad.registerAd.

Obviously pianobar does not fetch these special ad tracks, nor does it
register them, so Pandora knows who uses pianobar and can serve them ads
by replacing regular tracks instead. The remaining question is: Who is
served audio ads and why? (As I said earlier I don’t get any audio
ads, so it’s unlikely that adding flags to API calls here and there is
going to make the them disappear.)

So here are a few questions for you. I’m hoping for a pattern in your
answers ;)

  • Is pianobar playing audio ads? How often (every n tracks)?
  • Are you subscribed to Pandora One?
  • Are you residing in the US or using a (control) proxy to access
    Pandora?
  • How many hours a month do you listen to Pandora (estimate, “heavy user”
    or not)?

@Matthew9170
Copy link
Author

If the ads are anything like what I am getting for other people it is almost random, some days I would get them every 15-20 minutes and others I would almost never get them, today in around 11 songs I only got 1 ad, and they are some long songs as well. As for Pandora One - nope, residing in the US with no proxy enabled, and I would say Heavy user - for hours on end every day.

Can we get a quick dirty patch that always shows total song length next to the song title even after the song is over?

@caravone
Copy link

I have an account that I created about a month ago that started playing ads
about the same time the original issue was reported. That account plays
straight all day 6-8 hours three days a week. Each day we'll get 5 or 6
ads, maybe. I wrote a hacky script to skip ads (< 1 minutes duration), and
now we get periods where there are 4 or 5 ads in a row (that is, when the
script keeps skipping them). This account has just one station where I
haven't added any seeds or +/- any songs.

On the other hand, I have another account that I have had for years, with 5
or 6 stations, where I have added lots of feedback to tailor the songs
played. I listen to that one from time to time, a few hours at a time, and
I have never heard an ad there.

Neither account has Pandora One, US with no proxy.

On Sat, Jan 11, 2014 at 10:16 AM, PromyLOPh [email protected]:

I had a look at the decompiled source code of the mobile client. As far
as I understand it ads work like this: If the playlist contains a track
without trackToken (usually its a track without any useful data and just
an adToken, which pianobar currently ignores) ad.getAdMetadata is
called. This returns various data, including an audioUrlMap with stream
URL’s for the ad. Starting an ad track results in another API call to
ad.registerAd.

Obviously pianobar does not fetch these special ad tracks, nor does it
register them, so Pandora knows who uses pianobar and can serve them ads
by replacing regular tracks instead. The remaining question is: Who is
served audio ads and why? (As I said earlier I don’t get any audio
ads, so it’s unlikely that adding flags to API calls here and there is
going to make the them disappear.)

So here are a few questions for you. I’m hoping for a pattern in your
answers ;)

  • Is pianobar playing audio ads? How often (every n tracks)?
  • Are you subscribed to Pandora One?
  • Are you residing in the US or using a (control) proxy to access
    Pandora?
  • How many hours a month do you listen to Pandora (estimate, “heavy user”
    or not)?


Reply to this email directly or view it on GitHubhttps://github.com//issues/415#issuecomment-32101407
.

@master131
Copy link

I started using Pianobar yesterday and listened for many hours without a single ad (I haven't used Pandora in almost a year). I was shocked this morning to start it up and find that songs were replaced with US audio ads (I live in Australia). Sometimes there would be 3 ads in a row even. Anyway, it seems to happen every couple of tracks, I haven't been keeping track of an exact number. I'm not subscribed to Pandora One and I'm not using a proxy.

I'm not sure why we're being targetted but maybe excessive skipping is a possible cause? Has anyone else here been skipping more songs than they normally would be able to?

EDIT - Just listened to 1 song through Pianobar and then got 10 ads in a row (after continuously skipping them). On the web client, it works normally with no audio ads for me (I have Adblock Plus enabled).

@PromyLOPh
Copy link
Owner

As I expected there seems to be a high correlation between heavy usage –
about 6 hours a day? – and ad injection.

Can we get a quick dirty patch that always shows total song length
next to the song title even after the song is over?
The (real) song duration is unknown at that point.

On the web client, it works normally with no audio ads for me (I have
Adblock Plus enabled).
The web client uses a different API.

@brianpipa
Copy link

My data: long time Pandora user. never been subscribed to Pandora One. US, no proxy. I get ads in pithos (which, from what I understand, uses pianobar) every now and then and just like other Pandora clients, they are more frequent if I interact with the app (especially skipping a song). I use Pithos/Pandora ~5-6 hours every weekday.

@schelcj
Copy link

schelcj commented Jan 13, 2014

Is pianobar playing audio ads? How often (every n tracks)?

  • Thus far I have heard no ads

Are you subscribed to Pandora One?

  • Not currently but have been in the past, several years ago.

Are you residing in the US or using a (control) proxy to access Pandora?

  • In the US
  • No proxies.

How many hours a month do you listen to Pandora (estimate, “heavy user” or not)?

  • Definitely "heavy user" but no idea total hours played a month, stats might be a nice feature :)
  • Don't know that it matters but my pandora account goes back to like 2006/7.
  • I run on three different systems, all various versions of ubuntu, no less than 13.04
  • I tend to use quickmix a lot
  • I generally do not skip songs all that much

@PromyLOPh
Copy link
Owner

  • Not currently but have been in the past, several years ago.
    Interesting point. I had a gifted subscription some time ago too.

@codyps
Copy link
Contributor

codyps commented Jan 15, 2014

Is pianobar playing audio ads? How often (every n tracks)?

  • Thus far I have heard no ads

Are you subscribed to Pandora One?

  • No, and I have never been

Are you residing in the US or using a (control) proxy to access Pandora?

  • In the US
  • No proxies.

How many hours a month do you listen to Pandora (estimate, “heavy user” or not)?

  • Definitely "heavy user" but no idea total hours played a month

Extra Info

  • I run on several different systems (ubuntu 12.04, gentoo), occasionally simultaneously.
  • I tend to run the same channel the majority of the time
  • I generally do not skip songs all that much
  • My account is relatively old (earliest record I can find is from 2005)

@codyps
Copy link
Contributor

codyps commented Jan 15, 2014

Also, it might be relevant that I have used the official android client at times.

@PromyLOPh
Copy link
Owner

I modified the patch posted earlier slightly to match the mobile
client’s behavior more closely (see link below). Still no ads for me:

(i) Fetching ads with token 1811622870787436013-pod:1/1/2...
ad.getAdMetadata returned:
{"stat":"ok","result":{"adTrackingTokens":[]}}

Is there anyone who actually gets any meaningful data with the patch
applied?

(Explanation: With this patch pianobar recognizes ad tracks and tries to
fetch ad data with ad.getAdMetadata. The response is permitted to be
empty, but that does not get me any further of course, as we’ll have to
register the ad with the returned tracking tokens before it makes a
difference. Yes, pianobar behaves strange/crashes if you try to interact
with the ad tracks. Don’t do that just yet.)

https://gist.github.com/8505697

@PromyLOPh
Copy link
Owner

Sorry, wrong patch. Use this one instead: https://gist.github.com/8506110

@Matthew9170
Copy link
Author

I was just using the android app and Pandora did the exact same thing that
pianobar did. It could be a coincidence but if it isn't that means we might
be in for a fix from Pandora themselves.
On Jan 19, 2014 10:09 AM, "PromyLOPh" [email protected] wrote:

Sorry, wrong patch. Use this one instead: https://gist.github.com/8506110


Reply to this email directly or view it on GitHubhttps://github.com//issues/415#issuecomment-32710327
.

@PromyLOPh
Copy link
Owner

Have you tried contacting Pandora’s support yet?

@Matthew9170
Copy link
Author

Yea I just sent sent them an email, now waiting on a reply back.

@calebdw
Copy link

calebdw commented Oct 27, 2014

but to avoid ads you CAN'T use an account that you've already used with the actual pandora server.

The only way to create an account is through the actual pandora server, and when you create an account you create a station and therefore you've just used that newly created account with the actual pandora server.
Your reasoning is flawed. The only reason why you are not hearing ads is because your newly created accout has not been flagged yet.

@tenkarasu
Copy link

On 10/26/14, 11:01 PM, CalebW wrote:

but to avoid ads you CAN'T use an account that you've already used
with the actual pandora server.
But the only way to create an account is through the actual
pandora server, and when you create an account you create a
station and therefore you've just used that newly created account
with the actual pandora server.
Your reasoning is flawed. The only reason why you are not hearing
ads is because your newly created accout has not been flagged yet.


Reply to this email directly or view it on GitHub
#415 (comment).

I'm going to agree with CalebW on this one.

However, just an update: I've been running AdBlock on Chrome for a while
now and have not yet run into any ads (thank the gods, I cannot stand
any political bull from Chicago or Springfield) but I don't know if it's
because you don't want to run Chrome or prefer to use pianobar on terminal.

Royce Hamel
(224) 616-2698
[email protected]

@wolfanite
Copy link

The only way to create an account is through the actual pandora server, and when you create an account you create a station and therefore you've just used that newly created account with the actual pandora server.
Your reasoning is flawed. The only reason why you are not hearing ads is because your newly created accout has not been flagged yet.

Well that's the problem. Once you make the new account, you don't make a station on the actual pandora site. You close out pandora and open up pianobar, and create a new station there. It's worked for me ever since I did that, though? But it could be different for other people..

However, just an update: I've been running AdBlock on Chrome for a while now and have not yet run into any ads (thank the gods, I cannot stand any political bull from Chicago or Springfield) but I don't know if it's because you don't want to run Chrome or prefer to use pianobar on terminal.

I don't typically use chrome anyways, because it always runs my computer really slow, so i mostly use mozzila. But pianobar I mostly use when I'm at school, because my phone typically has really crappy music heh. But I guess that is one way to solve the problem? I think there is also a plugin for mozzila called Adblock or something. I cant remember, because i had it on my old laptop.. eh.

@tenkarasu
Copy link

On 11/29/14, 10:07 AM, wolfanite wrote:

The only way to create an account is through the actual pandora
server, and when you create an account you create a station and
therefore you've just used that newly created account with the
actual pandora server.
Your reasoning is flawed. The only reason why you are not hearing
ads is because your newly created accout has not been flagged yet.

Well that's the problem. Once you make the new account, you don't make
a station on the actual pandora site. You close out pandora and open
up pianobar, and create a new station there. It's worked for me ever
since I did that, though? But it could be different for other people..

However, just an update: I've been running AdBlock on Chrome for a
while now and have not yet run into any ads (thank the gods, I
cannot stand any political bull from Chicago or Springfield) but I
don't know if it's because you don't want to run Chrome or prefer
to use pianobar on terminal.

I don't typically use chrome anyways, because it always runs my
computer really slow, so i mostly use mozzila. But pianobar I mostly
use when I'm at school, because my phone typically has really crappy
music heh. But I guess that is one way to solve the problem? I think
there is also a plugin for mozzila called Adblock or something. I cant
remember, because i had it on my old laptop.. eh.


Reply to this email directly or view it on GitHub
#415 (comment).

Can't you run AdBlock or an ad blocker on Firefox and Opera anyways?
(And I'm just happy we're past the nonsense that was November's Voting
Season.) Don't get me wrong. I absolutely adored pianobar, and was going
to get a script to download all the songs from Pandora, but because of
the ads I was just fed up with it. Chrome runs fine on my computer,
wonder why it's not on yours.

Royce Hamel
(224) 616-2698
[email protected]

@josefson
Copy link

josefson commented Dec 1, 2014

Since i started using the (2014.09.28) release i don't have any ads anymore. Today i use pianobar proxied over proxychains, which tunnels it through an EC2 instance i have. I have been listening pandora over 4-6 hours for weeks now with no ads.

@StevenHickson
Copy link

I also just started getting the random ads mislabeled as songs on multiple machines. This is odd because I haven't had any of these for the past 2+ years while using pianobar

@PromyLOPh
Copy link
Owner

Did you change anything (listening habits, setup, …) in the past days?

@StevenHickson
Copy link

Nope, I made a new station and It just arbitrarily played ads for a day. Then it seemed to stop. Or at least I haven't noticed it since then.

@daurnimator
Copy link

I often get ads when switch stations:
$ output:

(i) Receiving new playlist... Ok.
|>  "Tightrope" by "Yeasayer" on "Dark Was The Night"
album:0:Dark Was The Night
artist: Yeasayer
audioFormat:    1
audioUrl:   http://mediaserver-sv5-rt-1.pandora.com/access/5050742416979219519.mp4?version=4&lid=927767085&token=i3tpY99045Gx0Y29XmXblmkq28oPHKOuohnyMCQBakPFVv3cqvYbPOs1POTH2dmNZaPc4zGPLPpPvf6BtAqNS0sGZpiliB7gVmo%2BYfGXH6y69%2Ff5N4E%2BvzQsZu43c0wNHNXGpz3kEaA%2FLhL78vdRmNTr8ybRneJryt7jmvv658dohsrfTLCq4iXRTuASlLHyhVa8cK0%2BrcNoOhjtwEauoX9UK7je7Sdp2VRtJpE0KCMoAOBuEjoqGlwnWsMGmubZ%2BFO0K0xsViWzeqU4udGMVG2r5%2FuxMeRUXIBVbLGs0nLBQcHA0jMBUFwZKP7q9tC7sirYVN21PGHGOZe9WqR8kdJbh6oFkmsv0WVPlhPiecSlFN%2B8BjYAknte5zdpXCc%2FtE6aYKDObC6M8QH%2F2DfR25iN6fHTZg%2BrLFXRqGLmBmlr2d4eJ%2BpQhHizKoYVmtsUIW%2B%2Fxl1iF0u88L7ElwFHpHiDO6svHDsJLqYsuLYxmQKb%2FqE4ctyJOXR0R6FE7hsrRRbNs6pGNN1A1UEBW%2Bw%2Bu00O2U1JFZ2z5QvSGHVI0xbJZ0La3vbvcrUemMsU6jLxEOAiDKlLDb43ijKDNPz8lg7L6G3q24VEi6UKekDWtFbZxXVl4ieKxg%3D%3D
coverArt:   http://cont-dc6-1.pandora.com/images/public/amz/5/2/5/3/652637283525_500W_500H.jpg
detailUrl:  http://www.pandora.com/yeasayer/dark-was-night/tightrope?dc=232&ad=1:24:1:3031::0:0:0:0:::::0:0:0:0:0:1
fileGain:   -4.360000
musicId:    (null)
rating: 0
stationId:  1199747438018861613
title:  Tightrope
trackToken: 1ef0fd6c5302844851fa268ab3bd69edd69bd4015cb9c7614e936d18a7f3a82797dc824e9700f6ac7ae894faa13bdbb9633cf9c21cd5c172

The song did not play (it was just an ad instead). But it's a song that I hear on the rotation.

@kalbasit
Copy link

It started happening to me today as well.

(i) Receiving new playlist... Ok.
|>  "Living Dead Girl" by "Rob Zombie" on "Past, Present & Future (Explicit)"
|>  "Man In The Box" by "Alice In Chains" on "Facelift"
|>  "Rock N Roll Train" by "AC/DC" on "Black Ice"
album:0:Black Ice
artist: AC/DC
audioFormat:    1
audioUrl:       http://mediaserver-sv5-rt-1.pandora.com/access/5055688188486207757.mp4?version=4&lid=1545234315&token=QY3RSNuHNRH68zQEatwDBX4sxy1V%2BHn0lMG1fjGuZFpz%2F3vXbLG1YymFQIP8UZ8aNHq2JbVxFbfXcbO97v52hRoQwIeWnFSmLwxSyUG%2F5UO3gylWaJqyCq9GetXmaZ9T6bnITQI3%2FgZIBEcsHAMA0rb24Sk16ZhwqpD2cYgnoUv3YU2MXbu8vakUhil2%2BR41E8GasDIkg1BaRSItAe4arnmvIIiNJj2%2BxY3iwAcGqTn7tslw3pS9tnM1Kg%2FFcCMWNSQACM0LWSUXxxMOxPnIavUp6L8kVoHzqhKfBuj3P2gIIbTRMe6KGtBaoUQ1X8GLSUmgeUnvS7HtBKBcb7x2RQQLjLLiVIt7vvWDphUqga3Bsw7YXzIEGdtkRs8sxfkRcZBwaZsRtB6pcOAQu8UGIjQ5ECFAmPTaL%2FzRjJpz8I8w2%2FrNIHVvJbxTqik5iMQtDoA25zNibKQTqwsC46OefYK3fyWl%2BNmMmxCKOcJEyvQ%2FVmONAN%2B6PtZS7FPNvAcgpdBzlcekRIid%2BYyszkAaK3SOwv%2FDLuTFtvRozG08uD24qUwe3ESEOade9NIqsB1gS3xJqw0Dh%2F54L%2Fq9BKGU%2BYIjL1R7%2B4Ci2X0DHdWYXNU%3D
coverArt:       http://cont-ch1-1.pandora.com/images/public/amz/9/2/9/2/886973382929_500W_435H.jpg
detailUrl:      http://www.pandora.com/ac-dc/black-ice/rock-n-roll-train?dc=232&ad=1:30:1:95123::0:0:0:0:807:215,009:CA:06085:2:0:0:0:0:1
fileGain:       -9.030000
musicId:        (null)
rating: 0
stationId:      2343409547803781003
title:  Rock N Roll Train
trackToken:     fdbe5dd421c1e7df3b7f79fb04a5270e982186edc905afa39492a8704bbe2433ac73bd210956e889cec63986a5a0f7973d8afaf1a4892be81933118eded63d25

@patrickdavey
Copy link

Yip started happening here too. Just wondering, most ads are somewhere between 10-15 seconds and a minute. How easy would it be to just mute pianobar during "songs" which are less than a minute long?

Hacky, but wouldn't get you banned ;)

@daurnimator
Copy link

I just got 20 ads in a row. I used to be able to skip 10 and it would start working again; but that doesn't seem to work any more.

@PromyLOPh
Copy link
Owner

How easy would it be to just mute pianobar during "songs" which are less than
a minute long?
I guess adding a check at the end of openStream in src/player.c would be rather easy.

@kalbasit
Copy link

or maybe skip the song rather than mute?

@patrickdavey
Copy link

My suggestion for muting was so that you wouldn't get banned..

@kalbasit
Copy link

Oh got it. Sure that works.

@PromyLOPh
Copy link
Owner

Please note that adding this features is not just a technical decision,
but also sending a political signal to Pandora. That’s why I’m
hesitating right now.

@baskervald
Copy link

It's worth noting that, without having skipped any songs whatsoever (as has become practice for me, since I don't want it to start playing ads, especially since that causes my scrobbler script to scrobble songs I haven't listened to) ads started playing in place of the songs in one of my channels.

Either something was odd on my end that gave away that I wasn't listening to ads, which I'm not sure what that would've been, or their detection has become more robust.

@PromyLOPh
Copy link
Owner

especially since that causes my scrobbler script to scrobble songs
I haven't listened to
The branch “ads” is still there, waiting for someone to confirm that it
fixes this issue… And yes, it is supposed to play ads.

@GrantMoyer
Copy link

I rebased the ads branch on master. I ran pianobar for about 4.5 h (40 songs including 1 skip) and didn't get any ads, either disguised as songs or otherwise. This was my first pianobar usage in a while, but I am a rather heavy Pandora user. I do not have Pandora One.

Does anyone still experience the ads disguised as songs issue? I wasn't experiencing ads disguised as songs, but I would like the option to support Pandora while using pianobar.

@PromyLOPh
Copy link
Owner

Feel free to submit a pull request. Maybe we can get this into a mergeable state.

@daurnimator
Copy link

@GrantMoyer I think it only used to happen to me after a couple days of playing.

However I don't use pandora any more (they Geo-blocked Australia), so I'm unwatching this issue now.

@GrantMoyer
Copy link

@PromyLOPh I've created a pull request for the rebased branch, #686. Since it's doesn't seem to make pianobar actually play ads, I've made it a draft.

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

No branches or pull requests