2015-12-26, 23:15
Does anyone have a python snippet to write an nfo file for a particular video? Even better would be an instance of xml.etree.ElementTree or a root element of the xml for the nfo file that could be processed and then written to disk.
The broader context is that I'm looking to be able to create an nfo file for a video as a place to save its watched status, but if I only write the watched status, then when you reload the library Kodi won't load any of the other video details, which all remain blank.
The ultimate best option would be to be able to save and restore the watched status from/to an nfo file, but to nonetheless make Kodi go out to the online databases to fetch the rest of the associated video info. My sense is that this isn't possible, but is that correct?
The broader context is that I'm looking to be able to create an nfo file for a video as a place to save its watched status, but if I only write the watched status, then when you reload the library Kodi won't load any of the other video details, which all remain blank.
The ultimate best option would be to be able to save and restore the watched status from/to an nfo file, but to nonetheless make Kodi go out to the online databases to fetch the rest of the associated video info. My sense is that this isn't possible, but is that correct?