X-Git-Url: http://git.code-monkey.de/?p=plugin.video.netflix.git;a=blobdiff_plain;f=resources%2Flib%2FLibrary.py;h=0d70ad3c359c95abb9187f7d8ad237b9bc161005;hp=3dd8475226dc1ad7e91d92a6b073d9afbfc5aed4;hb=86455dfff7e4878e5192dd97991f2e96a3021739;hpb=00e52414dc315358fd3e340078fb4b208b35ca40 diff --git a/resources/lib/Library.py b/resources/lib/Library.py index 3dd8475..0d70ad3 100644 --- a/resources/lib/Library.py +++ b/resources/lib/Library.py @@ -4,12 +4,12 @@ # Created on: 13.01.2017 import os -import shutil +from shutil import rmtree +from utils import noop try: import cPickle as pickle except: import pickle -from utils import noop class Library: """Exports Netflix shows & movies to a local library folder""" @@ -348,7 +348,7 @@ class Library: self._update_local_db(filename=self.db_filepath, db=self.db) dirname = os.path.join(self.movie_path, folder) if os.path.exists(dirname): - shutil.rmtree(dirname) + rmtree(dirname) return True return False @@ -370,7 +370,7 @@ class Library: self._update_local_db(filename=self.db_filepath, db=self.db) show_dir = os.path.join(self.tvshow_path, folder) if os.path.exists(show_dir): - shutil.rmtree(show_dir) + rmtree(show_dir) return True return False