AniDB O'Matic - Documentation: Local file renaming: Difference between revisions

Jump to navigation Jump to search
Line 15: Line 15:
if(length(atitle)=0, set('atitle', at('ja')))
if(length(atitle)=0, set('atitle', at('ja')))
</pre>
</pre>
|- valign="top"
'''Japanese transcription anime title with fallback'''
|Japanese transcription anime<br> title with fallback||<code>set('atitle', at('x-jat'))<br>if(length(atitle)=0, set('atitle', at('x-jat', 'short')))<br>if(length(atitle)=0, set('atitle', at('en')))</code>
<pre>
|- valign="top"
set('atitle', at('x-jat'))
|Japanese kanji anime title<br> with fallback||<code>set('atitle', at('ja'))<br>if(length(atitle)=0, set('atitle', at('x-jat')))<br>if(length(atitle)=0, set('atitle', at('x-jat', 'short')))<br>if(length(atitle)=0, set('atitle', at('en')))</code>
if(length(atitle)=0, set('atitle', at('x-jat', 'short')))
|- valign="top"
if(length(atitle)=0, set('atitle', at('en')))
|English episode title with<br> fallback||<code>set('etitle', et('en'))<br>if(length(etitle)=0, set('etitle', et('x-jat')))<br>if(length(etitle)=0, set('etitle', et('ja')))</code>
</pre>
|- valign="top"
'''Japanese kanji anime title with fallback'''
|Japanese transcription episode<br> title with fallback||<code>set('etitle', et('x-jat'))<br>if(length(etitle)=0, set('etitle', et('en')))</code>
<pre>
|- valign="top"
set('atitle', at('ja'))
|Japanese kanji episode title<br> with fallback||<code>set('etitle', et('ja'))<br>if(length(etitle)=0, set('etitle', et('x-jat')))<br>if(length(etitle)=0, set('etitle', et('en')))</code>
if(length(atitle)=0, set('atitle', at('x-jat')))
|- valign="top"
if(length(atitle)=0, set('atitle', at('x-jat', 'short')))
|File version||<code><pre>set('version', if(F.Version>1, 'v'+F.Version,))</pre></code>
if(length(atitle)=0, set('atitle', at('en')))
|- valign="top"
</pre>
|Padded episode number||<code><pre>set('mepno', max(A.TotalEpisodeCount, E.EpisodeTypeCount))
'''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></code>
if(E.TypeId=6, set('epno', 'O'+epno))
|- valign="top"
</pre>
|First letter for organizing<br>by letter||<code>set('head', copy(atitle, 1, 1))<br>if(numeric(head), set('head', '0-9'))</code>
'''First letter for organizing by letter'''
|- valign="top"
<pre>
|Group name||<code>set('groupname', if(F.GroupId>0, if(length(G.Name)>0, G.Name, G.Shortname), 'no group'))<br>set('groupname', if(length(groupname)>0, '['+groupname+']'))</code>
set('head', copy(atitle, 1, 1))
|- valign="top"
if(numeric(head), set('head', '0-9'))
|Group short name||<code>set('groupname', if(F.GroupId>0, if(length(G.Shortname)>0, G.Shortname, G.Name), 'no group'))<br>set('groupname', if(length(groupname)>0, '['+groupname+']'))</code>
</pre>
|- valign="top"
'''Group name'''
|CRC32||<code>set('crc', '('+uc(H.Crc32)+')')</code>
<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==
254

edits

Navigation menu

MediaWiki spam blocked by CleanTalk.
MediaWiki spam blocked by CleanTalk.