Personal Video Database

English => Support => Topic started by: afrocuban on April 20, 2013, 01:36:34 pm

Title: Automatically import Title, Original Titile, Local Title [WORKAROUND]
Post by: afrocuban on April 20, 2013, 01:36:34 pm
1. Using IMDb plugin, I'm logging to IMDb via my IMDb account - the 1st picture attached.

2. My IMDb account is localized to my country - the 2nd picture attached.

3. What I'm trying to achieve is to automatically import three titles: Original Title imported to <origtitle>, Local Title imported to <title>, and English Title imported to <any specific PVD field / custom field>, but not <aka>, of course - final example would be as shown as in the 3rd picture attached.

Is it possible? Any idea how to achieve this goal?

Through "Feature suggestion", if it's not feasible at the moment?



[attachment deleted by admin]
Title: Re: Automatically import Title, Original Titile, Local Title
Post by: nostra on April 20, 2013, 01:55:32 pm
No it is not possible. The login does not work in the current version at all as they have changed the procedure and I did not find a way to support the new system. The plugin should currently get the localized title (default on imdb) and the original title if it is stated on the main page of the movie.
Title: Re: Automatically import Title, Original Titile, Local Title
Post by: afrocuban on April 20, 2013, 03:55:24 pm
Thanks for the answer. Sometimes some goals have so minor benefits that it looks so banal to achieve them... ;)
Title: Re: Automatically import Title, Original Titile, Local Title [WORKAROUND]
Post by: afrocuban on April 28, 2013, 01:31:16 am
I found a way to get this:

1. Import local title and original title from imdb.com
2. Define custom field in PVD, for instance "English Title"
3. Set Ivek's AllMovie.com_new script in PVD->Preferences->Plugins, not to overwrite "Title"
4.  Modify Ivek's AllMovie.com_new script like this, for example, in order to import Title (which is always English title) to a custom field "English Title":
Code: [Select]
//~mfTitle~ or ~Title~

curPos := Pos('<title>', HTML) + Length('<title>');

//if Pos('- Trailers, Reviews, Synopsis, Showtimes and Cast - AllMovie</title>', HTML) > 0 then
// endPos := PosFrom('- Trailers, Reviews, Synopsis, Showtimes and Cast - AllMovie</title>', HTML, curPos)
//else
// endPos := PosFrom('- Cast and Crew - AllMovie</title>', HTML, curPos);

if Pos('(', HTML) > 0 then
endPos := PosFrom('(', HTML, curPos);
TmpStr1 := Copy(HTML, curPos, endPos - curPos);

AddFieldValue(mfTitle, TmpStr1); 
AddCustomFieldValueByName('English Title', TmpStr1);

5. Import data with modified Ivek's AllMovie.com_new script

Voila!

6. Make a batch file IMDB+AllMovie to automate the process
7. If you don't want to import anythiing else except English Title from Allmovie.com, then set up  Ivek's AllMovie.com_new script in Preferences, and modify it to import only English Title

Hope this helps.
 8)
Title: Re: Automatically import Title, Original Titile, Local Title [WORKAROUND]
Post by: Ivek23 on April 28, 2013, 06:42:57 am
I found a way to get this:

1. Import local title and original title from imdb.com
2. Define custom field in PVD, for instance "English Title"
3. Set Ivek's AllMovie.com_new script in PVD->Preferences->Plugins, not to overwrite "Title"
4.  Modify Ivek's AllMovie.com_new script like this, for example, in order to import Title (which is always English title) to a custom field "English Title":
Code: [Select]
//~mfTitle~ or ~Title~

curPos := Pos('<title>', HTML) + Length('<title>');

//if Pos('- Trailers, Reviews, Synopsis, Showtimes and Cast - AllMovie</title>', HTML) > 0 then
// endPos := PosFrom('- Trailers, Reviews, Synopsis, Showtimes and Cast - AllMovie</title>', HTML, curPos)
//else
// endPos := PosFrom('- Cast and Crew - AllMovie</title>', HTML, curPos);

if Pos('(', HTML) > 0 then
endPos := PosFrom('(', HTML, curPos);
TmpStr1 := Copy(HTML, curPos, endPos - curPos);

AddFieldValue(mfTitle, TmpStr1); 
AddCustomFieldValueByName('English Title', TmpStr1);

5. Import data with modified Ivek's AllMovie.com_new script

Voila!

6. Make a batch file IMDB+AllMovie to automate the process
7. If you don't want to import anythiing else except English Title from Allmovie.com, then set up  Ivek's AllMovie.com_new script in Preferences, and modify it to import only English Title

Hope this helps.
 8)

afrocuban, nice and commendable, yes, this will be helpful to other users.
Title: Re: Automatically import Title, Original Titile, Local Title [WORKAROUND]
Post by: afrocuban on April 28, 2013, 03:45:40 pm
Thanks Ivek.

The best results, however, will be achieved when nostra finds a way for a PVD's imdb plugin to log in to a site.

Then, I'd recommend to set these site preferences for IMDb, when logged in:

"Title display country" - Local country
"Title display language" - English,

for which imdb seems to has corrected earlier (https://getsatisfaction.com/imdb/topics/impossible_to_change_title_display_language_country) bug


That way, instead of original title, the English title will always be shown on the imdb, and imported to a PVD "Title" field, when there's no local country's release title for the movie on imdb.com. The original title will be imported to a "origtitle" field, in any case, when there is one stated on the main page.

Nostra, please let us know when you find a way for imdb plugin to log in.
Title: Re: Automatically import Title, Original Titile, Local Title [WORKAROUND]
Post by: Ivek23 on April 28, 2013, 04:20:30 pm
Thanks Ivek.

Welcome.
Title: Re: Automatically import Title, Original Titile, Local Title [WORKAROUND]
Post by: afrocuban on October 17, 2015, 10:35:02 am
This is to relate to an update to this forum topic, starting this message (http://www.videodb.info/forum_en/index.php/topic,3154.msg19310.html#msg19310), if someone is interested in with it.