I notice that the playlist URLs all have a randomized number in their URL, which makes it difficult for a script to “guess” the URL for the most recent playlist.
Is there any trick or code or shortcut to finding the URL to the “most recent” playlist for a particular show?
I want to have my site automatically link to the last show aired.
I’m currently considering using PHP to parse the Show’s Spinitron Page, to find the URL to the top-most playlist - which would be clunky to say the least!
My Show page:
Most recent playlist:
https://spinitron.com/KCSB/pl/**13457019**/The-Better-Way-Gospel-Hour
We don’t have a per-show URLs that provide an alias to the show’s most recent playlist. It’s an interesting idea. Would it be acceptable if there were a per-show URL that redirects 302 to a playlist?
As for your work-around, if you are using PHP then why not use the API? It’s easier than parsing HTML.
I’m trying to avoid using the API, because as a DJ, our station would prefer not to hand out the API key to DJ’s. (I did originally intend to use the API, but ran into this issue). If it’s insurmountable, then I’ll see if they’ll allow an exception to get the API key.
Currently I’m using the IFrame methods you previously showed me, with the IFRAME loading the page with ?css=xyz.css, and using the CSS to hide (display:none) everything except what I want to show.
Can the Redirect 302 method maintain the HTTP>GET variables? (So I can still pass css=xyz.css, bodyclass=xyz etc.)?
If so, then that would work fine.
Here’s the page I’m constructing, if you want to see what I’m trying to do:
http://betterwaygospel.com
As you can see, currently the player is hard-coded to play a specific show (with the random number in the URL) - in 2 weeks that will not show an Ark Player any more.
Hi @tom , do you think the 530 redirect can also pass the HTTP GET arguments? If so, I’d love to use that instead of PHP parsing. Let me know if that’s something you envision implementing soon, or if I should go ahead and get cracking with PHP!
I see that this thread is a couple of years old. Has this issue been resolved? I would also like a permalink to the playlist of my latest show. It gives interested users, listeners, and record labels the ability to parse my most recent playlist.
Otherwise, I have to go and copy and paste to the individuals requesting the information.
Definitely something to keep in mind for the future though, it will make dissemination of information easier, resulting in more people knowing about the platform. Have a good week.