Adds ability to generate NFO file from the JSON metadata in the utils module

This commit is contained in:
Tzahi12345
2020-09-11 17:15:13 -04:00
parent 95e53b9549
commit a623012901
2 changed files with 34 additions and 0 deletions

View File

@@ -26,6 +26,9 @@ function registerFileDB(file_path, type, multiUserMode = null, sub = null) {
utils.fixVideoMetadataPerms(file_id, type, multiUserMode && multiUserMode.file_path);
// creates XML if kodi support is enabled
if (true) utils.generateNFOFile(file_id, type, multiUserMode && multiUserMode.file_path);
// add thumbnail path
file_object['thumbnailPath'] = utils.getDownloadedThumbnail(file_id, type, multiUserMode && multiUserMode.file_path);