strSQL=PrepareSQL("delete from movielinktvshow where idMovie=%i", idMovie);
m_pDS->exec(strSQL.c_str());
+
+ CStdString strPath, strFileName;
+ SplitPath(strFilenameAndPath,strPath,strFileName);
+ InvalidatePathHash(strPath);
}
//TODO: move this below CommitTransaction() once UPnP doesn't rely on this anymore
if (!bKeepId)
AnnounceRemove("movie", idMovie);
- CStdString strPath, strFileName;
- SplitPath(strFilenameAndPath,strPath,strFileName);
- InvalidatePathHash(strPath);
CommitTransaction();
}
strSQL=PrepareSQL("delete from movielinktvshow where idShow=%i", idTvShow);
m_pDS->exec(strSQL.c_str());
- }
+
+ InvalidatePathHash(strPath);
+ }
//TODO: move this below CommitTransaction() once UPnP doesn't rely on this anymore
if (!bKeepId)
AnnounceRemove("tvshow", idTvShow);
- InvalidatePathHash(strPath);
-
CommitTransaction();
}
strSQL=PrepareSQL("delete from musicvideo where idMVideo=%i", idMVideo);
m_pDS->exec(strSQL.c_str());
+
+ CStdString strPath, strFileName;
+ SplitPath(strFilenameAndPath,strPath,strFileName);
+ InvalidatePathHash(strPath);
}
//TODO: move this below CommitTransaction() once UPnP doesn't rely on this anymore
if (!bKeepId)
AnnounceRemove("musicvideo", idMVideo);
- CStdString strPath, strFileName;
- SplitPath(strFilenameAndPath,strPath,strFileName);
- InvalidatePathHash(strPath);
CommitTransaction();
}