08-22-2020, 06:06 PM
(08-22-2020, 05:42 PM)TheOldPresbyope Wrote: @Tim Curtis
@fdealexa
Re: importing radio stations
As expected, bumping the three configuration parameters for php and nginx to 50MB, poking the integrity check in the eye with a sharp stick, and rebooting, I was able to import the two biggest files provided to me. The attached screen capture shows logos of some of the DAB+ stations which were in the last file I imported.
Francesco, I don't recommend you try hand-editing the moOde internals; I'm sure this increase in import file capacity will show up in the next release. There will always be some limit, for the reasons Tim mentioned, but I think 50MB is a reasonable one.
Regards,
Kent
Thanks Kent.
in the meantime you kindly tell me "what to do" for the parameters, I tried to change your Python code:
changing line 98 of loadmyradios.py, I got the insertion of your two radios.
Code:
cur.execute ("INSERT INTO cfg_radio VALUES (?,?,?,?,?,?,?,?,?,?,?,?)", (None, entry ['station'], name, entry [ 'type'], item ['logo'], None, None, None, None, None, None, None))
Now I'd completely fix it, if you can send me the new record scheme (if you have it).
It probably is
Code:
(id, station, name, type, logo, genre, broadcaster, language, country, region, bitrate, audio format)
Thanks again,
Francesco