Removed unused print and fixed show path and sanity check.

This commit is contained in:
2018-09-23 18:01:55 +02:00
parent 81a53465e7
commit abb9ddbf09
2 changed files with 3 additions and 4 deletions

View File

@@ -275,7 +275,6 @@ def scan_folder(path):
def pickforgirlscouts(video):
if video.sufficientInfo():
video.moveLocation()
print(video.home)
return True
return False

View File

@@ -183,14 +183,14 @@ class Episode(Video):
def moveLocation(self):
series = titlecase(self.series)
grandParent = '{}/{} {:02d}'.format(series, series, self.season)
grandParent = '{}/{} Season {:02d}'.format(series, series, self.season)
parent = '{} S{:02d}E{:02d}'.format(series, self.season, self.episode)
self.home = os.path.join(grandParent, parent, self.name)
self.home = os.path.join(grandParent, parent, os.path.basename(self.name))
def __repr__(self):
if self.year is None:
return '<%s [%r, %dx%s]>' % (self.__class__.__name__, self.series, self.season, self.episode)
if self.subtitles is not None:
if self.subtitles is not None and len(self.subtitles) > 0:
return '<%s [%r, %dx%s] %s>' % (self.__class__.__name__, self.series, self.season, self.episode, self.subtitles)
return '<%s [%r, %d, %dx%d]>' % (self.__class__.__name__, self.series, self.year, self.season, self.episode)