Personal Video Database

English => Development => Scripts and Templates => Topic started by: Ivek23 on June 24, 2013, 08:14:29 pm

Title: Imdb Movie Script for Additional Information
Post by: Ivek23 on June 24, 2013, 08:14:29 pm
Imdb Movie Script for Additional Information

Additional Information Imdb Movie Script is to transfer of information only from Imdb Main Details page.

Currently it works:
and data transfer:
and more data transfer:

Added is also URL links to the some Additional Imdb sites.



For the  "URL" ,  "Imdb rating" ,  "Studio" ,  "Original title"  and  "Original Language"  transfer of information is the standard field,

Data transfer for standard field:


the rest is transfer of information in custom fields:


Imdb data:                                           custom field:
---------------                                       -------------------

Imdb votes                                           IMDB Votes      
ImdbID                                                 IMDbID
Top 250                                                Top 250:
Title
 (title, original title and year)              Imdb Title
Language
 (all language)                                      Language:
Release Date
 (release date and country
 - Imdb Main Details page)                   Imdb Release Date
Runtime
(Imdb Main Details page)                    Imdb Runtime
Aspect Ratio                                          Imdb Aspect Ratio


Notice:
Custom field Imdb votes and Top 250:  is or should be the same as described in Imdb plugin settings.



Imdb Additional Movie Information Script is attached.



For guests :
 There below is a link to the Russian part of the forum where you can get IMDB Movie(Additional scripts) 7z file.

http://www.videodb.info/forum_ru/index.php/topic,430.msg14639.html#msg14639



[attachment deleted by admin]
Title: Re: Imdb Movie Script for Additional Information
Post by: Ivek23 on June 30, 2013, 12:39:37 pm
Additional Information Imdb Movie(1) Script is to transfer of information from Imdb Main Details page, Combined, Release Dates and Technical Specifications Imdb page.

Currently it works:
and data transfer:
and more data transfer:
and more additional data transfer:

Added is also URL links to the some Additional Imdb sites.



For the  "URL" ,  "Imdb rating" ,  "AKA" ,  "Tagline" ,  "Studio" ,  "Original title" ,  "Year"  and  "MPAA"  transfer of information is the standard field,

Data transfer for standard field:


the rest is transfer of information in custom fields:


Imdb data:                                           custom field:
---------------                                       -------------------

Imdb votes                                           IMDB Votes      
ImdbID                                                 IMDbID
Top 250                                                Top 250:
Title
 (title, original title and year)              Imdb Title
Language
 (all language)                                      Language:
Release Date
 (release date and country
 - Imdb Main Details page)                  Imdb Release Date
Runtime
(Imdb Main Details page)                    Imdb Runtime
Aspect Ratio                                          Imdb Aspect Ratio

TV Series & etc ...                                 Tv
Sound Mix                                              Sound Mix:
Color:                                                     Imdb Color

Release Date
 (release date and country - all)            Release dates
Aka (all)                                                 Imdb Aka
Technical Specifications                         Technical Specs:
Production Dates                                     Production Dates
Filming Dates                                          Filming Dates
Copyright Holder                                     Copyright Holder
MPAA                                                       Imdb MPAA
Runtime (all)                                           Imdb Runtime1
Country MPAA Certification (all)            MPAA:


Notice:
Custom field Sound Mix: , Imdb Color, Imdb votes and Top 250:  is or should be the same as described in Imdb plugin settings.



