if params['action'] == 'manualsearch': if item['season'] != '' or item['episode']: item['tvshow'] = params['searchstring'] else: item['title'] = params['searchstring'] for lang in unicode(urllib.unquote(params['languages']), 'utf-8').split(","): item['3let_language'].append(xbmc.convertLanguage( lang, xbmc.ISO_639_2)) log("Item before cleaning: \n %s" % item) # clean title + tvshow params clean_title(item) parse_rls_title(item) if item['episode'].lower().find("s") > -1: # Check if season is "Special" item['season'] = "0" item['episode'] = item['episode'][-1:] if item['file_original_path'].find("http") > -1: item['temp'] = True elif item['file_original_path'].find("rar://") > -1: item['rar'] = True item['file_original_path'] = os.path.dirname( item['file_original_path'][6:]) elif item['file_original_path'].find("stack://") > -1:
log("VideoPlayer.OriginalTitle not found") item['title'] = normalizeString(xbmc.getInfoLabel("VideoPlayer.Title")) # no original title, get just Title if params['action'] == 'manualsearch': if item['season'] != '' or item['episode']: item['tvshow'] = params['searchstring'] else: item['title'] = params['searchstring'] for lang in unicode(urllib.unquote(params['languages']), 'utf-8').split(","): item['3let_language'].append(xbmc.convertLanguage(lang, xbmc.ISO_639_2)) log("Item before cleaning: \n %s" % item) # clean title + tvshow params clean_title(item) parse_rls_title(item) if item['episode'].lower().find("s") > -1: # Check if season is "Special" item['season'] = "0" item['episode'] = item['episode'][-1:] if item['file_original_path'].find("http") > -1: item['temp'] = True elif item['file_original_path'].find("rar://") > -1: item['rar'] = True item['file_original_path'] = os.path.dirname(item['file_original_path'][6:]) elif item['file_original_path'].find("stack://") > -1: stackPath = item['file_original_path'].split(" , ")