Added delete folder with trash contents

This commit is contained in:
2017-03-05 16:52:41 +01:00
parent 36cf0e7dcf
commit a439222f76

View File

@@ -3,7 +3,7 @@
# @Author: KevinMidboe # @Author: KevinMidboe
# @Date: 2017-03-05 13:52:45 # @Date: 2017-03-05 13:52:45
# @Last Modified by: KevinMidboe # @Last Modified by: KevinMidboe
# @Last Modified time: 2017-03-05 16:39:27 # @Last Modified time: 2017-03-05 16:45:31
import sqlite3, json, os import sqlite3, json, os
from re import sub from re import sub
@@ -91,8 +91,9 @@ def moveFiles(episode):
new_location = showDir + seasonFormat + episodeFormat + item[1] new_location = showDir + seasonFormat + episodeFormat + item[1]
os.rename(old_location, new_location) os.rename(old_location, new_location)
updateMovedStatus(episode) shutil.rmtree(showDir + episode['original'])
updateMovedStatus(episode)
def findVerified(): def findVerified():