Author |
Topic |
|
JDommi
Administrator
Germany
4653 Posts |
Posted - 23 Apr 2011 : 00:48:02
|
I didn't had the courage to ask for that. Maybe it is possible (and rational) to replace original rating by it if existent... |
In order to achieve what is possible, you have to try the impossible over and over again. Hermann Hesse |
|
|
Prinz
Senior Member
Germany
1522 Posts |
Posted - 23 Apr 2011 : 00:58:38
|
So we need definitely 2 search pattern for each certification/mpaa image/logo
1. for the mpaa search field 2. for the certification field
There is no way around that... |
Edited by - Prinz on 23 Apr 2011 00:58:58 |
|
|
JDommi
Administrator
Germany
4653 Posts |
Posted - 23 Apr 2011 : 13:02:24
|
Aargh, I am really stupid... I've done a test for _MOVIE_ORIGINAL_ I set 2 movies to false (standard = true). Field _MOVIE_CHARACTERINFO_ is misused to contain info of original and remake in form of: [Original: title (year)|[_MOVIE_ID_]] Remake: title (year)|[_MOVIE_ID_]
Now I wanted to add following code but nothing happens (multiple remakes have to follow after...)
<script language="JavaScript" type="text/javascript">
var bOriginal = '_MOVIE_ORIGINAL_';
if (bOriginal == 'FALSE') {
var sOriginal = '_MOVIE_CHARACTERINFO_';
if (sOriginal.iIndexOf('Original') == 1) {
var sTitle = slice(sOriginal.indexOf('|');
var sID = slice(sOriginal.indexOf('|')-sOriginal.length);
document.write('Original');
document.write('<br><font color="#FFFFFF"><a href="" onClick="window.external.COLLECTION_FINDMOVIE(''' + sID + ''');return false;"><b> ' + sTitle + '</b></a></font><br>');
}
}
</script>
|
In order to achieve what is possible, you have to try the impossible over and over again. Hermann Hesse |
|
|
Prinz
Senior Member
Germany
1522 Posts |
Posted - 23 Apr 2011 : 18:11:56
|
I changed the array in the MPAA.js with 2 new entries (country code/simple search for it) to make it work with both functions and to the image name i added the relative subfolders.
Example:
[/\b(ab.18|FSK.18)\b/i, "de/18", "FSK 18","de",/\b18\b/i], [/\b(ab.16|FSK.16)\b/i, "de/16", "FSK 16","de",/\b16\b/i], |
|
|
JDommi
Administrator
Germany
4653 Posts |
Posted - 23 Apr 2011 : 18:15:07
|
Great idea! You're not as stupid as I don't look like |
In order to achieve what is possible, you have to try the impossible over and over again. Hermann Hesse |
|
|
Prinz
Senior Member
Germany
1522 Posts |
Posted - 23 Apr 2011 : 18:19:34
|
I looks like the german rating is many times missing on imdb.com... or it's just my luck |
|
|
JDommi
Administrator
Germany
4653 Posts |
Posted - 23 Apr 2011 : 18:23:30
|
Well, I never have searched for on imdb... so I can't say anything about your luck. But despite that you're lucky to have such good ideas! |
In order to achieve what is possible, you have to try the impossible over and over again. Hermann Hesse |
|
|
Prinz
Senior Member
Germany
1522 Posts |
Posted - 23 Apr 2011 : 20:04:48
|
- Added the certifications from c9 field
I didn't add any new certifications (only the images are included in the archive). It's really difficult to make the correct regex for all, especially the first regex for the normal mpaa field.
I don't even know if all of the current work correctly.
http://www.mediafire.com/?417e1p2geivv86c |
|
|
JDommi
Administrator
Germany
4653 Posts |
Posted - 23 Apr 2011 : 20:34:40
|
I only have recognized one little bug: Movie: 2001 - A space oddyssey Output: West 12 where the word West is a relict of West Germany No other mistakes found on german certification. (Tested with my first 30 movies.) |
In order to achieve what is possible, you have to try the impossible over and over again. Hermann Hesse |
|
|
Prinz
Senior Member
Germany
1522 Posts |
|
JDommi
Administrator
Germany
4653 Posts |
Posted - 23 Apr 2011 : 21:06:17
|
Great Maybe I have a little improvement to provide double pics: compare integer value of "old" and "new" certification and if they are identical then show only one of them. |
In order to achieve what is possible, you have to try the impossible over and over again. Hermann Hesse |
|
|
Prinz
Senior Member
Germany
1522 Posts |
|
Prinz
Senior Member
Germany
1522 Posts |
Posted - 23 Apr 2011 : 21:29:00
|
quote: Originally posted by JDommi
Great Maybe I have a little improvement to provide double pics: compare integer value of "old" and "new" certification and if they are identical then show only one of them.
Don't know what you mean? |
|
|
JDommi
Administrator
Germany
4653 Posts |
Posted - 23 Apr 2011 : 21:34:54
|
ehm... as the user's country is known the date should be reformatted to the country specific format. |
In order to achieve what is possible, you have to try the impossible over and over again. Hermann Hesse |
|
|
JDommi
Administrator
Germany
4653 Posts |
Posted - 23 Apr 2011 : 21:39:03
|
quote: Originally posted by Prinz Don't know what you mean?
first certification = FSK 12 second from idmb = 12 ==> FSK 12 = 12 ==> show only one of both certs. |
In order to achieve what is possible, you have to try the impossible over and over again. Hermann Hesse |
|
|
Prinz
Senior Member
Germany
1522 Posts |
Posted - 23 Apr 2011 : 21:39:06
|
quote: Originally posted by JDommi
ehm... as the user's country is known the date should be reformatted to the country specific format.
Look closer. For many Movies/Country's there are more than 1 Date and there is also text in it many times... To parse all this and reformat it... |
|
|
Prinz
Senior Member
Germany
1522 Posts |
Posted - 23 Apr 2011 : 21:41:39
|
quote: Originally posted by JDommi
first certification = FSK 12 second from idmb = 12 ==> FSK 12 = 12 ==> show only one of both certs.
This would only work with German certs and a few others. Many countrys use a combination of numbers and letters or only letters, special chars, ... |
Edited by - Prinz on 23 Apr 2011 21:42:25 |
|
|
Prinz
Senior Member
Germany
1522 Posts |
Posted - 23 Apr 2011 : 21:50:13
|
I thing i forgot to mention:
Don't forget to look in the Page Preferences |
|
|
JDommi
Administrator
Germany
4653 Posts |
Posted - 23 Apr 2011 : 21:53:29
|
To the dates: okay In my examples I have just seen there were only one date... But isn't it possible by an regexp anyway? To the certs: you're right, I haven't thought of those rating systems. So it should be compared if both strings are identical or if the integer values are identical. |
In order to achieve what is possible, you have to try the impossible over and over again. Hermann Hesse |
|
|
JDommi
Administrator
Germany
4653 Posts |
Posted - 23 Apr 2011 : 21:56:26
|
I'm bowled over................... |
In order to achieve what is possible, you have to try the impossible over and over again. Hermann Hesse |
|
|
Topic |
|
|