allow guessit to work of full file path

This commit is contained in:
clinton-hall 2016-09-22 09:28:27 +09:30
commit 879584c107
2 changed files with 2 additions and 4 deletions

View file

@ -630,7 +630,7 @@ def getDirs(section, subsection, link='hard'):
# create new path
newPath = os.path.join(path, "{0} - {1}".format(sanitizeName(artist), sanitizeName(album)))
elif fileExt in core.MEDIACONTAINER:
f = guessit.guessit(os.path.basename(mediafile))
f = guessit.guessit(mediafile)
# get title
title = f.get('series') or f.get('title')