Re: Web UI in PHP (revised)
I pulled the Serviio 1.3 branch from your git repo. Everything else seems to be working just fine. I'm not worried about the error messages if there is no cause for concern.
LGstudio wrote:I'm using Serviio on Synologi NAS and I have also installed the Serviio Console to set up the behavior. Today I wanted to change settings like: adding online source, adding/removing local folder or just same simple things like that. After I pressed Save to changed settings (it says "Saved!") the window reloads but the changes are lost and everything stays as it was before.
Also when trying to add a local folder, in opened dialog, it is impossible to select local folders.
DSM vesrion: 4.3.3776
Serviio version: 1.2.1-0019
Serviio Console version: 1.4beta-002
Java SE for embedded 7 version: 1.7.0_40-0018
What can I do to make my changes saved?
$repo[1][$id] = array(
getPostVar("os_type_${id}", ""),
getPostVar("os_url_${id}", ""),
getPostVar("os_media_${id}", ""),
getPostVar("onlinesource_${id}", ""),
getPostVar("os_name_${id}", ""),
getPostVar("os_stat_${id}", ""),
getPostVar("os_thumb_${id}", ""),
array(getPostVar("os_access_${id}", ""))
);
$repo[1][$id] = array(
getPostVar("os_type_${id}", ""),
getPostVar("os_url_${id}", ""),
getPostVar("os_media_${id}", ""),
getPostVar("onlinesource_${id}", ""),
getPostVar("os_name_${id}", ""),
getPostVar("os_stat_${id}", ""),
getPostVar("os_thumb_${id}", ""),
array(getPostVar("os_access_${id}", "1"))
);
I just had a quick at the code and have a solution. Checking the rest API for the Library Data then there is a field for the access group ids requires a value of 1, currently a blank string is being submitted by the WebUi.
To fix it then there are two updates to code/library.php, these are;
First change
becomes;
Second change
- Code:
$repo[1][$id] = array(
getPostVar("os_type_${id}", ""),
getPostVar("os_url_${id}", ""),
getPostVar("os_media_${id}", ""),
getPostVar("onlinesource_${id}", ""),
getPostVar("os_name_${id}", ""),
getPostVar("os_stat_${id}", ""),
getPostVar("os_thumb_${id}", ""),
array(getPostVar("os_access_${id}", ""))
);
becomes;
- Code:
$repo[1][$id] = array(
getPostVar("os_type_${id}", ""),
getPostVar("os_url_${id}", ""),
getPostVar("os_media_${id}", ""),
getPostVar("onlinesource_${id}", ""),
getPostVar("os_name_${id}", ""),
getPostVar("os_stat_${id}", ""),
getPostVar("os_thumb_${id}", ""),
array(getPostVar("os_access_${id}", "1"))
);
1. After fresh install, there was no "Remote" tab until i installed the Serviio Pro licence. It should show as there is a 15 day evalution to try the Pro version
2. On Renderer Profile, it still has the tickbox to select the row, where other tables have selectable rows.
3. On Online sources, Feed Expiry Interval (hours):, Input box is missing
4. Would be cool if Online sources can be organised (up,down) like the official console and ServiiDroid
5. The location of logfile is not saved, can you put back user editing the config.php so it loads
Return to Third-party tools integration
Users browsing this forum: No registered users and 1 guest