Update an existing media source. More...
Update an existing media source.
Path: /mediasource/update
[in] | id | The id of the media source to update |
[in] | url | The URL of the media source |
[in] | title | The title of the media source |
[in] | tags | The tags to associate with it (a comma separated list of tags, each tags can use dots for hierarchy and two consecutive dots to indicatete a dot character) |
[in] | type | The type of the media source. Possible values are file , folder , audurl , vidurl , imgurl , audfeed , vidfeed , imgfeed |
[in] | lookforaudio | A boolean value indicating if to look for audio items or not whne processing the media source |
[in] | lookforvideo | A boolean value indicating if to look for video items or not whne processing the media source |
[in] | lookforphoto | A boolean value indicating if to look for photos items or not whne processing the media source |
[in] | transcodingwhen | One of always , never , pprofile , where pprofile means: automatically determine whether the media should be transcoded based on the profile associated with the given device. This value overrides the system wide settings (see SettingsFetch for more information) |
[in] | public | A boolean value indicating if the media source is public and hence can be sent to a global respository for sharing with others |
response
and two attributes status
and message
. The status can be either success
or failure
and the message describes the cause of the error in a user friendly manner.Advanced Paramters: Some optional advanced parameters that are supported as well are below
[in] | menus | A specific set of menus under which this media source should be added (a comma separated list of menu names, each name can use dots for hierarchy and two consecutive dots to indicatete a dot character) |
[in] | menuroot | The root under which to place menus . If omitted, it is assumed that the menus start with their root. An unlimited set of root menus can be created by an application, each such set of menus exists side by side with all the other sets and can become the active set of menus by modifying the root settings variable (see SettingsUpdate for more information). It is possible to create automatic indexes under any menu root by hard coding such indexes in config.xml . |
[in] | featured | A boolen value indicating if the media source should be listed as a top level menu item. |