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.
Post Reply
wvd
Posts: 96
Joined: 2006-08-02 22:21:20
Location: Nederland

Post by wvd »

Hello Raoul,

Thanks again for fixing allmost the whole problem. :grinking:

It works , only the one you noticed "Number of votes" does not work allready.

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

Post by wvd »

Hi Raoul,

I've tried somethings and if you change this line (157):

Value := TextBetween(PageText, 'gemiddelde <b>', '</b>'); // Thanks wvd


for this line:

Value := TextBetween(PageText, 'gemiddelde <b itemprop="ratingValue">', '</b>'); // Thanks wvd


It will work again,
I don't know HTML, but by trying i've got the problem solved, I think.
Funny that I did this the last time for the Rating too.
I see now that my name is at the end of the line :lol: :lol:

Greetings
Wim
Raoul_Volfoni
Posts: 863
Joined: 2006-08-31 23:58:18

Post by Raoul_Volfoni »

Hi wvd,

I'm confused. :hum:
wvd wrote:It works , only the one you noticed "Number of votes" does not work allready.
For me, "Number of votes" (stemmen) works. It appears in comments field in AMC, only if you have set the option "Number of votes" to :
1 -> Yes in Comments Field
The default setting is 0 -> No.

wvd wrote:I've tried somethings and if you change this line (157):

Value := TextBetween(PageText, 'gemiddelde <b>', '</b>'); // Thanks wvd


for this line:

Value := TextBetween(PageText, 'gemiddelde <b itemprop="ratingValue">', '</b>'); // Thanks wvd


It will work again,
I don't know HTML, but by trying i've got the problem solved, I think.
Funny that I did this the last time for the Rating too.
gemiddelde is for rating and not for number of votes (stemmen) ... so, you solved the rating problem, that i didn't see, for the second time :lol:

wvd wrote:I see now that my name is at the end of the line :lol: :lol:
;)

Tell me, if we are clear on the stemmen-gemiddelde think. If so, i will send a new version of the script to Antoine with your Rating correction.
wvd
Posts: 96
Joined: 2006-08-02 22:21:20
Location: Nederland

Post by wvd »

Sorry Raoul,
Your right that was not the "number of votes"problem. Haha
And yes it was the rating problem.

But it's fixed when you change the line, you can send it to Antoine.


But I got another problem that I can't fix, its a problem only for me because I use the field size to get the agelimit of a movie, it worked untill now. They changed something but now I don't know what to change to get the number imported.

This is the script I used:

// Size
Value := TextBetween(PageText, '<div id="rating_icons"><IMG alt="', ' jaar"');
SetField(fieldSize, Value);

I hope you can help me on the way.

Greetings
Wim
Raoul_Volfoni
Posts: 863
Joined: 2006-08-31 23:58:18

Post by Raoul_Volfoni »

Hi,

I'm going to send to Antoine a new version of the script with your Rating correction and a new "Certification" feature with 2 options :
0 -> No
1 -> Store in Certification field (Need at least 4.2.0 AMC version), Otherwise store in FileSize field.*

* Beware, because imdb link is already store in filesize field so it will replace the link.

The new 4.2.0 beta version of AMC provided by soulsnake included new fields as "Certification" one ... and many other things ... more infos about beta version of AMC here

Meanwhile you can fix your script with this :

Code: Select all

// Size
Value := TextBetween(PageText, '<div id="rating"><img alt="', ' jaar"');
SetField(fieldSize, Value); 
Raoul_Volfoni
Posts: 863
Joined: 2006-08-31 23:58:18

Update Moviemeter 2.8.17

Post by Raoul_Volfoni »

Hi,

The Moviemeter.nl script in 2.8.17 version is available on antp's server.
Thanks again to Antoine ;)

Changelog :

- [Fix] Rating (Thanks to wvd)
- [Add] "Certification" option with 2 choices :
0 -> No
1 -> Store in Certification field (Need at least 4.2.0 AMC version), Otherwise store in FileSize field.*

