Refactor #2

Merged
KevinMidboe merged 70 commits from refactor into master 2018-10-16 21:11:45 +00:00
Showing only changes of commit d9880c77fb - Show all commits

View File

@@ -73,8 +73,11 @@ def scan_video(path):
# hash of name # hash of name
hashids = Hashids(min_length=16) hashids = Hashids(min_length=16)
hashid = hashids.encode(path) if isinstance(v, Episode):
video.name_hash = hashid videoHash = hashids.encode(''.join(self.title, self.year or ''))
elif isinstance(v, Movie):
videoHash = hashids.encode(''.join(self.series, self.season, self.episode))
video.hash = videoHash
return video return video