duracell80 / MoodeRadio-Get

Package Manager for Moode Audio Radio Stations
GNU General Public License v3.0
16 stars 2 forks source link

CRB: Not splitting stations to separate m3u files when toggle set to YES. #3

Closed duracell80 closed 4 years ago

duracell80 commented 4 years ago

Seems to be failing on station name, possibly due to empty or malformatted string for station name?

Splitting stations, please wait Traceback (most recent call last): File "rb-populate.py", line 168, in station_name = str(station_split[1])

IndexError: list index out of range

duracell80 commented 4 years ago

Config.json at time of bug found ....

{"radiobrowser":[{"singles":"1","tags":"ambient,chillout,1980s","stations":"net:bbc,net:npr","range":"25-600"}]}

And the API lookup was https://de1.api.radio-browser.info/m3u/stations/bytag/1980s

duracell80 commented 4 years ago

Radio browser is spitting out M3U files with an illegal UUID for this file format.

Fixed with ...

REMOVE #RADIOBROWSERUUID: FROM M3U n_urls = re.sub(r'^#RADIOBROWSERUUID:.*\n?', '', n_file.content, flags=re.MULTILINE)