English > Support

IMDb hidden custom field (kind) request

(1/1)

afrocuban:
Hello dear Ivek and Easy.

This (probably, hahaha) would be my final humble request to include "IMDb.com" and "IMDbID" hidden custom fields into IMDb script for future releases, so I could get this into my custom skin:


--- Quote ---//Get ~mfURL~ or ~IMDb Url~
endPos := Pos('/ "><meta property="og:url"', HTML);
if endPos > 0 then begin
   curPos := PrevPos('"canonical" href="', HTML, endPos);
   AddFieldValue(mfURL, Copy(HTML, curPos + 18, endPos - curPos - 18));   
end else
AddFieldValue(mfURL, MovieURL);
AddCustomFieldValueByName('IMDb.com', '<link url="' + MovieURL + '">IMDb.com</link>');
   TmpStr := StringReplace(MovieURL, 'http://www.imdb.com/title/', '', false, false, false );
   TmpStr := StringReplace(TmpStr, '?ref_=fn_tt_tt_', '', true, false, true);
   TmpStr := StringReplace(TmpStr, '/', '', true, false, true);
AddCustomFieldValueByName('IMDbID:', TmpStr);

end;

--- End quote ---

To get those, so far I use some ancient Ivek's script from 2013, which you can find enclosed but it works only with Proxomitron, and after IMDb url is provided by IMDB_[EN][HTTPS].psf

While waiting for rottentomatoes renewed script too,

Thank you in advance!

P.S. At the screenshot you can check how it looks in my custom skin

Ivek23:

--- Quote from: afrocuban on January 09, 2020, 12:58:08 am ---Hello dear Ivek and Easy.

This (probably, hahaha) would be my final humble request to include "IMDb.com" and "IMDbID" hidden custom fields into IMDb script for future releases, so I could get this into my custom skin:
--- End quote ---

The "IMDbID" custom field is already in the IMDB_ [EN] [HTTPS] script. The "IMDb.com" custom field is now added to the IMDB_ [EN] [HTTPS] script. The IMDB_ [EN] [HTTPS] script is added at this link below. There is also a visible section of code where everything is added.

http://www.videodb.info/forum_en/index.php/topic,4134.msg21039.html#msg21039


--- Quote from: afrocuban on January 09, 2020, 12:58:08 am ---While waiting for rottentomatoes renewed script too,
--- End quote ---

Work on this, now scripts are being tested for proper operation.

It may still be necessary to manually add a hyperlink url link to the custom URL box, so I would recommend that you add custom fields separately so that the following may not happen.


--- Quote from: Ivek23 on April 14, 2019, 07:16:15 am ---
--- Quote from: Ivek23 on March 21, 2019, 08:12:29 am ---We will add and edit this in the following updates.
--- End quote ---
Will this be arranged with the next update, but it will be necessary to make for each script its own custom field to save the url of the address. Each update in this field changes the record and needs to be corrected. Also, in the scripts, it will be necessary to add this part of the code to the custom field.
--- End quote ---

Do a test to see what happens and then customize the scripts to your liking and needs.

afrocuban:

--- Quote from: Ivek23 on January 10, 2020, 12:09:49 pm ---
The "IMDbID" custom field is already in the IMDB_ [EN] [HTTPS] script.

--- End quote ---

Oh, now I see that I defined my custom field as "IMDbID:" - with colon  ":" instead only "IMDbID".

Thank you immensely for both custom fields, nevertheless!

Best regards

Navigation

[0] Message Index

Go to full version