254
edits
Line 86: | Line 86: | ||
if(length(atitle)=0, set('atitle', at('en'))) | if(length(atitle)=0, set('atitle', at('en'))) | ||
if(length(atitle)=0, set('atitle', A.Name)) | if(length(atitle)=0, set('atitle', A.Name)) | ||
set('atitle', replace(atitle, '\', ' ')) | |||
set('etitle', et('en')) | set('etitle', et('en')) | ||
if(length(etitle)=0, set('etitle', et('x-jat'))) | if(length(etitle)=0, set('etitle', et('x-jat'))) | ||
if(length(etitle)=0, set('etitle', et('ja'))) | if(length(etitle)=0, set('etitle', et('ja'))) | ||
if(length(etitle)=0, set('etitle', E.Name)) | if(length(etitle)=0, set('etitle', E.Name)) | ||
set('etitle', replace(etitle, '\', ' ')) | |||
set('version', if(F.Version>1, 'v'+F.Version, '')) | set('version', if(F.Version>1, 'v'+F.Version, '')) | ||
set('mepno', max(A.TotalEpisodeCount, E.EpisodeTypeCount)) | set('mepno', max(A.TotalEpisodeCount, E.EpisodeTypeCount)) | ||
Line 100: | Line 102: | ||
set('groupname', if(G, if(length(G.Shortname)>0, G.Shortname, G.Name), 'no group')) | set('groupname', if(G, if(length(G.Shortname)>0, G.Shortname, G.Name), 'no group')) | ||
set('groupname', if(length(groupname)>0, '['+groupname+']')) | set('groupname', if(length(groupname)>0, '['+groupname+']')) | ||
set('groupname', replace(groupname, '\', ' ')) | |||
set('crc', if(H, H.Crc32, F.Crc)) | set('crc', if(H, H.Crc32, F.Crc)) | ||
if(length(crc)>0, set('crc', '('+uc(crc)+')')) | if(length(crc)>0, set('crc', '('+uc(crc)+')')) | ||
limit(limit(limit(atitle, 90) + ' - ' + epno + ' - ' + etitle, 200) + ' ' + groupname, 235) + crc + '.' + F.FileType | set('filename', limit(limit(limit(atitle, 90) + ' - ' + epno + ' - ' + etitle, 200) + ' ' + groupname, 235) + crc + '.' + F.FileType) | ||
replace(filename, '*', ' ') | |||
replace(filename, '/', ' ') | |||
replace(filename, '?', ' ') | |||
replace(filename, ':', ' ') | |||
replace(filename, '"', ' ') | |||
replace(filename, '<', ' ') | |||
replace(filename, '>', ' ') | |||
replace(filename, '|', ' ') | |||
replace(filename, ' ', ' ') | |||
</pre></code> | </pre></code> | ||
edits