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 8a07a07e4762d4d37f57cd89f35393ce1815d48f 1 parent 6e34f47
Jonathan Marshall authored
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.