diff --git a/src/FunKiiUmod.py b/src/FunKiiUmod.py index dcb0c58..77800ff 100644 --- a/src/FunKiiUmod.py +++ b/src/FunKiiUmod.py @@ -353,8 +353,7 @@ def start(self): self.log('ERROR: Could not download TMD...') self.log('MAYBE YOU ARE BLOCKING CONNECTIONS TO NINTENDO? IF YOU ARE, DON\'T...! :)') self.log('Skipping title...') - if not self.run: - shutil.rmtree(rawdir, ignore_errors=True) + shutil.rmtree(rawdir, ignore_errors=True) return with open(os.path.join(rawdir, 'title.cert'), 'wb') as f: @@ -372,8 +371,7 @@ def start(self): self.log('ERROR: Could not download ticket from {}'.format( baseurl + '/cetk')) self.log('Skipping title...') - if not self.run: - shutil.rmtree(rawdir, ignore_errors=True) + shutil.rmtree(rawdir, ignore_errors=True) return elif self.onlinetickets: keysite = get_keysite() @@ -381,8 +379,7 @@ def start(self): if not download_file(tikurl, os.path.join(rawdir, 'title.tik'), self.retry_count): self.log('ERROR: Could not download ticket from {}'.format(keysite)) self.log('Skipping title...') - if not self.run: - shutil.rmtree(rawdir, ignore_errors=True) + shutil.rmtree(rawdir, ignore_errors=True) return else: make_ticket(self.title_id, self.title_key, title_version, os.path.join( @@ -417,13 +414,11 @@ def start(self): if not self.download_file('{}/{}'.format(baseurl, c_id), outfname, self.retry_count, expected_size=expected_size): self.log('ERROR: Could not download content file... Skipping title') - if not self.run: - shutil.rmtree(rawdir, ignore_errors=True) + shutil.rmtree(rawdir, ignore_errors=True) return if not self.download_file('{}/{}.h3'.format(baseurl, c_id), outfnameh3, self.retry_count, ignore_404=True): self.log('ERROR: Could not download h3 file... Skipping title') - if not self.run: - shutil.rmtree(rawdir, ignore_errors=True) + shutil.rmtree(rawdir, ignore_errors=True) return self.percent = str(int((float(i + 1) / float(content_count))*100)) + "%"