#import re
#import sickgear
#from sickgear.helpers import anon_url
#from sickgear.tv import TVidProdid
<% def sg_var(varname, default=False): return getattr(sickgear, varname, default) %>#slurp#
<% def sg_str(varname, default=''): return getattr(sickgear, varname, default) %>#slurp#
#set $state_checked = ('', ' checked=checked')[any([sg_var('IMPORT_DEFAULT_CHECKED_SHOWS')])]
|
Parent\show folder |
Show name (tvshow.nfo) |
TV info source |
#if not $kwargs.get('hash_dir')
Manage Directories
|
#end if
#for $cur_item, $cur_tvid, $cur_prodid, $cur_show_name in [
(_i, _i['existing_info'][0], _i['existing_info'][1], _i['existing_info'][2])
for _i in $dir_list if not (_i['added_already'] and not $kwargs.get('hash_dir'))]
#set $tvid = (0, $sickgear.TVINFO_DEFAULT)[0 < $sickgear.TVINFO_DEFAULT]
#if $cur_prodid and $sickgear.TVInfoAPI($cur_tvid).config.get('active')
#set $tvid = $cur_tvid
#end if
#set $item_id = $cur_item['normpath']
#if $cur_prodid
#set $item_id = '|'.join([$item_id, '%s%s%s' % ($tvid, $TVidProdid.glue, str($cur_prodid)), $cur_show_name])
#set $tvid = $cur_tvid
#end if
|
#if $cur_item['highlight']
path in use prevents add. ^-- rename here or check path content to maybe use menu `Import`
#end if
|
#if $cur_show_name and $tvid > 0
#if $cur_prodid
$cur_show_name
#else
$cur_show_name
#end if
|
#else
? |
#end if
|
#end for