Recent Posts

Pages: 1 [2] 3 4 5 6 7 ... 10
11
Support / Re: IMDb hidden custom field (kind) request
« Last post by Ivek23 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.
12
Support / Re: Personal Video Database 1.0.2.7 MOD
« Last post by Ivek23 on January 10, 2020, 10:57:25 am »
IMDB_ [EN] [HTTPS] V 1.4.1.2 script

Quote
CHANGE LOG :
          V 1.4.1.2 (10/01/2020) Ivek23: Added "IMDb.com" url links for afrocuban request per forum post: http://www.videodb.info/forum_en/index.php/topic,4154.msg21035.html#msg21035.
.
.
.
//Parse with the Movie URL 'smNormal'------------------------------------------------------------------------------------
    If (Mode=smNormal) Then Begin
        //Get the script Overwrite Options saved in pvdconf.ini (Remember that PVD only save the options on exit)
        //0=Do nothing,1=Set if Empty,2=Overwrite
        PVDConfigOptions:=TextBetWeenFirst(FileToString(GetAppPath+'pvdconf.ini'),'IMDB_[EN][HTTPS].psf=',Chr(13));
            //LogMessage('Stored Script PVDConfigOptions is:'+PVDConfigOptions+'||');
            //LogMessage('The Script option of position '+ IntToStr(opPoster) +' is:'+Copy(PVDConfigOptions,opPoster,1)+'||');
        Result:=prFinished;  //It will change to prError if any big problem with exit; 
        //Information in several page. Needs Provider MovieID
        MovieID:=TextBetWeenFirst(DownloadURL,BASE_URL_PRE_TRUE,BASE_URL_SUF);
        LogMessage('  ParsePage mode smNormal|'+IntToStr(Mode)+'|. Getting provider data for MovieID|'+ MovieID +'|');
        AddCustomFieldValueByName('IMDbID',MovieID);
        LogMessage('      Get result IMDbID (CF~IMDbID~):'+MovieID+'||');
        //Get ~url~
        if (0=Pos(BASE_URL_PRE,StoredURL)) then begin   //Write the url if not exists
            AddFieldValueXML('url',StringReplace(DownloadURL,BASE_URL_PRE_TRUE,BASE_URL_PRE,True,False,False));
            LogMessage('      Get result url:'+StringReplace(DownloadURL,BASE_URL_PRE_TRUE,BASE_URL_PRE,True,False,False)+'||');
        end;
        //Get ~IMDb Movie Url~       
        Movie_URL:=StringReplace(DownloadURL,BASE_URL_PRE_TRUE,BASE_URL_PRE,True,False,False);
      AddCustomFieldValueByName('IMDb.com','<link url="'+Movie_URL+'">IMDb.com</link>');
      AddCustomFieldValueByName('IMDbMoviesUrl','<link url="'+Movie_URL+'">IMDb MovieUrl</link>');

        LogMessage('      Get result Movie_url: '+Movie_URL+' ||');
        Fullinfo:='';
        //Fullinfo:=Fullinfo+'<link url="'+Movie_UR+'">Maindetails</link>  ';
        Fullinfo:=Fullinfo+'<link url="'+Movie_URL+'">MainPage</link>  ';
        Fullinfo:=Fullinfo+'<link url="'+Movie_URL+'reference">Reference</link>  ';
        Fullinfo:=Fullinfo+'<link url="'+Movie_URL+'fullcredits">Full Cast&Crew</link>  ';
        Fullinfo:=Fullinfo+'<link url="'+Movie_URL+'awards">Awards</link>  ';
        Fullinfo:=Fullinfo+'<link url="'+Movie_URL+'releaseinfo">ReleaseDates</link>  ';
        //Fullinfo:=Fullinfo+'<link url="'+Movie_URL+'technical">TechnicalSpecs</link>  ';
        Fullinfo:=Fullinfo+'<link url="'+Movie_URL+'technical">TechSpecs</link>  ';
        Fullinfo:=Fullinfo+'<link url="'+Movie_URL+'parentalguide">ParentsGuide</link>  ';   
        Fullinfo:=Fullinfo+'<link url="'+Movie_URL+'keywords">PlotKeywords</link>  ';
        Fullinfo:=Fullinfo+'<link url="'+Movie_URL+'plotsummary">PlotSummary</link>  ';
        Fullinfo:=Fullinfo+'<link url="'+Movie_URL+'locations">FilmLocations</link>  ';   
        Fullinfo:=Fullinfo+'<link url="'+Movie_URL+'taglines">Taglines</link>  ';
        Fullinfo:=Fullinfo+'<link url="'+Movie_URL+'companycredits">CompanyCredits</link>  ';
        Fullinfo:=Fullinfo+'<link url="'+Movie_URL+'movieconnections">Connections</link>  ';
        Fullinfo:=Fullinfo+'<link url="'+Movie_URL+'soundtrack">Soundtracks</link>  ';
        //Fullinfo:=Fullinfo+'<link url="'+Movie_URL+'externalsites">Miscellaneous</link>  ';
        Fullinfo:=Fullinfo+'<link url="'+Movie_URL+'externalsites">MiscSites</link>  ';
        Fullinfo:=Fullinfo+'<link url="'+Movie_URL+'externalsites#photos">MiscPhoto</link>  ';
        Fullinfo:=Fullinfo+'<link url="'+Movie_URL+'mediaindex">PhotoGallery</link>  ';
        //Fullinfo:=Fullinfo+'<link url="'+Movie_URLL+'externalsites#misc">MiscSites</link>  ';
        //Fullinfo:=Fullinfo+'<link url="'+Movie_URL+'externalsites#photos">MiscPhoto</link>  ';
        If Fullinfo <> '' then IMDB_URL:=Fullinfo;
        If IMDB_URL <> '' then AddCustomFieldValueByName('IMDb Movie Url',IMDB_URL);
        LogMessage('      Get result Fullinfo-IMDB_URL (CF~IMDb Movie Url~ ):'+#13+IMDB_URL+'||')
    //Parse principal provider page = BASE_URL_PRE_TRUE------------------------------------------------------------------

It's attached IMDB_ [EN] [HTTPS] V 1.4.1.2 script.
13
Support / Re: AllMovie Https?
« Last post by Ivek23 on January 10, 2020, 09:14:06 am »
14
Support / Re: Personal Video Database 1.0.2.7 MOD
« Last post by VVV_Easy_Programing on January 09, 2020, 09:08:18 pm »
...
This is how it works flawlessly.  Thanks again!
It sure happens because you have the url in the normal field, this is the meaning of code:
if (0=Pos(BASE_URL,StoredURL)) then begin   //Write the url if not exists (Spanish or english)

With the code at the beginning of ~url section you you assure that the url is always written in the custom field, I don't see anything against.

Oh, and one more question: when future FA script update happens, I guess I'd have to manually make a copy of it and add piece of code above?
Well, if I do the update I will try to include this code even if I don't add the custom field (I think there would be no risks).
In that case I would alert you.
15
Support / Re: Personal Video Database 1.0.2.7 MOD
« Last post by afrocuban on January 09, 2020, 01:10:01 am »
Oh, and one more question: when future FA script update happens, I guess I'd have to manually make a copy of it and add piece of code above?

Best regards
16
Support / IMDb hidden custom field (kind) request
« Last post by 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:

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
17
Support / Re: Allmovie.com https
« Last post by afrocuban on January 09, 2020, 12:35:13 am »
Thank you and Happy New Year, dear Ivek!
18
Support / Re: Personal Video Database 1.0.2.7 MOD
« Last post by afrocuban on January 09, 2020, 12:15:27 am »
Thank you so much Easy! God bless you!  :)

