[HU] Xpress.hu script not working

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
pamp
Posts: 8
Joined: 2007-12-19 19:06:32

[HU] Xpress.hu script not working

Post by pamp »

Hello! xpress.hu script doesn't work :( Please help!

Nem működik az xpress.hu script, valaki tud segíteni?

Thanks

Kösz!
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Post by bad4u »

xpress.hu.ifs version 1.3:
http://www.bad4u.741.com/full/xpress.hu.ifs (copy link into a NEW browser window !)

Fixed:
- search results list (nothing found)
- director (missing on some films)
- country (showed some html code)
- year (missing)

I did some short tests, but please test yourself and let me know if there are more errors - some words/values on hungarian websites are not that easy to identify for me.

@antp: The script could be uploaded, even if there have not been many tests yet - as the old one does not run at all ;)
pamp
Posts: 8
Joined: 2007-12-19 19:06:32

Post by pamp »

Thank You! :) I like Ant Movie Catalog :grinking:
pamp
Posts: 8
Joined: 2007-12-19 19:06:32

Post by pamp »

Felhívnám a figyelmét a magyar usereknek, hogy több oldalas találatnál nem látja csak az első oldalt!

Bad4u! It's work, but more hits it shows only first page.

Example: Rejtély

I searched:

Rejtély
(Caché - 2005)
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Post by bad4u »

pamp wrote:Bad4u! It's work, but more hits it shows only first page.
You are right, but neither the current script does nor the previous version had a function to show multiple result pages.

Maybe xpress.hu lowered the number of films they show on the "standard" results page ? You can change this behaviour if you add a &MAXDB=100 (for a max of 100 instead of 15 films) to the search address line :

Code: Select all

AnalyzePage('http://www.xpress.hu/dvd/keres.asp?keres='+AddHTML(MovieName)+'&VID=12219327439007175&GOMB=1');
to

Code: Select all

AnalyzePage('http://www.xpress.hu/dvd/keres.asp?keres='+AddHTML(MovieName)+'&VID=12219327439007175&GOMB=1&MAXDB=100');
I will add that with a small update (probably tomorrow), that will add some more improvements to the results list.
pamp
Posts: 8
Joined: 2007-12-19 19:06:32

Post by pamp »

Thank You very much :grinking: It's great! Merry Christmas ;)
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Post by bad4u »

So here is the promised update to version 1.3.2:
http://www.bad4u.741.com/full/xpress.hu.ifs (copy link into a NEW browser window !)

Fixed:
- enlarged results list (a max of 100 instead of 15 titles)
- original title and year added to results list (were still missing)

If something is still missing, please let me know.
Begi
Posts: 5
Joined: 2008-01-27 12:25:37

Post by Begi »

Hello,

It is not working for me. The window pop-up to enter the movie title and something happens, but than no pop-up window to select the film.
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Post by bad4u »

Still working fine here..

Make sure you have downloaded latest version 1.3.2 using "Update_Scripts" or manually from http://update.antp.be/amc/scripts/ . You can find your current version when you select the script on the scripts list and look on the left bottom corner.

If you have latest version make sure you can reach xpress.hu with your browser. There might also be problems if you installed some kind of antivirus/firewall software, that blocks AMC (to check this, try other scripts).
Begi
Posts: 5
Joined: 2008-01-27 12:25:37

Post by Begi »

bad4u wrote:Still working fine here..

Make sure you have downloaded latest version 1.3.2 using "Update_Scripts" or manually from http://update.antp.be/amc/scripts/ . You can find your current version when you select the script on the scripts list and look on the left bottom corner.

If you have latest version make sure you can reach xpress.hu with your browser. There might also be problems if you installed some kind of antivirus/firewall software, that blocks AMC (to check this, try other scripts).
I've got the latest version, I can reach the webpage. If I tried with the original version included in the install, it reported that no movies were found. But now nothing. I can use another scripts so its probably not my firewall.
What else can be the problem?
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Post by bad4u »

Please try this version:
http://www.bad4u.741.com/beta/xpress.hu_132b.ifs (copy link into a NEW browser window !)

I've modified the search line a little bit in this version.
Btw.. have you tried different films or is it only one film ?
Begi
Posts: 5
Joined: 2008-01-27 12:25:37

Post by Begi »

bad4u wrote:Please try this version:
http://www.bad4u.741.com/beta/xpress.hu_132b.ifs (copy link into a NEW browser window !)

