output computed title
This commit is contained in:
parent
55a43b2d0a
commit
c5fa197de3
1 changed files with 9 additions and 1 deletions
10
ox/movie.py
10
ox/movie.py
|
@ -31,7 +31,7 @@ def parse_movie_path(path):
|
||||||
|
|
||||||
T/Title (Year)/Title.avi
|
T/Title (Year)/Title.avi
|
||||||
"""
|
"""
|
||||||
episodeTitle = episodeYear = None
|
episodeTitle = episodeYear = seriesTitle = None
|
||||||
episodeDirector = []
|
episodeDirector = []
|
||||||
parts = path.split('/')
|
parts = path.split('/')
|
||||||
|
|
||||||
|
@ -87,6 +87,13 @@ def parse_movie_path(path):
|
||||||
episodeTitle = fileparts[episodeTitle]
|
episodeTitle = fileparts[episodeTitle]
|
||||||
if episodeTitle == extension or episodeTitle.startswith('Part'):
|
if episodeTitle == extension or episodeTitle.startswith('Part'):
|
||||||
episodeTitle = None
|
episodeTitle = None
|
||||||
|
if season:
|
||||||
|
seriesTitle = title
|
||||||
|
title = u'%s (S%02d)' % (seriesTitle, season)
|
||||||
|
if episode:
|
||||||
|
title = u'%s (S%02dE%02d)' % (seriesTitle, season, episode)
|
||||||
|
if episodeTitle:
|
||||||
|
title = u'%s %s' % (title, episodeTitle)
|
||||||
|
|
||||||
#part
|
#part
|
||||||
part = findRe(parts[-1], '\.Part (\d+)\.')
|
part = findRe(parts[-1], '\.Part (\d+)\.')
|
||||||
|
@ -105,6 +112,7 @@ def parse_movie_path(path):
|
||||||
'language': language,
|
'language': language,
|
||||||
'part': part,
|
'part': part,
|
||||||
'season': season,
|
'season': season,
|
||||||
|
'seriesTitle': seriesTitle,
|
||||||
'title': title,
|
'title': title,
|
||||||
'year': year,
|
'year': year,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue