2012-05-03, 21:37
(2012-05-03, 11:48)Zapa Wrote: When cleaning the library and checking source paths first, a dvd-drive is registered as a broken source, when there are no dvd in it
is it possible to check if content typs, on the source, is set?
To make this run smoothly, the only solution I have found, is to delete the dvd-drive as source
I've checked every place I can think of (jsonrpc, python module commands, built in functions) and I can't seem to find a way to get the content type of a path. The JSON commands used to get the sources only return the label and full file path. Even if we could do this what happens if the root source is not where you set the content? I know sometimes I'll add a source to a root /video path that has subfolders for TV and Movies and then set the path on those?
I'd be happy if someone could prove me wrong here but I don't see a straightforward way to do this.