Project 2c – Parsing the playlist file for the Internet radio

Now that we have the playlist file defined and have added some entries, you need to be able to read the file and build the internal data structures that will be used to hold station data in the Internet radio. You can download the parse.py file and the Chapter 4 supplemental materials document from http://1drv.ms/1ysAxkl. The methodology for testing parse.py is available in the Chapter 4 supplemental materials.

The parse.py program will do the following actions:

  • Open and read the Internet station streams we want from a file called /home/radio/playlistPrints out of a numerical list of the stations in the playlist file
  • Print out the station list python list[], which is used later to allow ...

Get Raspberry Pi Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.