Skip to content

Conversation

@NathanJRollins
Copy link
Contributor

I saw that there are quite a few new/different stations now, but rather than constantly updating a perpetually out-of-date list of stations on the repo, I just modified the script to automatically fetch a list of live stations at runtime. Fixed a couple other known issues as well while I was digging around in there.

Before today I knew ~nothing at all about Perl, so I do hope I haven't done anything too terribly incorrectly.

Fixes issue where the script attempts to fetch nonexistent tracks (which you also mentioned in PR wwared#4) by adjusting the regex to not match additional (incorrect) elements on the page.  Notably "_tracks" and "[STATION_TITLE]", so it will not attempt to fetch these strings as .mp3 tracks.
Previously had issues with certain track names. As you suspected in your comment on PR wwared#4, it was indeed an encoding issue (:

Fixes the issue where track names which contain #, which is not sanitized because it's technically valid within URLs in some cases, as the prefix for a fragment identifier, like when you link someone to an anchored section of a long Wikipedia article - which... just isn't what we want here at all.
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

Successfully merging this pull request may close these issues.

1 participant