Merge branch 'refactor' of github.com:KevinMidboe/seasonedParser into refactor
This commit is contained in:
@@ -76,7 +76,7 @@ def scan_video(path):
|
||||
# hash of name
|
||||
hashids = Hashids(min_length=16)
|
||||
hashid = hashids.encode(path)
|
||||
video.name_hash = name_hash
|
||||
video.name_hash = hashid
|
||||
|
||||
return video
|
||||
|
||||
@@ -219,7 +219,7 @@ def save_subtitles(files, single=False, directory=None, encoding=None):
|
||||
print()
|
||||
|
||||
|
||||
def refine(video, episode_refiners=None, movie_refiners=None, **kwargs):
|
||||
def refine(video, episode_refiners=None, movie_refiners=None, **kwargs):
|
||||
"""Refine a video using :ref:`refiners`.
|
||||
.. note::
|
||||
Exceptions raised in refiners are silently passed and logged.
|
||||
@@ -289,7 +289,7 @@ def main():
|
||||
# hashList = organize_files(episodePath)
|
||||
# pprint(hashList)
|
||||
|
||||
videos = scan_folder()
|
||||
videos = scan_folder(path)
|
||||
for video in videos:
|
||||
pprint(video)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user