(07-19-2020, 11:05 PM)fdealexa Wrote: (07-19-2020, 10:54 PM)Tim Curtis Wrote: (07-19-2020, 10:00 PM)fdealexa Wrote: Hello everybody,
as usual a very good job.
I have a question: is there any instruction about the sintax of the cfg_radio.csv?
I have some dubts on the use of the " (quotation marks) and the needs to keep the deleted records: in other words if I create a new cfg_radio.csv with the correct record number may I replace some existing radio?
Is the 499 record a MUST or may I expand the radio's number more than 500?
Thanks again for the great job and best regards to everybody,
Francesco
Are you are using the Import/Export station feature?
As Kent said the double quotes are required by SQL. It's to handle strings containing embedded spaces and other special characters. If the string contains double or single quotes then there is a special way of designating them which I can't recall ATM.
Example
Code:
127,http://ice1.somafm.com/bagel-128-aac,"Soma FM - BAGeL Radio",s,local,"Alternative Rock","Soma FM",English,"United States","North America",128,AAC
Leave record ID 499 in the file. It's a reserved record to designate the highest ID for moOde's predefined stations. User added stations, those added via the UI + button would start at ID >= 500.
Thanks a lot, Tim.
I will try, as suggested by Kent, and I will disturb again if needed.
Thank againg and best regards,
Francesco
Hi Tim, Hi Kent and everyone.
as suggested, I did a lot of testing (1 month), and found some interesting things:
1. all the .pls records must end with ascii 0A only. It has been hard to find out because I use "notepad" that ends records with 0D and 0A
2. the same as in point 1 is for "cfg_radio.csv" (0A only)
3. the most important to my point of view (your precious help is kindly needed): if you try to import a small number of new radios everything is fine but if the number is greater than 40/45 there is a problem hanging the IMPORT phase. I found that the problem appears to be related to logos. Normally in the .zip there are: .csv, .pls, logos and thumbs ... if the number of the radio is high, just insert in the zipped file: .csv and .pls and only some logos and thumbs. Obviously you have radios without logos (you can edit manually later). One last thing: if you complete the change for all radios, you can save (export) everything fine.
A workaround solution could be the "merge" or "add" function, which you have already announced for the near future, but it is strange that it can handle a good number of items in export, but not in import.
Do you have any suggestions?
Sorry for my English, thanks for your cooperation and best regards,
Francis
PS: I tried on a 1GB Rpi and a 4GB Rpi and the problem is the same.