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.
pele
Posts: 72
Joined: 2009-02-21 20:25:57

Post by pele »

Raoul_Volfoni wrote:Hi,

Not sure to understand well your question, but yes you can modify yourself the script with anykind of text editor or the editor include in AMC.
For the release info, i just changed one line, but here is the complete code block for release info.

Code: Select all

  // Release information
  if GetOption('Release info') <> 0 then
  begin
    Release_info := TextBetween(Release_info, '">', '</ul>');
    Release_info := StringReplace(Release_info, '<li>', #13#10);
    HTMLRemoveTags(Release_info);
    HTMLDecode(Release_info);
    Release_info := deleteMultiSpace(FullTrim(Release_info));
    if Release_info <> '' then
    begin
      Release_info := 'Release info :'+ #13#10 + Release_info + #13#10#13#10;
    end;
  end
  else
  begin
    Release_info := '';
  end;
Yes you understood my question. If you forget to change the release info in future versions i can do it myself or you can add the line permantly :)

Thanks again
Raoul_Volfoni
Posts: 863
Joined: 2006-08-31 23:58:18

Post by Raoul_Volfoni »

The release info feature is permanently present in the script, but due to changes on moviemeter website, we have to correct the script often. And sometimes i don't have time or i forgot to check all the feature of the script. But i count on you all to tell us if something goes wrong with the script :D
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

thanks, updated on the server
wvd
Posts: 96
Joined: 2006-08-02 22:21:20
Location: Nederland

Re: Moviemeter.nl problem

Post by wvd »

I'm sorry to say that there is already again a problem with the script.
There is oviously again something chanced on the website, the script doesn't find any movie anymore
Hope someone can fix it.

Thanx!

Greetings Wim

ps.
If you first search the movie on moviemeter.nl then copy the URL in the URL field
it will find the movie, when you have the option "batch mode" on.
pele
Posts: 72
Joined: 2009-02-21 20:25:57

Re: Moviemeter.nl problem

Post by pele »

same thing here....
Raoul_Volfoni
Posts: 863
Joined: 2006-08-31 23:58:18

Re: Moviemeter.nl problem

Post by Raoul_Volfoni »

Hi,

It's probably a cookie problem.(see picture)
Image

may be due to the cookie entry regarding the expiration date

Code: Select all

<script type="text/javascript">
                document.getElementsByClassName('CookiesOK')[0].addEventListener('click', function() {

                    var date = new Date();
                    date.setYear(date.getFullYear() + 1);
                    document.cookie = "cok=1; expires=" + date.toUTCString() + "; path=/";

                    location.reload();
                }); 
                </script>
Unfortunately, I've no time right now to look for a solution :(
wvd
Posts: 96
Joined: 2006-08-02 22:21:20
Location: Nederland

Re: Moviemeter.nl problem

Post by wvd »

Raoul,

Thanks for looking so far, I can wait until you have time.
I have a work around so no problem.
I will be patient

Greetings
Wim
StefMir
Posts: 55
Joined: 2011-05-31 19:07:43

Re: Moviemeter.nl problem

Post by StefMir »

Hope you can find a solution Raoul, t.i.a.

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

Re: Moviemeter.nl problem

Post by antp »

If he does not have time I'll try to take a look one of these days, but I also have to find some time to make a proper beta release for the program itself.
Raoul_Volfoni
Posts: 863
Joined: 2006-08-31 23:58:18

Re: Moviemeter.nl problem

Post by Raoul_Volfoni »

HI all,

@ antp
For multiple reasons I can't currently take care of scripts right now.
Sorry Antoine for the extra workload.
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Re: Moviemeter.nl problem

Post by antp »

No problem, all the work you did previously on this script and other was very appreciated, I can also sometimes take time on these ;)
I forgot it a little, I'll try to check that in the next days, now that the beta version of AMC is released.
Motorboot
Posts: 1
Joined: 2018-04-16 09:43:06

Re: Moviemeter.nl problem

Post by Motorboot »

I'm sorry to say that there is already again a problem with the script,Vs 2.8.43 dd 30-01-2018 - 19:01:36
There is oviously again something chanced on the website, the script doesn't find any movie anymore
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 »

What do you mean by "again"? There is a problem since two weeks :D
I should take some time to fix it, tomorrow maybe ;)
wvd
Posts: 96
Joined: 2006-08-02 22:21:20
Location: Nederland

Re: Moviemeter.nl problem

Post by wvd »

That would be very nice Antoine :) :)

Thanks,
Wim
handelaar
Posts: 11
Joined: 2013-03-13 09:20:56
Location: Netherlands

Re: Moviemeter.nl problem

Post by handelaar »

@Antoinne - thanks for willing to fix the problem.
@Wim - Thanks for the tip ' if you first search the movie on moviemeter.nl then copy the URL in the URL field
it will find the movie ', so we can still move forward with this.
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Re: Moviemeter.nl problem

Post by antp »

It was just a tiny change: a <li> tag in the search result that had extra attributes and then could not be found when searching for <li>, so now it is searching for <li instead.
Updated as v 2.8.44
Sorry for the delay for such a small fix required
wvd
Posts: 96
Joined: 2006-08-02 22:21:20
Location: Nederland

Re: Moviemeter.nl problem

Post by wvd »

Thanks for fixing the problem Antoine! :clapping: :grinking:

It works fine again!

Kindest regards
Wim
StefMir
Posts: 55
Joined: 2011-05-31 19:07:43

Re: Moviemeter.nl problem

Post by StefMir »

thanks!!!!
wvd
Posts: 96
Joined: 2006-08-02 22:21:20
Location: Nederland

Re: Moviemeter.nl problem

Post by wvd »

Hi,

There's another problem with the script, the trailer didn't work anymore.
You have to give permission to show the trailer on Moviemeter.nl.

A friend of mine solved the problem, here is the solution to fix it:

OLD:

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

NEW:

// 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;

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

Re: Moviemeter.nl problem

Post by antp »

Thanks
Post Reply