Page 1 of 2

Adding webradios by writing files .pls .m3u into a directory

PostPosted: 21 Sep 2014, 12:21
by AW_Raudio
Hi

Is it possible to add webradios to the library by writing(copying) files in format .pls and/or .m3u into a directory ? Which directory must be used ? How to update the database ?

I copied some files .pls and .m3u into /mnt/MPD/Webradio. Enabled automatic update of MPD's database when files in music_directory are changed. And forced library update.

All these stations are now in the library, but the URLs are shown as false and the numbering for "My Webradios(x)" is wrong. It still shows the number of webradios added by GUI.

How to add a large number of webradios ?

Rgds
AW

Re: Adding webradios by writing files .pls .m3u into a direc

PostPosted: 21 Sep 2014, 23:34
by ACX

Re: Adding webradios by writing files .pls .m3u into a direc

PostPosted: 02 Nov 2014, 06:56
by hunchan
I discovered a way to bulk add .pls files to Rune Audio Webradio. I noticed that when I added urls manually the .pls that was created used all lower case for the "numberofentries=1" string, so I simply used a find and replace utility called fnr.exe to change every instance of "NumberOfEntries=1" in my .pls files to all lower case like so:

NumberOfEntries=1 >>> numberofentries=1

I then copied the files to /mnt/MPD/Webradio, updated, and voila! they all appeared in the web ui.

Re: Adding webradios by writing files .pls .m3u into a direc

PostPosted: 04 Nov 2014, 02:03
by hunchan
To revise my previous post, I was mistaken. There is absolutely no need change anything in the .pls files. Just copy them as is into /mnt/MPD/Webradio. If you update MPD now, nothing will change, but if you add one radio station url manually through the web GUI, then when you update the MPD database it will automatically detect all of the other .pls files.

Re: Adding webradios by writing files .pls .m3u into a direc

PostPosted: 04 Nov 2014, 02:26
by cmh714
I found after moving my pls files that when I went to one of the "imported" stations, the web url was missing and just said false....at least thats what happened to me. Most likely a permissions issue but didnt think to look before I fixed it through the UI.

Re: Adding webradios by writing files .pls .m3u into a direc

PostPosted: 04 Nov 2014, 09:01
by challenge

Re: Adding webradios by writing files .pls .m3u into a direc

PostPosted: 04 Nov 2014, 11:56
by challenge
ok confirmed, the files added manually in the directory aren't being added to database.
Just checked redis db and only the ones added through the UI are listed, no trace of the other ones. Even after a library update.
I'll write this in the 0.3beta thread.

Re: Adding webradios by writing files .pls .m3u into a direc

PostPosted: 04 Nov 2014, 12:03
by ACX

Re: Adding webradios by writing files .pls .m3u into a direc

PostPosted: 30 Jun 2015, 15:04
by gearhead

Re: Adding webradios by writing files .pls .m3u into a direc

PostPosted: 01 Jul 2015, 12:06
by dwijtsma
If someone could write a python script that scans the directory with webradio's and add them to the redis database, that would be nice :mrgreen:

PS: small hint ;)