I've modified the search line a little bit in this version.
Btw.. have you tried different films or is it only one film ?
Thx, it isn't better. I tried so many films:(
After typing in the film name a window pop-up to resolve name->done-> downloading something and the window disappears and nothing happens, but in the window I can see that the script is still running.
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Post by bad4u »

Strange.. :/

I'd like to know what's going wrong, but as I cannot reproduce this problem, I can just give some more ideas what to try..

1. Backup your catalogs and reinstall AMC. There are some postings on the forum, where a problem could not be explained until a new installation of AMC solved it. But it's just a try..

2. This might cost you some minutes: Try to locate the problem more precise.
Go to the scripts list, select xpress.hu and then hit editor button. Now set breakpoints on all lines. To do this click on the left side before every line number, the line should turn red then. When you turned all lines red, hit the run button on the menu. Now the script starts, but it will stop on every line until you hit run again. Some parts of the script might be repeated (like "function RemoveHTML") , you can delete these breakpoints after first run to speed up testing. Try to find the line where it hangs and does not switch to a new line number, a small green arrow shows which line the script is running. Maybe you can tell which line/part of the script hangs up then.

Btw.. are you using XP or Vista ?
Begi
Posts: 5
Joined: 2008-01-27 12:25:37

Post by Begi »

Ok, I tried it:
procedure AddMoviesTitles(Page: TStringList; var LineNr: Integer);
var
Line: string;
MovieTitle, MovieAddress,OTitle: string;
StartPos: Integer;
begin
repeat
LineNr := LineNr + 1;
Line := Page.GetString(LineNr);
StartPos := pos('0000" size="2">', Line);
if StartPos > 0 then

Here it enters in an endless loop.

I'm using Vista x64.
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Post by bad4u »

Sooo.. I did some tests on this part of the script and nothings going wrong here (on XP). Hard to imagine it should be caused by the script ..
Maybe someone else could verify that it is NOT a Vista or Vista 64 problem ?


@Begi: Please do one more test using this modified script :
http://www.bad4u.741.com/beta/xpress.hu_debug.ifs (copy link into a NEW browser window !)

This script will save the files debug.txt and debugpage.txt to scripts folder. If Vista blocks AMC writing to this folder, simply change the variable "SavePath" at the beginning of the script (i.e. SavePath = 'D:\'; ) to a path programs have write access on. Please send me these two files via private message or - better - mail (see private message). I just want to know what the problem is about.. Thanks !
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

It may still be a some firewall/antivirus which modifies something in the pages of that site (but does not modify pages of other sites) because it detects something strange?
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Post by bad4u »

Yeah, that's why I'd like to see the debug textfiles, so that I can compare them to my own ones. It would be of special interest, if it should be a Vista/64 problem, cause then it could affect other scripts, too ;)
Begi
Posts: 5
Joined: 2008-01-27 12:25:37

Post by Begi »

bad4u wrote:Yeah, that's why I'd like to see the debug textfiles, so that I can compare them to my own ones. It would be of special interest, if it should be a Vista/64 problem, cause then it could affect other scripts, too ;)

See private msg pls.

It is very strange that I can browse that page and everything is ok. Anyway not all the scripts are working. For examle netpiac.hu script is working, but filmzona.hu isn't. Port.hu scripts only find the first title. So it seems to be a firewall issue, but why netpiac.hu working correctly and the other isn't?
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Post by bad4u »

After some private messages we solved the problem.

It seems that on Vista X64 you need to set compatibility mode for AMC (rightclick on moviecatalog.exe -> properties -> compatibility mode 2000/XP) to get a correct import for all scripts. Without compatibility mode probably only scripts that do not use FindLine function on TStringLists will work. This should affect other scripts running on Vista X64 too.

If another Vista X64 user (and maybe a Vista 32 user) could verify this, it would be a great help. Just download the debug script from http://www.bad4u.741.com/beta/xpress.hu_debug.ifs (copy link into a NEW browser window !), run it once without compatibility mode (i.e. search for matrix), go to the scripts folder and send me the contents of the file debug.txt and debugpage.txt via private message. Then run it once with compatibility mode set, and send me the files again, please.

I tested on Vista PE and found no problem, as far as I know it is based on Vista 32 kernel. Antoine, you will get more infos via private message.

Thanks to Begi for your help so far !
Post Reply