Skip to content

Commit

Permalink
export of .nfo files to folders that were not writable for whatever r…
Browse files Browse the repository at this point in the history
…eason meant that the next movie got 2 (or more) <movie> sections in it's .nfo file, causing incorrect later imports.
  • Loading branch information
Jonathan Marshall committed Jan 23, 2013
1 parent 6e34f47 commit 8a07a07
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions xbmc/video/VideoDatabase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 8a07a07

Please sign in to comment.