Author Topic: Allmovie.com https  (Read 53322 times)

0 Members and 1 Guest are viewing this topic.

Offline afrocuban

  • Moderator
  • *****
  • Posts: 476
    • View Profile
Allmovie.com https
« on: October 10, 2017, 11:09:08 pm »
One more https transition. Allmovie.com script isn't possible to use anymore in PVD?

Kind regards.

Offline UtNut

  • User
  • ***
  • Posts: 74
    • View Profile
Re: Allmovie.com https
« Reply #1 on: October 11, 2017, 08:50:10 pm »

Same here, is there chance to work around https? Really love their comments.
1984 was NOT supposed to be an instruction manual

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2713
    • View Profile
Re: Allmovie.com https
« Reply #2 on: October 12, 2017, 01:28:37 pm »
Tests Proxomitron. I think this would be an ideal solution for your problems. I also attach a default.cfg file that already has an added solution for the Allmovie.com https connection. How and what is described in topic:
Proxomitron - next https solution for PVD.

I did not test if it works, because at present I have many family responsibilities (my father is seriously ill) and there is no time for testing.

BTW:
I will know more about this somewhere around the first of November, how and what will happen in the next few months to the end of March of the following year.


default.cfg file is attach.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline afrocuban

  • Moderator
  • *****
  • Posts: 476
    • View Profile
Re: Allmovie.com https
« Reply #3 on: October 14, 2017, 02:15:59 am »
Dear Ivek,

So sorry to hear about your father. Wish him well, please!

Thank you for your kind answer. Following your proxomitron guide I actually made it work for allmovie.com! The only strange thing is that it doesn't import AllMovie synopsis anymore.

Kind regards




Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2713
    • View Profile
Re: Allmovie.com https
« Reply #4 on: October 14, 2017, 08:23:44 am »
Dear Ivek,

So sorry to hear about your father. Wish him well, please!

Thanks.

Thank you for your kind answer. Following your proxomitron guide I actually made it work for allmovie.com! The only strange thing is that it doesn't import AllMovie synopsis anymore.

Allmovie.com script requires mass updates, which I can not do with the current situation. But I hope that as soon as possible,
so stay tuned for messages.

At the moment and quickly, I made corrections only in the ParseSearchResults procedure so that the script finds search results for a specific movie.

Code: [Select]
procedure ParseSearchResults(HTML : String);
var
curPos, endPos : Integer;
Title, Year, URL, director : String;
begin
//List of other site number where search page :
TabNumber := [''];

// curPos := Pos('<option value="movies" selected>', HTML);
// curPos := Pos('div class="results-section movies">', HTML);
curPos := Pos('<li class="movie">', HTML);
if curPos < 1 then
Exit;

LogMessage('Parsing search results...');

//curPos := PosFrom('<a href="http://www.allmovie.com/movie/', HTML, curPos);
curPos := PosFrom('<a href="https://www.allmovie.com/movie/', HTML, curPos);
while curPos > 0 do begin
endPos := PosFrom('">', HTML, curPos);
URL := Copy(HTML, curPos + 9, endPos - curPos - 9);
    URL     := StringReplace(URL, 'https://', 'http://', True, True, False);

curPos := PosFrom('">', HTML, curPos)+2;
endPos := PosFrom('</a>', HTML, curPos);
Title := Copy(HTML, curPos, endPos - curPos);

curPos := PosFrom('</a>', HTML, curPos)+4;
endPos := PosFrom('</div>', HTML, curPos);
Year := RemoveTags(Trim(Copy(HTML, curPos, endPos - curPos)), false);

// curPos := PosFrom('">', HTML, curPos)+2;
// endPos := PosFrom('</a></dd>', HTML, curPos);
// director := RemoveTags(Trim(Copy(HTML, curPos, endPos - curPos)), false);

AddSearchResult(Title+' '+Year, '', '', URL, '');
curPos := PosFrom('<a href="https://www.allmovie.com/movie/', HTML, curPos);

