254
edits
Line 15: | Line 15: | ||
if(length(atitle)=0, set('atitle', at('ja'))) | if(length(atitle)=0, set('atitle', at('ja'))) | ||
</pre> | </pre> | ||
'''Japanese transcription anime title with fallback''' | |||
<pre> | |||
set('atitle', at('x-jat')) | |||
if(length(atitle)=0, set('atitle', at('x-jat', 'short'))) | |||
if(length(atitle)=0, set('atitle', at('en'))) | |||
</pre> | |||
'''Japanese kanji anime title with fallback''' | |||
<pre> | |||
set('atitle', at('ja')) | |||
if(length(atitle)=0, set('atitle', at('x-jat'))) | |||
if(length(atitle)=0, set('atitle', at('x-jat', 'short'))) | |||
if(length(atitle)=0, set('atitle', at('en'))) | |||
</pre> | |||
'''English episode title with fallback''' | |||
<pre>set('etitle', et('en')) | |||
if(length(etitle)=0, set('etitle', et('x-jat'))) | |||
if(length(etitle)=0, set('etitle', et('ja'))) | |||
</pre> | |||
'''Japanese transcription episode title with fallback''' | |||
<pre> | |||
set('etitle', et('x-jat')) | |||
if(length(etitle)=0, set('etitle', et('en'))) | |||
</pre> | |||
'''Japanese kanji episode title with fallback''' | |||
<pre> | |||
set('etitle', et('ja')) | |||
if(length(etitle)=0, set('etitle', et('x-jat'))) | |||
if(length(etitle)=0, set('etitle', et('en'))) | |||
</pre> | |||
'''File version | |||
<pre> | |||
set('version', if(F.Version>1, 'v'+F.Version,)) | |||
</pre> | |||
'''Padded episode number''' | |||
<pre> | |||
set('mepno', max(A.TotalEpisodeCount, E.EpisodeTypeCount)) | |||
set('epno', padl(E.EpisodeNo, max(1, length(mepno)), '0')) | set('epno', padl(E.EpisodeNo, max(1, length(mepno)), '0')) | ||
if(E.TypeId=2, set('epno', 'S'+epno)) | if(E.TypeId=2, set('epno', 'S'+epno)) | ||
Line 34: | Line 56: | ||
if(E.TypeId=4, set('epno', 'T'+epno)) | if(E.TypeId=4, set('epno', 'T'+epno)) | ||
if(E.TypeId=5, set('epno', 'P'+epno)) | if(E.TypeId=5, set('epno', 'P'+epno)) | ||
if(E.TypeId=6, set('epno', 'O'+epno))</pre | if(E.TypeId=6, set('epno', 'O'+epno)) | ||
</pre> | |||
'''First letter for organizing by letter''' | |||
<pre> | |||
set('head', copy(atitle, 1, 1)) | |||
if(numeric(head), set('head', '0-9')) | |||
</pre> | |||
'''Group name''' | |||
<pre> | |||
set('groupname', if(F.GroupId>0, if(length(G.Name)>0, G.Name, G.Shortname), 'no group')) | |||
set('groupname', if(length(groupname)>0, '['+groupname+']')) | |||
</pre> | |||
'''Group short name''' | |||
<pre> | |||
set('groupname', if(F.GroupId>0, if(length(G.Shortname)>0, G.Shortname, G.Name), 'no group')) | |||
set('groupname', if(length(groupname)>0, '['+groupname+']')) | |||
</pre> | |||
'''CRC32''' | |||
<pre> | |||
set('crc', '('+uc(H.Crc32)+')') | |||
</pre> | |||
==Default pattern== | ==Default pattern== |
edits