Moviemeter.nl problem

If you made a script you can offer it to the others here, or ask help to improve it. You can also report here bugs & problems with existing scripts.
StefMir
Posts: 55
Joined: 2011-05-31 19:07:43

Re: Moviemeter.nl problem

Post by StefMir »

Goodnight,

I have some trouble getting the "Lengte" (Length) from moviemeter.nl with the script.

Not with all movies but with about 1/3 of them...

It seems to be with movies with "geen stemmen" (no votes).

for example some not working:

https://www.moviemeter.nl/film/49489
https://www.moviemeter.nl/film/44801
https://www.moviemeter.nl/film/16589

Maybe someone can check and fix the script?

t.i.a.

-edit-

if there are nog actors, I get

ogen" class="emoji emojione" data-code="8|">

as actor

example:
https://www.moviemeter.nl/film/1120002

and then no "length" data is imported too
wvd
Posts: 96
Joined: 2006-08-02 22:21:20
Location: Nederland

Re: Moviemeter.nl problem

Post by wvd »

Hi,

There's a problem importing the movie name and the description!

You have to change these three lines in the script

Line 22:
Line := TextBetween(PageText, '<h1><span itemprop="name" dir="ltr">', '</h1>');
change in:
Line := TextBetween(PageText, '<h1><span dir="ltr">', '</h1>');


Line35:
Value := TextBetween(PageText, '<h1><span itemprop="name" dir="ltr">', '</h1>');
change in:
Value := TextBetween(PageText, '<h1><span dir="ltr">', '</h1>');

Line 138:
Value := TextBetween(Line, '<p itemprop="description">', '</p>');
change in:
Value := TextBetween(Line, '<p>', '</p>');

succes!
Wim
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Re: Moviemeter.nl problem

Post by antp »

Thanks, I updated it as v2.8.46
(not tested, so I trust you :lol: )
wvd
Posts: 96
Joined: 2006-08-02 22:21:20
Location: Nederland

Re: Moviemeter.nl problem

Post by wvd »

Hello,

When I try to get the the movie information, I get a error message:

"Error connecting with SSL"

Does anyone know how to solve this problem?

Greetings
Wim
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Re: Moviemeter.nl problem

Post by antp »

Which movie for example?
For me it seems to work.
Do you have the version 2.8.46 of the script? And 4.2.2 of the application?
wvd
Posts: 96
Joined: 2006-08-02 22:21:20
Location: Nederland

Re: Moviemeter.nl problem

Post by wvd »

Hi,

I was not running the latest version :ha:

I will test it later

Greetings,
Wim
wvd
Posts: 96
Joined: 2006-08-02 22:21:20
Location: Nederland

Re: Moviemeter.nl problem

Post by wvd »

Hi Antoine,

It works fine again.
Thanks for your reply

Greetings
Wim
MDFanatik
Posts: 13
Joined: 2009-06-30 12:06:55

Re: Moviemeter.nl problem

Post by MDFanatik »

For me, the latest moviemeter.nl script isn't working properly. The category field gets warbled : it states "Links Imdb " an d then the rating. Lenght of the movie isn't imported. COuld you pelase have a look at it?
When I change the country part in the script to this:
// Country
Line := TextBetween(PageText, '</div>', '</p>');

then it works again.
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Re: Moviemeter.nl problem

Post by antp »

Thanks, indeed it seems to fix the problem.
I updated the script on the server (2.8.47)
wvd
Posts: 96
Joined: 2006-08-02 22:21:20
Location: Nederland

Re: Moviemeter.nl problem

Post by wvd »

Hello Antoine,

There's a little problem with the script agian.
I don't know if many will notice, because it to import the Trailer.

But if you change this:

// Trailer
if GetOption('Trailer') <> 0 then
begin
if Pos('<h2>TRAILER</h2>', PageText) <> 0 then
begin
Value := TextBetween(PageText, '<a href="https://www.youtube.com/watch?v=','" >');
HTMLRemoveTags(Value);
HTMLDecode(Value);
Value := 'https://www.youtube.com/watch?v='+FullTrim(Value);
SetField(fieldComposer, Value);
end;
end;

Into this:

// Trailer
if GetOption('Trailer') <> 0 then
begin
Value := TextBetween(PageText, '<a href="https://www.youtube.com/watch?v=','" >https');
HTMLRemoveTags(Value);
HTMLDecode(Value);
Value := 'https://www.youtube.com/watch?v='+FullTrim(Value);
SetField(fieldComposer, Value);
end;

The problem is solved.

Greetings,
Wim
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Re: Moviemeter.nl problem

Post by antp »

Hi,
Thanks, but I think that a more reliable way would be to update the check on the trailer title.
So it seems that replacing
<h2>TRAILER</h2>
by
<h2>Trailer</h2>
is better.
Otherwise if there is no trailer, there could be unexpected results.

I updated the file on the server as version 2.8.48
wvd
Posts: 96
Joined: 2006-08-02 22:21:20
Location: Nederland

Re: Moviemeter.nl problem

Post by wvd »

Hi Antoine,

Thanks for the help!


Now I get a fault:
Socket Error # 11001
Host not found

If I fill in the URL in the program it does find the movie.

If you go to the site Moviemeter, you first have to approve the popup for cookies
Maybe that's the problem

Hope someone can fix it
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Re: Moviemeter.nl problem

Post by antp »

Hi,
It seems that now in the search results they send back the full address (with domain name in from of the page/movie number), and we were adding an extra "https://www.moviemeter.nl" in front of that.
I uploaded a new version (2.8.49), it seems to work at least for the case I tested :D
wvd
Posts: 96
Joined: 2006-08-02 22:21:20
Location: Nederland

Re: Moviemeter.nl problem

Post by wvd »

Hi Antoine,

Thanks again, works fine again! :grinking: :grinking:
pele
Posts: 72
Joined: 2009-02-21 20:25:57

Re: Moviemeter.nl problem

Post by pele »

Hi ,

I got an error message with the movemeter script v.2.8.50:
http/1.1 400 bad request.

If i look up the film directly in moviemeter https://www.moviemeter.nl/film/1135243
and copy the link into the search box it works however

The info i retrieved for the field extra's seems also not correct:
Releasedatum: 17 juni 2021
<a href="https://moviemeter.nl/toplijst/film/534 ... 021"><span class="tag bluetag"><B>15e</B> in Top 50 beste films uit 2021</span></a>
Ververs datum: 21 juni 2021

What is the solution?
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Re: Moviemeter.nl problem

Post by antp »

The error when using the search is still to be investigated/fixed.

But I already fixed the one with the comments, as version 2.8.51
pele
Posts: 72
Joined: 2009-02-21 20:25:57

Re: Moviemeter.nl problem

Post by pele »

Hi,

any idear if, can and when the "bad"error will be solved?

I see in the comments not only the "realease datum" but also the "ververs datum".
the "originele titel" is also not filled in properly and the "regisseur" field is filled in with "!"

Thx Bianca
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Re: Moviemeter.nl problem

Post by antp »

I should take some time to check that. I don't know if I can solve the 'bad request' problem but the others one should be easy to fix.
Freeco
Posts: 4
Joined: 2006-08-23 18:46:00
Location: Deinze, België
Contact:

Re: Moviemeter.nl problem

Post by Freeco »

bump ;)

wouldn't know how to troubleshoot this on my own, so I have to rely on someone else to fix this. I also get 'HTTP/1.1 400 Bad Request' error with the Moviemeter.nl script the past could of weeks.
Till now I'm relying on the IMDB script instead, but I'd prefer using the dutch site again.
If you'd find some time for this... :grinking:
Post Reply