end;

AddSearchResult('', '', '', '', '');

//Get Name of movie to search :               
    MovieName := GetFieldValue(2);
    Explodestring(MovieName,TabMovieName,#32);
    MovieName := '';
    For I:=low(TabMovieName) to High(TabMovieName) do
    Begin
    MovieName := MovieName + #43 + TabMovieName[I];
MovieName := StringReplace(MovieName, '/', '-', true, false, true);
    end;
//Add Links to Page with other sites in TabNumber:
    For I := Low(TabNumber) to High(TabNumber) do
    Begin
URL := 'http://www.allmovie.com/search/movies/'+MovieName;
//AddSearchResult('Search in '+MovieName+' on AllMovie.com','Movie results','',URL,'');
AddSearchResult('Search in '+MovieName+' on AllMovie.com','','',URL,'');
  end;
 
end;
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2713
    • View Profile
Re: Allmovie.com https
« Reply #5 on: October 15, 2017, 08:45:43 am »
AllMovie.com_new_HTTPS script
version 1.1.2.5

I managed to fix the AllMovie.com_new script, which now has a new name and is now called the AllMovie.com_new_HTTPS script.

There may be some other errors, but maybe they might be corrected later.

AllMovie.com_new_HTTPS script  is attached.




For all guests:

You can find a link to download the script in AllMovie.com_new_HTTPS Movie Links topic.
« Last Edit: October 15, 2017, 09:05:55 am by Ivek23 »
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline afrocuban

  • Moderator
  • *****
  • Posts: 476
    • View Profile
Re: Allmovie.com https
« Reply #6 on: October 17, 2017, 01:50:21 am »
Thank you, Ivek. The script works for me, but only with Proxomitron. Thank you.

Kind regards,

Offline VVV_Easy_Programing

  • Older Power User
  • *****
  • Posts: 199
    • View Profile
Re: Allmovie.com https
« Reply #7 on: October 17, 2017, 06:17:01 pm »
Best wishes for your father, Ivek.

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2713
    • View Profile
Re: Allmovie.com https
« Reply #8 on: October 17, 2017, 06:31:58 pm »
Thank you, Ivek. The script works for me, but only with Proxomitron. Thank you.

Kind regards,

I am pleased. This was the only possible and quick solution to my current situation, which I could do for you all.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2713
    • View Profile
Re: Allmovie.com https
« Reply #9 on: October 17, 2017, 06:38:13 pm »
Best wishes for your father, Ivek.

Thanks. Fortunately, his situation is getting better.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2713
    • View Profile
Re: Allmovie.com https
« Reply #10 on: October 22, 2017, 12:40:33 pm »
AllMovie.com_new_HTTPS script
version 1.1.2.6

Repair some errors. So far it was possible to download information only for actors and director. From now on, there is also the possibility of downloading information for the writer, producer and composer.

New version of AllMovie.com_new_HTTPS script  is attached.




For all guests:

You can find a link to download the script in AllMovie.com_new_HTTPS Movie Links topic.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline UtNut

  • User
  • ***
  • Posts: 74
    • View Profile
Re: Allmovie.com https
« Reply #11 on: November 30, 2017, 07:39:37 pm »
I'm always amazed how you're able to work around these things Ivek, even HTTPS doesn't stop you!
A clever constructed combination with Proxomitron allows this noob to gather information wanted from, in my case, Allmovie.com. I'm thanking you wholeheartedly for the many contributions you made and for keeping PVD alive, making it still the best movie database there is. I'm slowly approaching 5,000 records and I haven't found anything like it. I will also wish you all the best fixing your eyesight problems, if it would be helpful to you, my father in law of 86 years old just had his cataracts operations and now is able to see clearly and sharply without his glasses he was wearing for more than 66 years.
Many thanks again.

UtNut
1984 was NOT supposed to be an instruction manual

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2713
    • View Profile
Re: Allmovie.com https
« Reply #12 on: December 02, 2017, 07:54:31 pm »
I'm always amazed how you're able to work around these things Ivek, even HTTPS doesn't stop you!
A clever constructed combination with Proxomitron allows this noob to gather information wanted from, in my case, Allmovie.com. I'm thanking you wholeheartedly for the many contributions you made and for keeping PVD alive, making it still the best movie database there is. I'm slowly approaching 5,000 records and I haven't found anything like it. I will also wish you all the best fixing your eyesight problems, if it would be helpful to you, my father in law of 86 years old just had his cataracts operations and now is able to see clearly and sharply without his glasses he was wearing for more than 66 years.
Many thanks again.

UtNut

Thanks a lot.
« Last Edit: December 03, 2017, 03:59:41 pm by Ivek23 »
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline Todd89

  • Member
  • *
  • Posts: 2
    • View Profile
Re: Allmovie.com https
« Reply #13 on: February 28, 2018, 01:14:36 pm »
Hello Ivek

Is Allmovie script still working? It's not working for me .
I Installed  Proxomitron as you said in (Proxomitron - next https solution for PVD) Topic and download (AllMovie.com_new_HTTPS script version 1.1.2.6) But still
not working and gives me this Error: IOHandler Value Is Not Valid.


Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2713
    • View Profile
Re: Allmovie.com https
« Reply #14 on: February 28, 2018, 03:37:24 pm »
Hello Ivek

Is Allmovie script still working? It's not working for me .
I Installed  Proxomitron as you said in (Proxomitron - next https solution for PVD) Topic and download (AllMovie.com_new_HTTPS script version 1.1.2.6) But still
not working and gives me this Error: IOHandler Value Is Not Valid.

The IOHandler Value Is Not Valid message means you probably did not run the Proxomitron program or you do not have the correct default.cfg file in the Proxomitron program folder. Check to see if it will work and let me know, then we'll see if the script needs to be fixed.

You can also find the default.cfg file in this link:
http://www.videodb.info/forum_en/index.php/topic,4115.msg20312.html#msg20312
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2713
    • View Profile
Re: Allmovie.com https
« Reply #15 on: December 24, 2019, 08:30:43 pm »
AllMovie.com_new_HTTPS script
version 1.1.2.7

Repair for small errors with poster code.

New version of AllMovie.com_new_HTTPS script  is attached.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2713
    • View Profile
Re: Allmovie.com https
« Reply #16 on: December 26, 2019, 01:10:51 pm »
AllMovie.com_new_HTTPS script
version 1.1.2.8

Repair for small corrections in the code for ParseMovie procedure.

New version of AllMovie.com_new_HTTPS script  is attached.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline RazorHall

  • User
  • ***
  • Posts: 67
    • View Profile
Re: Allmovie.com https
« Reply #17 on: December 27, 2019, 04:02:55 pm »
I've downloaded the file and put it in the scripts folder, but Allmovie still doesn't appear as an import option, or in the plugins section under Preferences.  Did I miss a step?

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2713
    • View Profile
Re: Allmovie.com https
« Reply #18 on: December 27, 2019, 09:19:17 pm »
I've downloaded the file and put it in the scripts folder, but Allmovie still doesn't appear as an import option, or in the plugins section under Preferences.  Did I miss a step?

Run PVD with debug.bat, then open log.txt to see if the script has errors or if it is in the Script folder at first. You copied AllMovie.com HTTPS.psf to the right folder, or not, it is also possible that it cannot be viewed as previously mentioned.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline RazorHall

  • User
  • ***
  • Posts: 67
    • View Profile
Re: Allmovie.com https
« Reply #19 on: December 28, 2019, 12:42:56 am »
Okay, here's what the log file said about the Allmovie script:

(12/27/2019 5:40:41 PM) Compiling script: AllMovie.com HTTPS.psf
(12/27/2019 5:40:41 PM) Could not compile script: AllMovie.com HTTPS.psf
[Error] (402:75): Unknown identifier 'AllMovie'