English > Scripts and Templates

Imdb Movie Script for Additional Information

<< < (3/4) > >>

firefox:
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.

Ivek23:

--- Quote from: firefox on October 18, 2013, 01:44:25 pm ---Many thanks Ivek for a great script.
--- End quote ---

Thanks.


--- Quote from: firefox on October 18, 2013, 01:44:25 pm ---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.
--- End quote ---

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.

Ivek23:
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: ---//~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;
--- End code ---

Ivek23:
Release Dates Imdb page individual script

It was made a small correction.

Imdb Movie(releaseinfo) script is attached in fourth post.

Ivek23:
IMDB Movie(Additional scripts) is found here.


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
* Release Dates
Technical Specifications details is here:
Release Dates details is here:


Also the above-mentioned here:

* Taglines
* Soundtracks
Taglines details

Taglines Imdb page individual script

Individual script for the following additional Imdb page:

* TaglinesImdb Movie(taglines) script is to transfer of information only from Imdb Taglines page.


Imdb Movie(taglines) script

Currently it works:

* search resultsand data transfer:

* Taglines
Individual script for Taglines Imdb page is data transfer for:

* Taglines (standard "Taglines" field)

Soundtracks details

Soundtracks Imdb page individual script

Individual script for the following additional Imdb page:

* SoundtracksImdb Movie(soundtrack) script is to transfer of information only from Imdb Soundtracks page.


Imdb Movie(soundtrack) script

Currently it works:

* search resultsand data transfer:

* Soundtracks
Individual script for Soundtracks Imdb page is data transfer for:

* Soundtracks (custom "Imdb Soundtracks" field)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version