61
Development / Re: PK's MovieDB dynamic website template
« on: December 22, 2023, 07:57:26 am »Obviously, as an admin, I will have to disable guests from continuing to post on the forum.
Done.
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.
Obviously, as an admin, I will have to disable guests from continuing to post on the forum.
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