Skip to content
This repository
Browse code

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
authored January 23, 2013

Showing 1 changed file with 12 additions and 4 deletions. Show diff stats Hide diff stats

  1. 16  xbmc/video/VideoDatabase.cpp
16  xbmc/video/VideoDatabase.cpp
@@ -8280,7 +8280,9 @@ void CVideoDatabase::ExportToXML(const CStdString &path, bool singleFiles /* = f
8280 8280
             }
8281 8281
           }
8282 8282
         }
8283  
-
  8283
+      }
  8284
+      if (singleFiles)
  8285
+      {
8284 8286
         xmlDoc.Clear();
8285 8287
         TiXmlDeclaration decl("1.0", "UTF-8", "yes");
8286 8288
         xmlDoc.InsertEndChild(decl);
@@ -8376,7 +8378,9 @@ void CVideoDatabase::ExportToXML(const CStdString &path, bool singleFiles /* = f
8376 8378
             }
8377 8379
           }
8378 8380
         }
8379  
-
  8381
+      }
  8382
+      if (singleFiles)
  8383
+      {
8380 8384
         xmlDoc.Clear();
8381 8385
         TiXmlDeclaration decl("1.0", "UTF-8", "yes");
8382 8386
         xmlDoc.InsertEndChild(decl);
@@ -8485,7 +8489,9 @@ void CVideoDatabase::ExportToXML(const CStdString &path, bool singleFiles /* = f
8485 8489
             }
8486 8490
           }
8487 8491
         }
8488  
-
  8492
+      }
  8493
+      if (singleFiles)
  8494
+      {
8489 8495
         xmlDoc.Clear();
8490 8496
         TiXmlDeclaration decl("1.0", "UTF-8", "yes");
8491 8497
         xmlDoc.InsertEndChild(decl);
@@ -8586,7 +8592,9 @@ void CVideoDatabase::ExportToXML(const CStdString &path, bool singleFiles /* = f
8586 8592
               }
8587 8593
             }
8588 8594
           }
8589  
-
  8595
+        }
  8596
+        if (singleFiles)
  8597
+        {
8590 8598
           xmlDoc.Clear();
8591 8599
           TiXmlDeclaration decl("1.0", "UTF-8", "yes");
8592 8600
           xmlDoc.InsertEndChild(decl);

0 notes on commit 8a07a07

Please sign in to comment.
Something went wrong with that request. Please try again.