mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 13:53:15 -07:00
allow guessit to work of full file path
This commit is contained in:
parent
d692acb061
commit
879584c107
2 changed files with 2 additions and 4 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue