View Issue Details

IDProjectCategoryView StatusLast Update
0000915AJAX/JSBug Report - Interfacepublic2016-01-11 20:58
ReporterAmour Assigned Tofahrenheit  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Summary0000915: ed2k link has different language from anime page and episode page
DescriptionWhen an episode has a foreign language title (let say French), and you set your profile to display it, then you will have different ed2k links, depending of the page.

Anime page: French title
Group-Anime page: French title
Episode page: English title
IRC channel: no title
Additional InformationExample:

[b]anime & group-anime pages[/b]
http://anidb.net/perl-bin/animedb.pl?show=anime&aid=1&eid=2#eid_2
http://anidb.net/perl-bin/animedb.pl?show=group&gid=4371&aid=1

ed2k://|file|Seikai_no_Monshou_-_02_-_Les_parents_des_Étoiles_-_[D-f](dub.sub_ja.fr).avi|207464448|8d59fc79cec1baf83e7bb8c6e3c745a2|/

[b]episode page[/b]
http://anidb.net/perl-bin/animedb.pl?show=ep&eid=2

ed2k://|file|Seikai_no_Monshou_-_02_-_Kin_of_the_Stars_-_[D-f](dub.sub_ja.fr).avi|207464448|8d59fc79cec1baf83e7bb8c6e3c745a2|/

[b]IRC channel (Chii)[/b]
!file 128377

ed2k://|file|Seikai_no_Monshou_-_02_-_[D-f](dub.sub_ja.fr).avi|207464448|8d59fc79cec1baf83e7bb8c6e3c745a2|/
Tagsed2k, language

Activities

Amour

2008-02-13 20:30

reporter   ~0001690

Last edited: 2008-02-20 08:27

And there is another two different possible filenames.
4) When you add a file with the same size, but different hash, it will display:

At least one other file with the exact same size is already added for this episode. The file you are trying to add might be corrupted.
Seikai no Monshou - 02 - Kin of the Stars - [D-f](dub.sub ukn.ukn).avi

5) When you ed2k dump identify it, it will display:

Seikai no Monshou - 02 - Kin of the Stars - [D-f](dub.sub ja.fr).avi


So if I recap correctly, for the same file, we have all the following filenames displayed:
* Seikai_no_Monshou_-_02_-_Les_parents_des_Étoiles_-_[D-f](dub.sub_ja.fr).avi
* Seikai_no_Monshou_-_02_-_Kin_of_the_Stars_-_[D-f](dub.sub_ja.fr).avi
* Seikai_no_Monshou_-_02_-_[D-f](dub.sub_ja.fr).avi
* Seikai no Monshou - 02 - Kin of the Stars - [D-f](dub.sub ja.fr).avi
* Seikai no Monshou - 02 - Kin of the Stars - [D-f](dub.sub ukn.ukn).avi

This required different fixes:
* setting the episode name to be always in French
* setting the sub and dub languages correctly

Amour

2009-01-05 23:32

reporter   ~0002466

More information about what should be done about this issue.

First of all, it would be a good idea to do it "server side", as told in issue 1288:
http://tracker.anidb.info/view.php?id=1288

Then, for Episode and Anime titles within an ed2k link, the language should be made default according to the subtitles/audio combination of the file, with the following priority:
1) The first subtitle stream
2) The second subtitle stream (if title not available for first subtitle language)
3) The first audio stream (if title not available for any subtitle languages)
4) The second audio stream (if title not available for first audio language)
5) English (if title not available for any audio language)

Anime and Episode titles can be different languages depending on data availability.

An option in your profile would allow you to override the default language based on subs/dubs by setting your favorite language (when available).

This system of default titles for a file would help many to have a common filename set in the correct fansub language.

Amour

2009-01-05 23:52

reporter   ~0002467

Oh, and additionnally, such a default ed2k link name could be stored somewhere. It only needs to be generated when there is an Anime/Episode title change, not each time someone opens a page with a link.

fahrenheit

2009-01-24 02:42

reporter   ~0002499

hmm, amour can you check that, if while using ajax, the ed2k links still vary on the 3 example pages you said at the tracker item description for french?

(i would do it, but i'm getting lazy with the passing hours and if all pages show the same output i can pass this issue to someone, which i guess would be DerIdiot for the perl changes)

What this crap needs is a unified way to get file names and generate stuff, bleh.

Issue History

Date Modified Username Field Change
2008-02-13 18:06 Amour New Issue
2008-02-13 20:30 Amour Note Added: 0001690
2008-02-15 04:45 ninjamask Tag Attached: ed2k
2008-02-15 04:45 ninjamask Tag Attached: language
2008-02-20 08:27 Amour Note Edited: 0001690
2009-01-05 23:32 Amour Note Added: 0002466
2009-01-05 23:52 Amour Note Added: 0002467
2009-01-08 00:44 fahrenheit Status new => assigned
2009-01-08 00:44 fahrenheit Assigned To => fahrenheit
2009-01-24 02:42 fahrenheit Note Added: 0002499
2009-07-24 14:03 DerIdiot Project HTML & PERL => AJAX/JS
2016-01-11 20:58 DerIdiot Status assigned => resolved
2016-01-11 20:58 DerIdiot Resolution open => fixed