Wouldn't it be really nice to have an option (in profile) to leave out episode titles from ed2k filenames?
Quoting myself from elsewhere :
(...) aniDB filenames are an absolute pain in the ass, because they contain the episode title. That usually makes the filenames too long for burning to CD/DVD, and after renaming them several hundred times I have started to hate the naming scheme with a passion.
Maybe make the ed2k links customizeable by storing some sort of format string in the profile? For example:
%a = Anime name
%s = Anime short name
%n = Episode number
%N = Episode number, 0-padded so that it has the same amount of digits as the total episodes number.
%t = total number of episodes
%T = total number of episodes, 0-padded
%e = episode title
%c = CRC
%C = CRC with capital letters
%g = group-shortname
%G = full group name
This way, users can fully customize how their ed2k links should look.
Err, I forgot to describe how this works in the end.
The user profile stores a string that is used as a template for the ed2k-link filenames. All %c (where c is any character) sequences are replaced by the appropriate value or removed, %% is converted to a single %. (Good old escaping.) Spaces are converted to underscores, other characters that aren't allowed in ed2k links are removed. All other characters remain untouched.
Examples:
The default: %a - %N - %e - [%g] --> Onegai_Teacher_-_01_-_Teacher,_Please_Teach_To_Me_-_[A-E]
Something weird: %A - %N(%T) - %e --> OT_-_01(12)_-_Teacher,_Please_Teach_To_Me
The CRC, [AniDB]-tag and file extension are added automatically.
Like this? -> Hitsuji No Uta example
The code it's already done but I think it engross the pages this way. We can have a better handling by setting this values on the server side, but exp will have to code it.
HINT: click over the settings icon to configure the custom ed2k link.
%s = Anime short name --> there may be many short titles for an anime
%T = total number of episodes, 0-padded --> 0-padded to what ? The total number of episodes ??
Iceman[grrrr] wrote:%s = Anime short name --> there may be many short titles for an anime
Agree.
Iceman[grrrr] wrote:%T = total number of episodes, 0-padded --> 0-padded to what ? The total number of episodes ??
See how it's working in the html-lightblue template. When an anime has 100+ episodes, episode numbering is filled with 0s... like 001, 002... If there are 10+, 01, 02... and if only less than 9, 1, 2...
Iceman[grrrr] wrote:%T = total number of episodes, 0-padded --> 0-padded to what ? The total number of episodes ??
See how it's working in the html-lightblue template. When an anime has 100+ episodes, episode numbering is filled with 0s... like 001, 002... If there are 10+, 01, 02... and if only less than 9, 1, 2...
That's how it works for %N, but for %T to what do you compare the total number of episodes to figure out the number of 0's? It doesn't make any sense.
Oops.
I blame the %T thing on my crappy copy&paste skills...
Regarding %s: Yes, I know that there are many shortnames. Possible solutions would be to simply use the first shortname that was added to the DB, to define a "primary" shortname or to add a dropdown to the anime page that lets you select which shortname to use, but only if %s is used in the template and if there is more then one shortname.
Since the third option is IMO overkill, the second too hard to implement since all existing animes with shortnames would have to be edited and the first simply not satisfying, it's probably best not to provide %s after all. But hey, it was just a suggestion.