Montellese Wrote:Well the methods VideoPlaylist/AudioPlaylist.GetItems/Add/Insert are not in the Files namespace I'm not sure if it makes sense to try to get metadata information for files not in the library. IMO if you want metadata you should have your files in the library because that's what the library is for.
Well, the VideoPlaylist/AudioPlaylist.GetItems do not return any metadata if the files in there are added by browsing the Files namespace and the added file is not contained in the Library... Thats probably the more precise wording. Still, I think you get what I mean.
In my opinion such files should at least have the same "label" as the one displayed in xbmc directly. Also, there should be no dfference in the GetItems result wether the files are beeing added directly on xbmc or via JSon.
You can see the difference ealsy doing this:
- Browse the "Files" directly on the xbmc and start playback of a file not contained in the library (e.g. Some homebrew video file that does not fall into the Movie/TVShow/MusicVideo categories).
- Do a Audio/VideoPlaylist.GetItems with all fields. You will get the filename (without the path) in the "label" field.
- Now do Audio/VideoPlaylist.Clear and add the same file(s) again using the Audio/VideoLibrary.Add call using the filename.
- Do the same GetItems call again. The "label" field will be empty.
Now you can see, that for the exact same display/behavior of xbmc on your TV/Computer, the JSONRPC API returns different results.
Montellese Wrote:There is no "duration" enum for videos because it is called "runtime". It's "duration" for audio files and "runtime" for video files
Oh, missed that one... Thanks for the hint.