61
Other Topics / Re: At the end of 2023...
« on: December 21, 2023, 06:53:04 pm »
Thank you.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
How we can block guests? We have spam here.
... PVD is revived once again due to Ivek's magical takes on AllMovie and IMDb scripts?
I am following other catalogues and I can tell you that neither is updated as PVD. In general they all dies...
For me, _2b works as advertised so far. Thank you so much Ivek.
Does anyone know which custom field states by which script the record is last updated? I absolutely forgot. Was it IUpdated?
Imdb.com[EN][HTTPS]_Search script attached.
Executing the script causes the error on my side
Here I need the title and url link of the movie so I can check what's wrong.
Hello Ivek. It's the same with any existing entry that doesn't have imdb url (logically, yet to be searched for the title to get it's url).
For example, https://www.imdb.com/title/tt0072962/
It's the same for_adv.psf script
Imdb.com[EN][HTTPS]_ b+ script is now called Imdb.com[EN][HTTPS]_Search script which would work in all PVD versions of the program. You can also add this long text IUpdated01 custom field to the database
Imdb.com[EN][HTTPS]_Search script attached.
The Imdb.com[EN][HTTPS]_Search_adv script is made in the same way as the Imdb.com[EN][HTTPS]_Search script but with the difference that the Advanced search list of search results is displayed.
You can use it if the Imdb.com[EN][HTTPS]_Search script may not show you results or may not add the correct url in case there are multiple movie titles of the same title.
The Imdb.com[EN][HTTPS]_Search_adv script also displays more hits in the list of search results.
The exact year of release of the movies is also correctly transferred here. Works in all PVD versions.
Imdb.com[EN][HTTPS]_Search_adv script attached.
I think we would test others search engine like duckduckgo.com.
I always wondered why it has to be Bing, actually, but assumed it was some "axiom".
I always wondered why it has to be Bing, actually, but assumed it was some "axiom".
I think it was used because it was perhaps the best choice after google
Imdb.com[EN][HTTPS]_Search script attached.
Executing the script causes the error on my side
Yes, maybe this will help you. If any field was left blank as in this example, it will not be visible.
Thanks, but I wasn't clear. My goal is something else.
As you know(?), at the moment IMDb script doesn't import IMDb reviews/user comments.
Instead, the script fills in the field with:Code: [Select]fbml"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><script>if(typeof uet === 'function'){ uet('bb', 'LoadTitle', {wb: 1}); }</script><script>window.addEventListen
I want to avoid this and to be able to set importing for this/custom field to be "Do nothing" or "Set if empty", like for the default fields in the screenshot.
Is that possible?
//Get ~User Reviews~
curPos:=Pos('<h3 class="ipc-title__text">User reviews',HTML); //WEB_SPECIFIC.
If 0<curPos then begin
curPos:=PosFrom('</button><div class="ipc-overflowText--children"><div class="ipc-html-content ipc-html-content--base" role="presentation"><div class="ipc-html-content-inner-div">',HTML,curPos)+Length('</button><div class="ipc-overflowText--children"><div class="ipc-html-content ipc-html-content--base" role="presentation"><div class="ipc-html-content-inner-div">'); //Strings which opens/closes the data. WEB_SPECIFIC;
EndPos:=PosFrom('</div></div></div><div class="ipc-list-card__actions"><div data-testid="review-actions" class="',HTML,curPos); //Strings which opens/closes the data. WEB_SPECIFIC
ItemValue:=Copy(HTML,curPos,endPos-curPos); //Strings which opens/closes the data. WEB_SPECIFIC
ItemValue:=StringReplace(ItemValue,':)','',True,False,True);
ItemValue:=StringReplace(ItemValue,'=)','',True,False,True);
curPos:=Pos('<!DOCTYPE html>',ItemValue);
If 0<curPos then ItemValue:=Copy(ItemValue,0,curPos-1);
curPos:=Pos('er('+#39+'load'+#39,ItemValue);
If 0<curPos then ItemValue:=Copy(ItemValue,0,curPos-1);
curPos:=Pos('Find showtimes, ',ItemValue);
If 0<curPos then ItemValue:=Copy(ItemValue,0,curPos-1);
ItemValue:=StringReplace(ItemValue,'</div>','',True,False,True);
ItemValue:=StringReplace(ItemValue,'<ul><li>','',True,False,True);
ItemValue:=StringReplace(ItemValue,'</li></ul>','',True,False,True);
AddCustomFieldValueByName('User Reviews',ItemValue);
AddCustomFieldValueByName('User Comments',ItemValue);
if ItemValue <> '' then LogMessage(' Get result User Reviews (CF~User Reviews~): <br>'+ItemValue+'||');
End;
Here is the code for IMDb reviews/user comments. Replace this code in the script, it should fix the problem.Is that possible?Not possible.
I am also looking for a solution for Imdb.com[EN][HTTPS]_ b+ script which would work in all PVD versions of the program.
Thanks Ivek. Any feedback on my question?
<row>
<column halign="right" valign="top">
<section>
<!--<border shape="none" /> -->
<border shape="none" width="1" />
<row>
<column>
<label width="80" halign="right">
<caption>IMDb User Comments</caption>
<font>
<size>11</size>
<bold />
</font>
</label>
<spacer width="-5" />
<custom field="IMDb User Comments" collapsedlines="4"/>
<spacer width="11" />
</column>
</row>
</section>
</column>
</row>
In the IMDB_[EN][HTTPS] script, the IMDB search results no longer work due to a change in the source code on these pages.
Notice:
Due to changes in the Microsoft Bing source code, all Bing_Search scripts have now become unusable. Because data access is now disabled in the source code for search results, Bing_Search scripts can no longer find search results for a specific movie title. Previously, Bing_Search scripts were able to find search results for a specific movie title, so the results were also visible.
In scripts where Bing_Search code has been added, this part of the code no longer works and there are no more visible results to search results for a particular movie title. This is especially true for all IMDB_ [EN] [HTTPS] scripts.
And a warm notice.
The same is true in Google source code for finding results for a particular movie title.
Here is the url link to the new AllMovie.com HTTPS script beta for PVD MOD versions.
http://www.videodb.info/forum_en/index.php/topic,4109.msg21882.html#msg21882
GET_ACTORS = True; //Set to False to ensure ~ctActors~ not added even if 'Overwrite fields' setting allows
GET_DURATION = True; //Set to False to ensure ~mfDuration~ not set even if 'Overwrite fields' setting allows
//Note the program will overwrite this with the actual media duration in any case
GET_POSTER = True; //Set to False if posters not wanted (or to handle bad image URL causing HTTP 404 error)
//GET_POSTER = False; //Set to False if posters not wanted (or to handle bad image URL causing HTTP 404 error)
GET_RATING = True; //Set to False to ensure ~mfRating~ not set even if 'Overwrite setting' fields setting allows
GET_THEMES = True; //Set to False to ensure ~mfCategory~ not added even if 'Overwrite fields' setting allows
// GET_FEATURES = True ; //Download Url Releases provider page for retreive the Releases info
GET_FEATURES = False ; //Download Url Releases provider page for retreive the Releases info
GET_URLID = True; //Set to True or False if URLID added or not added in Allmovie DVD custom fields
DEBUG = True;
GET_FULL_REVIEW = True ; //Download Review provider page for retreive the Summaries info. Otherwise only the info of the principal movie page
//GET_FULL_REVIEW = False ; //Download Review provider page for retreive the Summaries info. Otherwise only the info of the principal movie page
PEOPLE_LIMIT = 15; //Limit of number of actors (cast) or of credits (crew) retrieved
GET_FULL_CREDIT = True ; //Download Cast or Credit provider page for retreive the info. Otherwise only the info of the principal movie page.
// GET_FULL_AWARDS = True ; //Download Awards provider page for retreive the info. Otherwise doesn't do nothingh because no info in the principal movie page.
GET_FULL_AWARDS = False ; //Download Awards provider page for retreive the info. Otherwise doesn't do nothingh because no info in the principal movie page.
// GET_FULL_RELEASED = True ; //Download Releases provider page for retreive the Releases info.
GET_FULL_RELEASED = False ; //Download Releases provider page for retreive the Releases info.
// GET_FULL_RELATED = True ; //Download Related provider page for retreive the Connection (Related) info. Otherwise no info of the Connections provider page.
GET_FULL_RELATED = False ; //Download Related provider page for retreive the Connection (Related) info. Otherwise no info of the Connections provider page.
CONNECT_LIMIT = 12;
// GET_CONNECT = True ; //Set to False if Connection (Related) movies not added (wanted) even if 'Overwrite fields' setting allows
GET_CONNECT = False ; //Set to False if Connection (Related) movies not added (wanted) even if 'Overwrite fields' setting allows
GET_CONNECT_FULL = True ; //Download Related provider page for retreive the Connection (Related) wanted to Download full Related info.
// GET_CONNECT_FULL = False ; //Download Related provider page for retreive the Connection (Related) not wanted to Download full Related info.
// GET_FULL_CONNECT = True ; //Set to False if Connection (Related) movies not added (wanted) even if 'Overwrite fields' setting allows
GET_FULL_CONNECT = False; //Set to False if Connection (Related) movies not added (wanted) even if 'Overwrite fields' setting allows
GET_FULL__CONNECT = True ; //Set to False if Connection (Related) movies not added (wanted) even if 'Overwrite fields' setting allows
// GET_FULL__CONNECT = False; //Set to False if Connection (Related) movies not added (wanted) even if 'Overwrite fields' setting allows
FIELD USE:
Field names in comments are enclosed in "~" so they are easier to find in the script.
Use with your editor's search function to find applicable code sections.
AllMovie data: PVD field: FN: Type/Comments:
-------------- --------- -- -------------
Actors ~ctActors~ 1, 3 credits (if GET_ACTORS true)
Alternate title ~mfAka~ memo
OR ~Alternate title~ memo
AllMovie rating ~mfRating~ 1, 3 'Additional rating' named 'AllMovie.new' (if GET_RATING true)
OR ~AllMovie rating~ 2 rating
//Amazon ~Amazon~ memo (link to Search on Amazon)
AMG ID ~AMG ID~ short text
AND ~AMG ID1~ long text
AND
AMG "movie_id" ID ~AMG Wayback Machine Archive~ memo (link to Search on Wayback Archive)
OR ~AMG Wayback Machine Archive1~ memo (link to Search on Wayback Archive)
//Awards ~AllMovie Awards~ memo (link to AllMovie Awards tab)
Cast ~Cast~ memo
Crew ~Crew~ memo
Category ~Category.AllMovie~ multiselect list
—not to be confused with ~mfCategory~ (used for 'Themes')
Characteristics
~Moods~ 2 multiselect list (from 'Characteristics')
AND ~Mood links~ memo (hyperlinks to AllMovie mood pages —if available in web archive
AND ~Mood-links web archive~ memo (hyperlinks to AllMovie mood pages —if available in web archive
OR ~Mood-links web archive1~ memo (hyperlinks to AllMovie mood pages —if available in web archive
AND ~Mood-webarchive~ memo (hyperlinks to AllMovie mood pages —if available in web archive
OR ~Mood-webarchive2~ memo (hyperlinks to AllMovie mood pages —if available in web archive
~mfTags~ standard memo
~Keywords~ 2 memo (from 'Characteristics')
~Attributes~ 2 multiselect list (from 'Characteristics')
Themes from 'Characteristics'
~mfCategory~ 1 standard multiselect list (if GET_THEMES true) (from 'Characteristics')
OR ~Themes~ 2 multiselect list (from 'Characteristics')
AND ~Themes links~ 2 memo (hyperlinks to AllMovie themes pages)
Country ~mfCountry~ 1 standard multiselect list
OR ~Country~ 2 multiselect list
Cover-art ~Poster~ 1, 3 standard (if GET_POSTER true)
Directed by ~ctDirectors~ 1 standard multiselect list
Flags ~Flags~ multiselect list
Genres ~mfGenre~ 1 standard multiselect list
OR ~Genres~ 2 multiselect list
OR ~AGenres~ 2 multiselect list
AND ~Genre links~ memo (links to AllMovie Genre page)
MPAA rating ~MPAA rating~ short text, multiselect list
OR ~AllMovie_Rating~ short text
Produced by ~mfStudio~ 1 standard short text
OR ~Produced by~ 2 multiselect list
//Related ~AllMovie Related~ memo (link to AllMovie Related tab)
Review ~Review~ memo
Release date ~ rdate ~ 1 standard short text
~Released~ short text (multiple dates)
OR ~Release date~ long text (multiple dates)
OR ~AllMovieReleaseDate~ short text
~AllMovie ReleaseYear~ short text
//OR Released ~Released~ short text (more common single date)
Releases ~mfFeatures~ 1 standard memo (link to AllMovie Releases tab)
Released by ~Released by~ short text
Run time ~mfDuration~ 1, 3 standard number (if GET_DURATION true)
OR ~Run time~ 2 number (minutes)
Synopsis ~mfDescription~ standard memo
—use PVD preference to save in ANY available memo field
OR ~Synopsis~ memo
Sub-Genres ~Sub-Genres~ multiselect list
OR ~Sub-Genre links~ memo (links to AllMovie page)
Title ~mfTitle~ 1 standard short text
OR ~Title~ 2 (short text) memo
OR ~Title1~ 2 memo
Year ~mfYear~ 1 standard number (from AllMovie 'Title (Year)' heading)
OR ~Year~ 2 short string
OR ~Years~ 2 short text
Updated ~Updated~ long text
OR ~AllUpdated~ long text
URL ~mfURL~ 1 standard memo
OR ~URL~ 2 memo
OR ~AllMovie.com~ memo
OR ~AllMovieURL~ memo
OR ~AllMovie URL~ memo
AllMovie.com tabs URL ~AllMovie.com URL~ memo (link to AllMovie Cast&Crew tab OR link to AllMovie Review tab OR link to AllMovie Awards tab OR link to AllMovie Releases tab OR link to AllMovie Related tab OR link to AllMovie Search Movie results OR link to Search on Amazon)
New fields
AMovietype ~AMovietype~ multiselect list
OrigTitle ~mfOrigTitle~ 1 standard long text
OR ~OrigTitle~ 2 long text
AllMovies ~AllMovies~ check box
All Awards tab ~All Awards tab~ check box
AND ~AwardsList~ memo
OR ~AwardsList1~ memo
DVD Releases ~DVD Releases~ check box
AND ~Allmovie DVD1~ memo
Related tab ~Related tab~ check box
Distributed By ~Distributed By~ short text
Related Movies(Overview) ~AddConnection~
~Related Movies memo (Related Movies list to AllMovie Overview tab)
AND
Related Movies(Related tab)
~RelatedMovies~ multiselect list (Related Movies Category list to AllMovie Related tab)
OR ~Related-Movies~ memo (full list) (Related Movies list to AllMovie Related tab)
~MID ID:~ and ~NUM ID:~
~MID ID:~ number (Movie MID ID)
~NUM ID:~ number (Movie NUM ID)