[REQ] Problem with import from moviemeter

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

[REQ] Problem with import from moviemeter

Post by wvd »

Hallo ls,

Er is weer een probleem met het importeren van moviemeter.
Het gaat fout bij het veld van de landen.

Wanneer je bijvoorbeeld "inception" wil importeren dan wordt dit geimporteerd:

<span class="rating_icons"><IMG alt="12 jaar" title="12 jaar" src="http://www.moviemeter.nl/images/kijkwijzer_12.png" /> <IMG alt="geweld" title="geweld" src="http://www.moviemeter.nl/images/kijkwijzer_violence.png" /> <IMG alt="angst" title="angst" src="http://www.moviemeter.nl/images/kijkwijzer_fear.png" /></span>Verenigde Staten / Verenigd Koninkrijk

Ik hoop dat iemand dit wil oplossen.

Alvast bedankt!!

Wim

There's a problem with the import from MOVIEMETER.

When you import the movie "Inception" then this will be imported in the field country:

<span class="rating_icons"><IMG alt="12 jaar" title="12 jaar" src="http://www.moviemeter.nl/images/kijkwijzer_12.png" /> <IMG alt="geweld" title="geweld" src="http://www.moviemeter.nl/images/kijkwijzer_violence.png" /> <IMG alt="angst" title="angst" src="http://www.moviemeter.nl/images/kijkwijzer_fear.png" /></span>Verenigde Staten / Verenigd Koninkrijk

I hope someone will fix this

Thank You!!

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

Post by antp »

Hi,
In the source, search for "// Country"
Just above that, add these two lines:
HTMLRemoveTags(Value);
Value := Trim(Value);
It seems to work for "old movies" (i.e. those which did not had problems) and for Inception.
I'll update the script on my server so you can also get it with "update scripts" script (or manual download).
Let me know if this causes problems with other movies, as I did not test it much.
Last edited by antp on 2010-11-03 11:32:52, edited 1 time in total.
wvd
Posts: 96
Joined: 2006-08-02 22:21:20
Location: Nederland

Post by wvd »

Hello Antoine,

Thank you for fixing the problem.
I added the 2 lines.

As far as I used it, it works good.

Thanks very much :grinking:
Wim
Post Reply