More detail is here. (http://www.videodb.info/forum_en/index.php/topic,3370.msg17051.html#msg17051)



Imdb Additional Movie Information(1) Script is attached.



For guests :
 There below is a link to the Russian part of the forum where you can get IMDB Movie(Additional scripts) 7z file.

http://www.videodb.info/forum_ru/index.php/topic,430.msg14639.html#msg14639


[attachment deleted by admin]
Title: Re: Imdb Movie Script for Additional Information
Post by: Ivek23 on June 30, 2013, 12:40:07 pm
IMDB Movie(Additional scripts)

Individual script for the following additional Imdb page:

The package contains in addition to the already presented:

also the above-mentioned  here: (http://www.videodb.info/forum_en/index.php/topic,3370.msg17088.html#msg17088)
and the remaining:

Each script is transferred:

IMDB Movie(Additional scripts) is attached to 7z format.

Details is found in IMDB Movie(Additional scripts) details Part 1 (http://www.videodb.info/forum_en/index.php/topic,3382.msg18360.html#msg18360), IMDB Movie(Additional scripts) details Part 2 (http://www.videodb.info/forum_en/index.php/topic,3382.msg18362.html#msg18362) and IMDB Movie(Additional scripts) details Part 3 (http://www.videodb.info/forum_en/index.php/topic,3382.msg18363.html#msg18363).



More detail is here. (http://www.videodb.info/forum_en/index.php/topic,3370.msg17088.html#msg17088)



For guests :
 There below is a link to the Russian part of the forum where you can get IMDB Movie(Additional scripts) 7z file.

http://www.videodb.info/forum_ru/index.php/topic,430.msg14639.html#msg14639


[attachment deleted by admin]
Title: Re: Imdb Movie Script for Additional Information
Post by: Ivek23 on September 05, 2013, 08:22:36 pm
Release Dates Imdb page individual script

Individual script for the following additional Imdb page:
Imdb Movie(releaseinfo) script is to transfer of information only from Imdb Release Dates page.



Imdb Movie(releaseinfo) script

Currently it works:
and data transfer:


Individual script for Release Dates Imdb page is data transfer for:
Custom "Imdb Aka" field  is disabled.

Notice:
Script it is best to use for existing Imdb movie URLs which have been stored in the Databases. New URLs script does not save.




Imdb Movie(releaseinfo) script is attached.



For guests :
 There below is a link to the Russian part of the forum where you can get IMDB Movie(Additional scripts) 7z file (Imdb Movie(releaseinfo) script).

http://www.videodb.info/forum_ru/index.php/topic,430.msg14639.html#msg14639
Title: Re: Imdb Movie Script for Additional Information
Post by: Ivek23 on September 07, 2013, 07:40:10 pm
Technical Specifications Imdb page individual script

Individual script for the following additional Imdb page:

Imdb Movie(tech specs) script is to transfer of information only from Imdb Technical Specifications page.



Imdb Movie(tech specs) script

Currently it works:
and data transfer:


Individual script for Technical Specifications Imdb page is data transfer for:
Notice:
Custom field Technical Specs:  is or should be the same as described in Imdb plugin settings.

Script it is best to use for existing Imdb movie URLs which have been stored in the Databases. New URLs script does not save.




Imdb Movie(tech specs) script is attached.



For guests :
 There below is a link to the Russian part of the forum where you can get IMDB Movie(Additional scripts) 7z file (Imdb Movie(tech specs) script).

http://www.videodb.info/forum_ru/index.php/topic,430.msg14639.html#msg14639
Title: Re: Imdb Movie Script for Additional Information
Post by: facinlaburo on September 10, 2013, 11:02:50 pm
Thanks Ivek, you're really grosso.
In the tech specs script I changed the name of the custom field to "Datos Técnicos" and it works OK.
The standard AKA field is now filled OK with the releaseinfo script.
Great improvement for me.
Title: Re: Imdb Movie Script for Additional Information
Post by: afrocuban on September 11, 2013, 02:08:32 pm
Is this needed because IMDb plugin wasn't updated? If that was the case, does that mean techspecs won't be included in IMDb plugin anymore?

So, if that is the case, once again, is it possible, Ivek, to make a batch file, so called IMDb-all-in-one, and to update it, too? It's hard for a regular user to track which fields are included and which aren't in IMDb plugin. Especially because when IMDb tech specs were included in IDMb plugin, all of us gave different name to a custom field (for example, I gave it a name "IMDb Tech Specs"), so whenever you update this script, I have to edit it to change correspondent custom field name, or to change a skin I use to accommodate appropriate techspecs field name and to run the script again, right?

Thanks in advance!
Title: Re: Imdb Movie Script for Additional Information
Post by: Ivek23 on September 11, 2013, 08:11:10 pm
Is this needed because IMDb plugin wasn't updated?

Of course, by the time that as long as Nostra not fix Imdb plugin. It can also be used to update only techspecs without updating the rest of the data. I'll use the script to update only techspecs data for about 500 movies in more Databases.

If that was the case, does that mean techspecs won't be included in IMDb plugin anymore?

No, it's not, I think it will not happen.

So, if that is the case, once again, is it possible, Ivek, to make a batch file, so called IMDb-all-in-one, and to update it, too?

No, not a problem, imdb+Imdb Movie(tech specs) Batch file is created and attached in  zip  and  7z  format.

It's hard for a regular user to track which fields are included and which aren't in IMDb plugin. Especially because when IMDb tech specs were included in IDMb plugin, all of us gave different name to a custom field (for example, I gave it a name "IMDb Tech Specs"), so whenever you update this script, I have to edit it to change correspondent custom field name, or to change a skin I use to accommodate appropriate techspecs field name and to run the script again, right?

It is true that after each update script to change the name of techspecs custom fields. An easier way to change the name [enter your name ("IMDb Tech Specs") for techspecs custom field] techspecs for custom fields is to just open the script with Notepad and change this part of code

Code: [Select]
//if fullinfo <> '' then AddCustomFieldValueByName('Technical Specs:', fullinfo);
if fullinfo <> '' then AddCustomFieldValueByName('IMDb Tech Specs', fullinfo);

  curPos := EndPos;
end;

end;

procedure ParseSearchResults(HTML : String);

and all the work is done without further intervention in the skin.

That's all you will need to do, when the new update for script.
Title: Re: Imdb Movie Script for Additional Information
Post by: afrocuban on September 11, 2013, 08:27:44 pm
Thanks a lot Ivek. You're cool as usual.  8)
Title: Re: Imdb Movie Script for Additional Information
Post by: Ivek23 on September 12, 2013, 05:35:45 am
Thanks a lot Ivek. You're cool as usual.  8)

Thank you very much.
Title: Re: Imdb Movie Script for Additional Information
Post by: firefox on October 18, 2013, 01:44:25 pm
Many thanks Ivek for a great script.
I want to add a custom item (ex.: Series) like Studio item but it open url in browser when click on text.
I can get url and text for 'Series' from script but cannot make it open url in browser when click on text.
Can you help me to write a script to do that?
Thank you for your help.
Title: Re: Imdb Movie Script for Additional Information
Post by: Ivek23 on October 19, 2013, 07:25:18 am
Many thanks Ivek for a great script.

Thanks.

I want to add a custom item (ex.: Series) like Studio item but it open url in browser when click on text.
I can get url and text for 'Series' from script but cannot make it open url in browser when click on text.
Can you help me to write a script to do that?
Thank you for your help.

Why do you need this?
Can you describe a little bit more, and backed up by pictures. because I can not exactly figure out what you have in mind. Then it easier to reply and help you solve the problem. If you have already made ​​a draft of the script, add it to the post to see it, then it will be easier to continue.
Title: Re: Imdb Movie Script for Additional Information
Post by: Ivek23 on October 23, 2013, 07:12:58 am
Would this be helpful.
Example code for the custom field with a url link to a web page when you click on the text that is displayed in a custom box.

Code for TV Movie, TV Mini Series, TV Series, TV Episode, Video etc ...
Code: [Select]
//~TV Series & etc ... ~
curPos := PosFrom('<div class="infobar">', HTML, EndPos);
if curPos > 0 then begin
    curPos := curPos + Length('<div class="infobar">');
EndPos := PosFrom('-', HTML, curPos);
if (EndPos < 1) OR (EndPos > PosFrom('<span title="', HTML, curPos)) then
EndPos := PosFrom('<span title="', HTML, curPos);
if (EndPos < 1) OR (EndPos > PosFrom('<time', HTML, curPos)) then
EndPos := PosFrom('<time', HTML, curPos);
// TmpStr2 := Trim(Copy(HTML, curPos, endPos - curPos));
TmpStr2 := RemoveTags(Trim(Copy(HTML, curPos, endPos - curPos)), false);
TmpStr2 := StringReplace(TmpStr2, '                                                                         -', '', True, True, False);
TmpStr2 := StringReplace(TmpStr2, '            ', '', True, True, False);
// if TmpStr2 <> '' then AddCustomFieldValueByName('Tv2', TmpStr2);
if TmpStr2 <> '' then AddCustomFieldValueByName('Tv2', '<link url="' + MovieURL + '">' + TmpStr2 + '</link>');
end;
Title: Re: Imdb Movie Script for Additional Information
Post by: Ivek23 on March 29, 2014, 03:39:46 pm
Release Dates Imdb page individual script

It was made a small correction.

Imdb Movie(releaseinfo) script is attached in fourth post (http://www.videodb.info/forum_en/index.php/topic,3382.msg17193.html#msg17193).

Title: Re: Imdb Movie Script for Additional Information
Post by: Ivek23 on March 29, 2014, 07:59:22 pm
IMDB Movie(Additional scripts) is found here (http://www.videodb.info/forum_en/index.php/topic,3382.msg17093.html#msg17093).



IMDB Movie(Additional scripts) details:

Part 1:


Individual script for the following additional Imdb page:

The package contains in addition to the already presented:


Technical Specifications details is here: (http://www.videodb.info/forum_en/index.php/topic,3382.msg17197.html#msg17197)
Release Dates details is here: (http://www.videodb.info/forum_en/index.php/topic,3382.msg17193.html#msg17193)



Also the above-mentioned  here: (http://www.videodb.info/forum_en/index.php/topic,3370.msg17088.html#msg17088)

Taglines details

Taglines Imdb page individual script

Individual script for the following additional Imdb page:
Imdb Movie(taglines) script is to transfer of information only from Imdb Taglines page.



Imdb Movie(taglines) script

Currently it works:
and data transfer:


Individual script for Taglines Imdb page is data transfer for:



Soundtracks details

Soundtracks Imdb page individual script

Individual script for the following additional Imdb page:
Imdb Movie(soundtrack) script is to transfer of information only from Imdb Soundtracks page.



Imdb Movie(soundtrack) script

Currently it works:
and data transfer:


Individual script for Soundtracks Imdb page is data transfer for:
Title: Re: Imdb Movie Script for Additional Information
Post by: Ivek23 on March 30, 2014, 12:35:40 pm
IMDB Movie(Additional scripts) is found  here (http://www.videodb.info/forum_en/index.php/topic,3382.msg17093.html#msg17093).



IMDB Movie(Additional scripts) details:

Part 2:


Individual script for the following additional Imdb page:

The package contains in addition to the remaining:


Combined details for the two below mentioned script

Combined details

Combined Imdb page individual scripts

Individual script for the following additional Imdb page:
Imdb Movie(cast&combined) script and Imdb Movie(combined) is to transfer of information only from Imdb Combined page.



Imdb Movie(cast&combined) script and Imdb Movie(combined) script

Currently it works:
and data transfer:



Individual script for Combined Imdb page is data transfer for:




Parents Guide details

Parents Guide Imdb page individual script

Individual script for the following additional Imdb page:
Imdb Movie(parentsguide) script is to transfer of information only from Imdb Parents Guide page.



Imdb Movie(parentsguide) script

Currently it works:
and data transfer:



Individual script for Parents Guide Imdb page is data transfer for:
Title: Re: Imdb Movie Script for Additional Information
Post by: Ivek23 on March 30, 2014, 01:12:05 pm
IMDB Movie(Additional scripts) is found  here (http://www.videodb.info/forum_en/index.php/topic,3382.msg17093.html#msg17093).



IMDB Movie(Additional scripts) details:

Part 3:


Individual script for the following additional Imdb page:

The package contains in addition to the remaining:


External Sites details

External Sites Imdb page individual script

Individual script for the following additional Imdb page:
Imdb Movie(misclinks) script and Imdb Movie(pmisclinks) script is to transfer of information only from Imdb External Sites page.



Imdb Movie(misclinks) script and Imdb Movie(pmisclinks) script

Currently it works:
and data transfer:



Individual script for External Sites Imdb page is data transfer for:
Title: Re: Imdb Movie Script for Additional Information
Post by: Ivek23 on March 30, 2014, 05:06:40 pm
Imdb Movie(misclinks) script and Imdb Movie(pmisclinks) script is to transfer of information only from Imdb External Sites page.

Added only a few url links to some important and interesting web pages (links only to secure web pages, links, but not to non-functioning or blocked, suspicious and unwanted web pages [blocked, suspicious and unwanted web pages - antivirus protection]), where to find additional movie information as well as some screenshots and posters of movies.