English > Support
Automatically import Title, Original Titile, Local Title [WORKAROUND]
afrocuban:
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]
nostra:
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.
afrocuban:
Thanks for the answer. Sometimes some goals have so minor benefits that it looks so banal to achieve them... ;)
afrocuban:
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: ---//~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);
--- End code ---
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)
Ivek23:
--- Quote from: 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: ---//~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);
--- End code ---
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)
--- End quote ---
afrocuban, nice and commendable, yes, this will be helpful to other users.
Navigation
[0] Message Index
[#] Next page
Go to full version