Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

export of .nfo files to folders that were not writable for whatever r…

…eason meant that the next movie got 2 (or more) <movie> sections in it's .nfo file, causing incorrect later imports.
  • Loading branch information...
commit 485c491ba7a57852e9bf3b9db66390a5a66f46cc 1 parent ee76b8e
Jonathan Marshall authored davilla committed
Showing with 12 additions and 4 deletions.
  1. +12 −4 xbmc/video/VideoDatabase.cpp
View
16 xbmc/video/VideoDatabase.cpp
@@ -8280,7 +8280,9 @@ void CVideoDatabase::ExportToXML(const CStdString &path, bool singleFiles /* = f
}
}
}
-
+ }
+ if (singleFiles)
+ {
xmlDoc.Clear();
TiXmlDeclaration decl("1.0", "UTF-8", "yes");
xmlDoc.InsertEndChild(decl);
@@ -8376,7 +8378,9 @@ void CVideoDatabase::ExportToXML(const CStdString &path, bool singleFiles /* = f
}
}
}
-
+ }
+ if (singleFiles)
+ {
xmlDoc.Clear();
TiXmlDeclaration decl("1.0", "UTF-8", "yes");
xmlDoc.InsertEndChild(decl);
@@ -8485,7 +8489,9 @@ void CVideoDatabase::ExportToXML(const CStdString &path, bool singleFiles /* = f
}
}
}
-
+ }
+ if (singleFiles)
+ {
xmlDoc.Clear();
TiXmlDeclaration decl("1.0", "UTF-8", "yes");
xmlDoc.InsertEndChild(decl);
@@ -8586,7 +8592,9 @@ void CVideoDatabase::ExportToXML(const CStdString &path, bool singleFiles /* = f
}
}
}
-
+ }
+ if (singleFiles)
+ {
xmlDoc.Clear();
TiXmlDeclaration decl("1.0", "UTF-8", "yes");
xmlDoc.InsertEndChild(decl);
Please sign in to comment.
Something went wrong with that request. Please try again.