Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

ADD: Export medatadata after copying from videodb

  • Loading branch information...
commit f02f1cc5dfc7b1523d93a9c18ad60404311b7ea1 1 parent 4d53b69
@koying authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 xbmc/utils/FileOperationJob.cpp
View
8 xbmc/utils/FileOperationJob.cpp
@@ -35,6 +35,7 @@
#include "video/VideoInfoTag.h"
#include "music/tags/MusicInfoTag.h"
#include "utils/StringUtils.h"
+#include "video/VideoDatabase.h"
#ifdef HAS_FILESYSTEM_RAR
#include "filesystem/RarManager.h"
@@ -324,6 +325,13 @@ bool CFileOperationJob::CFileOperation::ExecuteOperation(CFileOperationJob *base
CLog::Log(LOGDEBUG,"FileManager: copy %s -> %s\n", m_strFileA.c_str(), m_strFileB.c_str());
bResult = CFile::Cache(m_strFileA, m_strFileB, this, &data);
+ if (bResult && URIUtils::IsVideoDb(m_strFileA))
+ {
+ // For VideoDb files, also export the metadata
+ CVideoDatabase videoDatabase;
+ if (videoDatabase.Open())
+ videoDatabase.ExportToXML(m_strFileA, true, true, false, true);
+ }
}
break;
case ActionMove:
Please sign in to comment.
Something went wrong with that request. Please try again.