2014-06-25, 12:27
Hey ronie, would it be possible to just delete artwork folders which are referenced on the script?
For example, when you call self.def _delete_directories( self ):
it could only delete dirs in self.artworklist:
I use E:\Artwork\MovieSets\ as my central movie sets artwork folder and it gets wiped when running your script.
If not, I can clone this script and implement it myself. It's just that others can benefit from this
Thanks
For example, when you call self.def _delete_directories( self ):
Code:
def _delete_directories( self ):
if xbmcvfs.exists( self.directory ):
dirs, files = xbmcvfs.listdir( self.directory )
for item in dirs:
try:
shutil.rmtree( os.path.join(self.directory, item) )
except:
pass
it could only delete dirs in self.artworklist:
Code:
def _delete_directories( self ):
if xbmcvfs.exists( self.directory ):
dirs, files = xbmcvfs.listdir( self.directory )
for item in dirs:
try:
remdir = os.path.join(self.directory, item)
if remdir in self.artworklist:
shutil.rmtree( remdir )
except:
pass
I use E:\Artwork\MovieSets\ as my central movie sets artwork folder and it gets wiped when running your script.
If not, I can clone this script and implement it myself. It's just that others can benefit from this
Thanks