Author Topic: BoxOfficeMojo_ [HTTPS] script  (Read 13585 times)

0 Members and 2 Guests are viewing this topic.

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2713
    • View Profile
BoxOfficeMojo_ [HTTPS] script
« on: November 01, 2019, 02:00:13 pm »
BoxOfficeMojo_ [HTTPS] script

Here is the new BoxOfficeMojo_ [HTTPS] script.


BoxOfficeMojo.com script


BoxOfficeMojo data:                                           custom field:
--------------------------                                  -------------------

Production Budget                                           Production Budget:   
Worldwide                                              Worldwide:

In addition to the custom fields mentioned above, it also has the following custom fields:


BoxOfficeMojo data:                                           custom field:
--------------------------                                  -------------------

Description                                                      Description   
Domestic                                                              Domestic:
International                                                            International:
Domestic Distributor                                                   Distributor:   or   Distributors:
Genres                                                                   Genresm    or  Genremb)
Earliest Release Date                                           Release Date2
MPAA Rating                                                            MPAA Rating:
BOMUpdated                                                      BOMUpdated
BoxOfficeMojo.com                                                   BoxOfficeMojo.com


These additional custom fields are added by each individual to PVD according to their wishes, depending on what they would like to see in their movie database.

The following normal fields are also added:
Poster, Title, Year, Description, Genres, Budget, Release Date and MPAA


Search results also contain movie posters. To display movie posters, you need to use the Proxomitron program and proxy settings in PVD.
Quote
You will also need a new default.cfg file, which is added below. Download the file and copy the Proxomitron program folder, to replace the old "default.cfg" with this new "default.cfg" .

It will also act PVD, you must also PVD settings \ Internet connection, find the "Proxy" and confirm. In the "Server" field enter "localhost" Port settings to 80 . Only with this configuration will function properly PVD. PVD is used only proxy port 80.
The same goes for transferring posters to PVD movie databases. Posters use secure Amazon https url links, which PVD does not yet recognize and posters without Proxomitron cannot be viewed or downloaded to the database.

Bing search results don't work. If search results don't work, you can manually add  http://www.boxofficemojo.com/title/ + IMDB MovieID
It uses the same ID than IMDB.

More details and information, read the old Boxofficemojo.com Plugin topic in the
Feature Suggestions section.


The BoxOfficeMojo_ [HTTPS] script is attached.

default.cfg is attached.

New default.cfg is attached
« Last Edit: February 20, 2022, 01:41:47 pm by Ivek23 »
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2713
    • View Profile
Re: BoxOfficeMojo_ [HTTPS] script
« Reply #1 on: November 01, 2019, 02:59:37 pm »
Search results

