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

Jump to navigation Jump to search
Line 90: Line 90:
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('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))
set('epno', padl(E.EpisodeNo, max(1, length(mepno)), '0') + version)
set('epno', padl(E.EpisodeNo, max(1, length(mepno)), '0') + version)
Line 98: Line 98:
if(E.TypeId=5, set('epno', 'P'+epno))
if(E.TypeId=5, set('epno', 'P'+epno))
if(E.TypeId=6, set('epno', 'O'+epno))
if(E.TypeId=6, set('epno', 'O'+epno))
set('crc', '('+uc(H.Crc32)+')')
set('groupname', if(G, if(length(G.Shortname)>0, G.Shortname, G.Name), 'no group'))
set('groupname', if(length(groupname)>0, '['+groupname+']'))
set('crc', if(H, H.Crc32, F.Crc))
if(length(crc)>0, set('crc', '('+uc(crc)+')')
atitle + ' - ' + epno + ' - ' + etitle + ' ' + groupname + crc + '.' + F.FileType
atitle + ' - ' + epno + ' - ' + etitle + ' ' + groupname + crc + '.' + F.FileType
</pre></code>
</pre></code>
254

edits

Navigation menu

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