Probleem met moviemeter.nl
Probleem met moviemeter.nl
Hallo ls,
Helaas is er wat op de site van Moviemeter wat veranderd en gaat laden van landen met het script van moviemeter niet meer goed als er meerdere landen zijn.
Het lukt me niet om dit goed te krijgen omdat ik html niet goed ken.
Hieronder het stukje waar het volgens mij fout gaat:
Value := TextBetween(PageText, '<div id="film_info"', '<br />');
Line := RemainingText;
Value := TextAfter(Value, 'script></div>');
// Country
if (GetOption('AllCountries') = 0) and (Pos(' / ', Value) > 0) then
Value := TextBefore(Value, '<br />', '');
HTMLDecode(Value);
SetField(fieldCountry, Value);
Hopelijk wil iemand dit voor mij (en anderen) oplossen.
Alvast hartelijk bedankt
Groeten,
Wim
Helaas is er wat op de site van Moviemeter wat veranderd en gaat laden van landen met het script van moviemeter niet meer goed als er meerdere landen zijn.
Het lukt me niet om dit goed te krijgen omdat ik html niet goed ken.
Hieronder het stukje waar het volgens mij fout gaat:
Value := TextBetween(PageText, '<div id="film_info"', '<br />');
Line := RemainingText;
Value := TextAfter(Value, 'script></div>');
// Country
if (GetOption('AllCountries') = 0) and (Pos(' / ', Value) > 0) then
Value := TextBefore(Value, '<br />', '');
HTMLDecode(Value);
SetField(fieldCountry, Value);
Hopelijk wil iemand dit voor mij (en anderen) oplossen.
Alvast hartelijk bedankt
Groeten,
Wim
Hi,
My Dutch is bad so I'll reply in English (I hope you understand it).
If I understood correctly your message, you submit a change to the script to fix a problem when importing country info ?
Thanks for that
Just one comment:
you replacedby
but I guess it should be
Do you have an example of movie with multiple countries to test that?
My Dutch is bad so I'll reply in English (I hope you understand it).
If I understood correctly your message, you submit a change to the script to fix a problem when importing country info ?
Thanks for that
Just one comment:
you replaced
Code: Select all
if (GetOption('AllCountries') = 0) and (Pos(' / ', Value) > 0) then
Value := TextBefore(Value, ' / ', '');
Code: Select all
if (GetOption('AllCountries') = 0) and (Pos(' / ', Value) > 0) then
Value := TextBefore(Value, '<br />', '');
Code: Select all
if (GetOption('AllCountries') = 0) and (Pos('<br />', Value) > 0) then
Value := TextBefore(Value, '<br />', '');
Hello Antoine,
Proberbly I'm doing something wrong, but when I use the downloaded script from 3 july with the following option for country:
// Country
if (GetOption('AllCountries') = 0) and (Pos(' / ', Value) > 0) then
Value := TextBefore(Value, ' / ', '');
HTMLDecode(Value);
SetField(fieldCountry, Value);
Then there will be just one country imported from the movie "Surviving with wolves"
And when I use your last update from the reply above:
// Country
if (GetOption('AllCountries') = 0) and (Pos('<br />', Value) > 0) then
Value := TextBefore(Value, 'br />', '');
HTMLDecode(Value);
SetField(fieldCountry, Value);
All countries will be imported.
As I said before my knowing of html is very very little but do you mean that I have to change it to this:
// Country
if (GetOption('AllCountries') = 1) and (Pos(' / ', Value) > 0) then
Value := TextBefore(Value, ' / ', '');
HTMLDecode(Value);
SetField(fieldCountry, Value);
Then it also get more countries
Thanks for replying
Wim
Proberbly I'm doing something wrong, but when I use the downloaded script from 3 july with the following option for country:
// Country
if (GetOption('AllCountries') = 0) and (Pos(' / ', Value) > 0) then
Value := TextBefore(Value, ' / ', '');
HTMLDecode(Value);
SetField(fieldCountry, Value);
Then there will be just one country imported from the movie "Surviving with wolves"
And when I use your last update from the reply above:
// Country
if (GetOption('AllCountries') = 0) and (Pos('<br />', Value) > 0) then
Value := TextBefore(Value, 'br />', '');
HTMLDecode(Value);
SetField(fieldCountry, Value);
All countries will be imported.
As I said before my knowing of html is very very little but do you mean that I have to change it to this:
// Country
if (GetOption('AllCountries') = 1) and (Pos(' / ', Value) > 0) then
Value := TextBefore(Value, ' / ', '');
HTMLDecode(Value);
SetField(fieldCountry, Value);
Then it also get more countries
Thanks for replying
Wim
tried all solution handed but didn't work
Hi,
I just tried the solution in the forum, updated the script, tried about everything but nothing seems to work. Either it changed once again or the solution didn't work, don't know but I can't seem to fetch the country... any solutions? I use the latest script available today.
I just tried the solution in the forum, updated the script, tried about everything but nothing seems to work. Either it changed once again or the solution didn't work, don't know but I can't seem to fetch the country... any solutions? I use the latest script available today.
What version of the script do you use?
For me it works...:
http://img840.imageshack.us/img840/2191/59497943.png
http://img826.imageshack.us/img826/2139/82842585.png
For me it works...:
http://img840.imageshack.us/img840/2191/59497943.png
http://img826.imageshack.us/img826/2139/82842585.png