dont try to do any DB access if it is not needed in Update Actors

This commit is contained in:
faush01 2015-03-20 11:21:43 +11:00
commit 21a29b3962
2 changed files with 55 additions and 39 deletions

View file

@ -51,11 +51,14 @@ class LibrarySync():
#what sync method to perform ?
if syncOption == "Full Sync":
pr = utils.startProfiling()
#pr = utils.startProfiling()
self.MoviesSync(True)
utils.stopProfiling(pr, "MoviesSync(True)")
#utils.stopProfiling(pr, "MoviesSync(True)")
#pr = utils.startProfiling()
self.TvShowsSync(True)
#utils.stopProfiling(pr, "TvShowsSync(True)")
if syncOption == "Incremental Sync":
self.MoviesSync(False)
self.TvShowsSync(False)