When you search for the title of a particular movie, you will be presented with a pop-up box with several search results hits. BoxOfficeMojo_ [HTTPS] script has the ability to transfer data to multiple movie titles at once. Then there is a problem with url addresses. Passes the correct url for one address and no more for the others. So I added the following option to download multiple url addresses at once.
Quote
        AddSearchResult(' ~ Another Additional Correct Download URL for Title ~ ','','','','');
         AddSearchResult(Title,'',Year,StringReplace(MovieURL,CHEAT_PREFIX_URL+'https://', 'http://',True,False,False),'');
         AddSearchResult('  '+#8729+'  Just to check the website: '+#8729+'  '+Title,'',Year,StringReplace(MovieURL,CHEAT_PREFIX_URL,'',True,False,False),'');       
         AddSearchResult('  '+#8729#8729+' Just to view a partial web URL:'+#8729+' '+StringReplace(MovieURL,CHEAT_PREFIX_URL+BASE_URL_TRUE,'',True,False,False),'',Year,'','');
         AddSearchResult('','','','','');
Mark the title of a particular movie nominally, and mark the following movie titles that you want to have in the database under ~ Another Additional Correct Download URL for Title ~ record (see picture). This will properly transfer all the movie URLs to you.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2713
    • View Profile
Re: BoxOfficeMojo_ [HTTPS] script
« Reply #2 on: November 01, 2019, 06:16:25 pm »
I added the following features to the script.

Quote
   GET_POSTER  = False;  //Set to False or True
   GET_SEARCH_POSTER  = False;  //Set to False or True
.
.
        if GET_SEARCH_POSTER then      
         //AddSearchResult(Title,'',Year,MovieURL,PreviewURL);                 //Preview size fails in some PVdB users
         AddSearchResult(Title,'',Year,MovieURL,PreviewURL)
        else
         AddSearchResult(Title,'',Year,MovieURL,'');   
         AddSearchResult(' ~ Another Additional Correct Download URL for Title ~ ','','','','');
         AddSearchResult(Title,'',Year,StringReplace(MovieURL,CHEAT_PREFIX_URL+'https://', 'http://',True,False,False),'');
         AddSearchResult('  '+#8729+'  Just to check the website: '+#8729+'  '+Title,'',Year,StringReplace(MovieURL,CHEAT_PREFIX_URL,'',True,False,False),'');       
         AddSearchResult('  '+#8729#8729+' Just to view a partial web URL:'+#8729+' '+StringReplace(MovieURL,CHEAT_PREFIX_URL+BASE_URL_TRUE,'',True,False,False),'',Year,'','');
         AddSearchResult('','','','','');         
         LogMessage('      Get results AddSearchResult: #'+IntToStr(index)+' | '+Title+' | '+MovieURL+' | '+PreviewURL+' ||');
.
.
     //Get ~poster~
     If GET_POSTER then begin
      curPos:=Pos('<div class="a-fixed-left-grid-col a-col-left" style="width:107px;margin-left:-107px;float:left;"><img alt="" src="',HTML);      //WEB_SPECIFIC
      if (0<curPos) then begin
        ItemValue4:=TextBetWeen(HTML,'" height="139" width="92" data-a-hires="','"/></div><div class="a-fixed-left-grid-col a-col-right" style="padding-left:0%;float:left;">',false,curPos);            //Strings which opens/closes the data. WEB_SPECIFIC
        AddImageURL(itPoster,ItemValue4);
        LogMessage('      Get result poster: '+ItemValue4);
      end;
     End;

It's possible that will script also worked without the Proxomitron program.

A new BoxOfficeMojo_ [HTTPS] script version is added to the first post.


Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2713
    • View Profile
Re: BoxOfficeMojo_ [HTTPS] script
« Reply #3 on: November 01, 2019, 06:59:22 pm »
Search results

When you search for the title of a particular movie, you will be presented with a pop-up box with several search results hits. BoxOfficeMojo_ [HTTPS] script has the ability to transfer data to multiple movie titles at once. Then there is a problem with url addresses. Passes the correct url for one address and no more for the others. So I added the following option to download multiple url addresses at once.
Quote
        AddSearchResult(' ~ Another Additional Correct Download URL for Title ~ ','','','','');
         AddSearchResult(Title,'',Year,StringReplace(MovieURL,CHEAT_PREFIX_URL+'https://', 'http://',True,False,False),'');
         AddSearchResult('  '+#8729+'  Just to check the website: '+#8729+'  '+Title,'',Year,StringReplace(MovieURL,CHEAT_PREFIX_URL,'',True,False,False),'');       
         AddSearchResult('  '+#8729#8729+' Just to view a partial web URL:'+#8729+' '+StringReplace(MovieURL,CHEAT_PREFIX_URL+BASE_URL_TRUE,'',True,False,False),'',Year,'','');
         AddSearchResult('','','','','');
Mark the title of a particular movie nominally, and mark the following movie titles that you want to have in the database under ~ Another Additional Correct Download URL for Title ~ record (see picture). This will properly transfer all the movie URLs to you.

If movie titles already exist in the database, the movie titles will be marked in the same way as for only one movie title, because the search for results will be repeated and only the first movie title in the list will be marked at that time.

I added the following features to the script.

Quote
   GET_POSTER  = False;  //Set to False or True
   GET_SEARCH_POSTER  = False;  //Set to False or True

You can choose for yourself which option you want to use. Just open the script, find these options, modify and save these changes. them the script will work as you wish.
« Last Edit: February 20, 2022, 12:34:37 pm by Ivek23 »
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2713
    • View Profile
Re: BoxOfficeMojo_ [HTTPS] script
« Reply #4 on: February 20, 2022, 12:56:10 pm »
BoxOfficeMojo_ [HTTPS] script

Small code fixes in the search results display.

Now the first record is correct, which stands out within the 4-line frame record for one movie title and the search results list.

A new BoxOfficeMojo_ [HTTPS] script version is added to the first post.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline jippo

  • User
  • ***
  • Posts: 31
    • View Profile
Re: BoxOfficeMojo_ [HTTPS] script
« Reply #5 on: July 08, 2022, 10:15:35 pm »

I still have the same problem.

Example: https://www.boxofficemojo.com/title/tt6856242/

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2713
    • View Profile
Re: BoxOfficeMojo_ [HTTPS] script
« Reply #6 on: July 12, 2022, 12:42:45 pm »

I still have the same problem.

Example: https://www.boxofficemojo.com/title/tt6856242/

The bugreport file doesn't tell me anything because I'm not a programmer. What works wrong with this example. The log file will help me.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


 

anything