Unfortunately, the URL-finding script and the post-processing script have to be written in AppleScript because that’s the only kind of script Audio Hijack Pro understands. The name of the post-processing script is entered on Audio Hijack Pro’s Recording tab. set the “Remember playback position” option.set the lyrics of the show to the song list.extract the list of songs from the program page and turn it into plain text.The name and location of that script is entered on Audio Hijack Pro’s Input tab.Īudio Hijack Pro can also run scripts to post-process a track after it’s been recorded. If this is a static URL, we just give it that but if it changes from day to day or week to week-as the Radio 2 streams do-we need to write an AppleScript that will deliver the current URL to Audio Hijack Pro. To do that, it needs the URL of the stream we want to record. StrategyĪudio Hijack Pro can be scheduled to record streams at our convenience-in the middle of the night, for example. We’ll use both of these URLs to do our recording and post-processing. The code is part of the URL for the stream and part of the URL for the program page with the playlist. Here, for example, is the schedule for last Saturday:Įach episode has a unique eight-character code associated with it. The daily schedule page has links to every program broadcast that day, and its layout is logical and easy to scrape. The key to finding episode URLs is the daily schedule page. The only problem for automating this process is finding the URL for episode you want to record. Because this layout is the same for every show, we can write a single script to scrape the song list from any show. If the episode was aired within the past week, its page will also have a link to the streaming audio of that episode. The title and artist of each song is set inside tags with classes that identify the type of information. The list of songs played on that episode are contained within a particular. Instead of a page for each show, there’s a page for each episode of each show. The bad thing about the arrangement was that each show’s information page was organized in its own way if you wanted to screen scrape the song list, you had to write a different scraping program for each show. The nice thing about this arrangement, for the purposes of automation, was that each show had a single URL for its Listen Again stream and a single URL for its general information page. They might also include a list of the songs played in that most recent episode. Typically, these pages would have a link to the Listen Again stream of the most recent episode. Radio 2 web layoutīefore the redesign, each show on Radio 2 had its own web page, or set of web pages. I’ve described this sort of thing before, but that was before the Radio 2 web redesign. This post describes my recording setup and the various scripts I use to do the recording and extract the song lists. This makes the site much easier to use, and it also gives me an opportunity to automate my recordings. In the past couple of months, Radio 2 revamped its web site the web pages for all the shows now have a uniform layout, with links to the Listen Again streams and lists of the songs played. And, of course, I’ve been working on ways to automate the process. More recently, I’ve been copying the tracklists from some shows’ web pages and adding that to the iTunes Lyrics field so I can quickly look up the song I’m listening to. I import the recordings into iTunes and transfer them to my iPod or iPhone to listen to while biking, driving, or working. I’ve put everything in a GitHub repository to make it easy to download all at once.įor years I’ve been recording BBC Radio 2’s music shows with Rogue Amoeba’s Audio Hijack Pro. While all the logic and thinking behind the scripts in this post is still true, the scripts themselves have been updated.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |