Option to disable episode titles in ed2k filenames [OLD REQ]

old granted and denied feature requests

Moderator: AniDB

Locked
Xanth
Posts: 5
Joined: Sun Mar 30, 2003 10:54 am

Option to disable episode titles in ed2k filenames [OLD REQ]

Post by Xanth »

Wouldn't it be really nice to have an option (in profile) to leave out episode titles from ed2k filenames? :o

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.
Elberet
Posts: 778
Joined: Sat Jul 19, 2003 8:14 pm

Post by Elberet »

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. :)
Elberet
Posts: 778
Joined: Sat Jul 19, 2003 8:14 pm

Post by Elberet »

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.
zaufany
Posts: 127
Joined: Sat Apr 05, 2003 9:50 pm
Location: Poland

Post by zaufany »

This is the great idea. I'm third.
DonGato
Posts: 1296
Joined: Sun Nov 17, 2002 9:08 pm
Location: The Pampas, The land of the Gaucho!
Contact:

Post by DonGato »

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. :P

HINT: click over the settings icon to configure the custom ed2k link.
exp
Site Admin
Posts: 2438
Joined: Tue Oct 01, 2002 9:42 pm
Location: Nowhere

Post by exp »

this is already somewhere on the todo list.
though i guess it might have been "purged" from it a while ago :P
well i'll look into this some day.

BYe!
EXP
Iceman[grrrr]
Posts: 312
Joined: Sat Aug 02, 2003 3:22 am
Location: Québec, Canada

Post by Iceman[grrrr] »

I don't see the use of:

%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 ?? :wink:

Nice for the others options!
DonGato
Posts: 1296
Joined: Sun Nov 17, 2002 9:08 pm
Location: The Pampas, The land of the Gaucho!
Contact:

Post by DonGato »

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...
shaydwyrm
Posts: 22
Joined: Wed Jul 30, 2003 10:14 pm

Post by shaydwyrm »

DonGato wrote:
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.
DonGato
Posts: 1296
Joined: Sun Nov 17, 2002 9:08 pm
Location: The Pampas, The land of the Gaucho!
Contact:

Post by DonGato »

Ok, yes doesn't make sense.
Elberet
Posts: 778
Joined: Sat Jul 19, 2003 8:14 pm

Post by Elberet »

Oops. :oops:
I blame the %T thing on my crappy copy&paste skills... :D

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. :P
Iceman[grrrr]
Posts: 312
Joined: Sat Aug 02, 2003 3:22 am
Location: Québec, Canada

Post by Iceman[grrrr] »

Well why not set the first one added as primary short name until creqs are made!

But that means db changes and I think exp has much more important things to do! ;)
Elberet
Posts: 778
Joined: Sat Jul 19, 2003 8:14 pm

Post by Elberet »

Yeah, and it's not even a trivial database change. Hmm... does PostgreSQL support subselects in UPDATE queries?
exp
Site Admin
Posts: 2438
Joined: Tue Oct 01, 2002 9:42 pm
Location: Nowhere

Post by exp »

Elberet wrote:Yeah, and it's not even a trivial database change. Hmm... does PostgreSQL support subselects in UPDATE queries?
well i never tried but i think that should be possible @ subselect @ update

BYe!
EXP
Locked