It just looks that custom field piece of code has to come at the beginning of ~url section:

//Get ~url~
AddCustomFieldValueByName('FilmAffinity.com', '<link url="'+ StringReplace(DownloadURL,BASE_URL_PRE_TRUE,BASE_URL_PRE,True,False,False)+ '">FilmAffinity.com</link>');
        if (0=Pos(BASE_URL,StoredURL)) then begin   //Write the url if not exists (Spanish or english)
            AddFieldValueXML('url',StringReplace(DownloadURL,BASE_URL_PRE_TRUE,BASE_URL_PRE,True,False,False));
            LogMessage('      Get result url:'+StringReplace(DownloadURL,BASE_URL_PRE_TRUE,BASE_URL_PRE,True,False,False)+'||');
        end;


This is how it works flawlessly.  Thanks again!
19
Support / Re: Personal Video Database 1.0.2.7 MOD
« Last post by VVV_Easy_Programing on January 08, 2020, 08:49:18 pm »
If you want a live or working link you only must change that line adding the html code (in bold), then:

AddCustomFieldValueByName('FilmAffinity.com', '<link url="'+ StringReplace(DownloadURL,BASE_URL_PRE_TRUE,BASE_URL_PRE,True,False,False)+ '">FilmAffinity.com</link>');
20
Support / Re: Personal Video Database 1.0.2.7 MOD
« Last post by VVV_Easy_Programing on January 08, 2020, 08:46:27 pm »
Only for afrocuban: ;)                     FilmAffinity_[EN][HTTPS]-afrocuban
CHANGE LOG :
            V 4.1.0.0-afrocuban (08/01/2020) VVV: Added support for custom field named 'FilmAffinity.com'.

The difference is only in the name and version and line 777 has been added:
            AddCustomFieldValueByName('FilmAffinity.com',StringReplace(DownloadURL,BASE_URL_PRE_TRUE,BASE_URL_PRE,True,False,False));

If you add the attached file in yours script folder and you have the custom field  'FilmAffinity.com' in your movie data base it must work ... but I can't try it because my movie database hasn't this custom field.
Pages: 1 [2] 3 4 5 6 7 ... 10
anything