AniDB O'Matic - Documentation: Local file renaming: Difference between revisions
Jump to navigation
Jump to search
Line 35: | Line 35: | ||
{| | {| | ||
|- valign="top" | |- valign="top" | ||
|English anime title with<br> fallback||<code>set('atitle', at('en')) | |English anime title with<br> fallback||<code>set('atitle', at('en'))<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('ja')))</code> | ||
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('ja')))</code> | |||
|- valign="top" | |- valign="top" | ||
|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> | |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> | ||
Line 50: | Line 49: | ||
|File version||<code>set('version', if(F.Version>1, 'v'+F.Version, ''))</code> | |File version||<code>set('version', if(F.Version>1, 'v'+F.Version, ''))</code> | ||
|- valign="top" | |- valign="top" | ||
|Padded version number||<code>set('mepno', max(A. | |Padded version number||<code>set('mepno', max(A.TotalEpisodeCount, E.EpisodeTypeCount)<br>set('epno', padl(E.EpisodeNo, max(1, length(mepno)), '0')</code> | ||
set('epno', padl(</code> | |||
|- | |- | ||
|} | |} |