Private GIT

Skip to content
Snippets Groups Projects
Commit 90a482a1 authored by miigotu's avatar miigotu
Browse files

Merge pull request #2165 from fernandog/old_clients_files

Remove old clients files
parents 3c667762 94b37c36
No related branches found
No related tags found
No related merge requests found
...@@ -148,6 +148,30 @@ class SickRage(object): ...@@ -148,6 +148,30 @@ class SickRage(object):
return help_msg return help_msg
def fix_clients_nonsense():
files = ["sickbeard/clients/download_station.py",
"sickbeard/clients/utorrent.py",
"sickbeard/clients/generic.py",
"sickbeard/clients/qbittorrent.py",
"sickbeard/clients/transmission.py",
"sickbeard/clients/deluge.py",
"sickbeard/clients/rtorrent.py"
]
for file in files:
file = ek.ek(os.path.join, sickbeard.PROG_DIR, file)
try:
if ek.ek(os.path.exists, file):
ek.ek(os.remove, file)
except:
pass
try:
if ek.ek(os.path.exists, file + "c"):
ek.ek(os.remove, file + "c")
except:
pass
def start(self): def start(self):
# do some preliminary stuff # do some preliminary stuff
sickbeard.MY_FULLNAME = os.path.normpath(os.path.abspath(__file__)) sickbeard.MY_FULLNAME = os.path.normpath(os.path.abspath(__file__))
...@@ -318,6 +342,9 @@ class SickRage(object): ...@@ -318,6 +342,9 @@ class SickRage(object):
# Get PID # Get PID
sickbeard.PID = os.getpid() sickbeard.PID = os.getpid()
# Fix clients old files
self.fix_clients_nonsense()
# Build from the DB to start with # Build from the DB to start with
self.loadShowsFromDB() self.loadShowsFromDB()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment