Author Topic: IMDb hidden custom field (kind) request  (Read 6807 times)

0 Members and 1 Guest are viewing this topic.

Offline afrocuban

  • Moderator
  • *****
  • Posts: 535
    • View Profile
IMDb hidden custom field (kind) request
« 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:

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;

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
« Last Edit: January 09, 2020, 01:00:55 am by afrocuban »

Online Ivek23

  • Global Moderator
  • *****
  • Posts: 2740
    • View Profile
Re: IMDb hidden custom field (kind) request
« Reply #1 on: January 10, 2020, 12:09:49 pm »
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:

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

While waiting for rottentomatoes renewed script too,

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.

We will add and edit this in the following updates.
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.

Do a test to see what happens and then customize the scripts to your liking and needs.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline afrocuban

  • Moderator
  • *****
  • Posts: 535
    • View Profile
Re: IMDb hidden custom field (kind) request
« Reply #2 on: January 12, 2020, 05:44:20 pm »

The "IMDbID" custom field is already in the IMDB_ [EN] [HTTPS] script.

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
« Last Edit: January 12, 2020, 06:13:11 pm by afrocuban »

 

anything