English > Scripts and Templates
BoxOfficeMojo_ [HTTPS] script
Ivek23:
BoxOfficeMojo_ [HTTPS] script
Here is the new BoxOfficeMojo_ [HTTPS] script.
--- Quote from: Ivek23 on November 23, 2015, 02:01:19 pm ---BoxOfficeMojo.com script
BoxOfficeMojo data: custom field:
-------------------------- -------------------
Production Budget Production Budget:
Worldwide Worldwide:
--- End quote ---
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.
--- End quote ---
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
--- Quote from: jippo on October 27, 2019, 10:58:43 pm ---It uses the same ID than IMDB.
--- End quote ---
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
Ivek23:
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('','','','','');
--- End quote ---
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:
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;
--- End quote ---
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:
--- Quote from: Ivek23 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('','','','','');
--- End quote ---
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.
--- End quote ---
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.
--- Quote from: Ivek23 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
--- End quote ---
--- End quote ---
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.
Ivek23:
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.
Navigation
[0] Message Index
[#] Next page
Go to full version