remove seriesDirector, just use director

This commit is contained in:
j 2012-09-11 15:29:10 +02:00
parent 1e53378a78
commit bde28ce097

View file

@ -268,16 +268,11 @@ def parse_path(path):
data['episodeTitle'] = match.group(4)[1:] data['episodeTitle'] = match.group(4)[1:]
while data['episodeTitle'] and len(parts) and re.search('^\w+\.*$', parts[0]) and not re.search('^[a-z]{2}$', parts[0]): while data['episodeTitle'] and len(parts) and re.search('^\w+\.*$', parts[0]) and not re.search('^[a-z]{2}$', parts[0]):
data['episodeTitle'] += '.%s' % parts.pop(0) data['episodeTitle'] += '.%s' % parts.pop(0)
# isEpisode, seriesDirector, seriesDirectorSort, seriesTitle, seriesYear # isEpisode, seriesTitle, seriesYear
data['isEpisode'] = False data['isEpisode'] = False
data['seriesDirector'] = data['seriesDirectorSort'] = []
data['seriesTitle'] = data['seriesYear'] = None data['seriesTitle'] = data['seriesYear'] = None
if data['season'] != None or data['episode'] != None or data['episodes']: if data['season'] != None or data['episode'] != None or data['episodes']:
data['isEpisode'] = True data['isEpisode'] = True
data['seriesDirector'] = data['director']
data['director'] = []
data['seriesDirectorSort'] = data['directorSort']
data['directorSort'] = []
data['seriesTitle'] = data['title'] data['seriesTitle'] = data['title']
season = 'S%02d' % data['season'] if data['season'] != None else '' season = 'S%02d' % data['season'] if data['season'] != None else ''
episode = '' episode = ''