* Beware, because the imdb link, according to what imdb link option you use, may already be stored in file size field so it will replace the link.
wvd
Posts: 96
Joined: 2006-08-02 22:21:20
Location: Nederland

Post by wvd »

Hi Raoul,
Meanwhile you can fix your script with this :
Thanx, it works good :grinking: :grinking:

And thanks for fixing the other problems :)
Greetings
Wim
Teebee
Posts: 111
Joined: 2005-06-04 10:46:56

Post by Teebee »

It still picks the wrong movie when you have multiple results
StefMir
Posts: 55
Joined: 2011-05-31 19:07:43

Post by StefMir »

many thanks again :) :) :)
Raoul_Volfoni
Posts: 863
Joined: 2006-08-31 23:58:18

Update MovieMeter 2.8.18

Post by Raoul_Volfoni »

Hi,

The Moviemeter.nl script in 2.8.18 version is available on antp's server.

Changelog :

- [Fix] Picked the good "movie/link" in the list. (Thanks to Teebee for noticing)
- [Fix] Gets the large image.
- [Fix] User comments are back !! presented as follow :

User_Name | User_Note | Message_Date
Review

etc ..
StefMir
Posts: 55
Joined: 2011-05-31 19:07:43

Post by StefMir »

thanks again Raoul_Volfoni!
Teebee
Posts: 111
Joined: 2005-06-04 10:46:56

Post by Teebee »

Thank you for fixing it ! (Again)
Raoul_Volfoni
Posts: 863
Joined: 2006-08-31 23:58:18

Update MovieMeter 2.8.19

Post by Raoul_Volfoni »

Hi guys ... and happy new year.

The Moviemeter.nl script in 2.8.19 version is available on antp's server.
You can find this update here : http://update.antp.be/amc/scripts/
Or You can use the [UPDATE_SCRIPTS] script to ... update your scripts !!

Changelog :

- [Fix] Country
- [Fix] Translated Title
- [Fix] Description
- [Fix] Rating
- [Fix] Number of votes (Stemmen)
- [Fix] Picture
- [Fix] Comments
- [Fix][Mod] Certification *

* The certification now include all age type (alle leeftijden) and follow the Kijkwijzer system describe here :
  • AL
    6
    9
    12
    16
wvd
Posts: 96
Joined: 2006-08-02 22:21:20
Location: Nederland

Post by wvd »

Thanks Raoul,

I just had post a request to fix it.
I delete it very fast when I saw you Fixed it allready.

Thanks very much :grinking: :grinking:

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

Post by wvd »

Raoul,

It doesn't work because I got a message when I use the script:
unit is not found in line 4

Sorry, I don't know what it means

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

Post by antp »

Maybe you deleted stringutils1.pas from the scripts folder?
wvd
Posts: 96
Joined: 2006-08-02 22:21:20
Location: Nederland

Post by wvd »

Raoul,

You're absolutely right!!!


I thought I make it myself easy and delete everything but the moviemeter script.

Stupid, sorry!!
Thanks for the solution

Greetings,
Wim
Raoul_Volfoni
Posts: 863
Joined: 2006-08-31 23:58:18

Post by Raoul_Volfoni »

wvd wrote:Raoul,

You're absolutely right!!!
It was antp's answer ... not mine ... :D

A large amount of script require an external file in order to work properly.
You can delete any *.ifs file you don't want, but don't touch *.pas file ... ;)
wvd
Posts: 96
Joined: 2006-08-02 22:21:20
Location: Nederland

Post by wvd »

Sorry Antoine, thank you for the tip.
I will not delete the *.pas files anymore. :innocent:

I don't know who add it to the script but,
also thanks for adding the Certification, I didn't saw it before. :grinking:

Greetings,
Wim
Raoul_Volfoni
Posts: 863
Joined: 2006-08-31 23:58:18

Post by Raoul_Volfoni »

wvd wrote:... I don't know who add it to the script but,
also thanks for adding the Certification, I didn't saw it before. ...
:hum: ... hum ... look at this
A little tired ? ... :hihi:
Post Reply