Scripts that need to be fixed / Scripts à corriger

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.
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

Thanks, I updated the script on my server ;)
vij
Posts: 9
Joined: 2007-09-18 12:33:05

Post by vij »

bad4u wrote:
vij wrote:can somebody fix the "imp-awards" script???
It will work again if you change 'h2' to 'h3' in script line

Code: Select all

    Value := TextBetween(PageText, '<h2 class=r>', '</a>');
awesome!!!

thanks for the quick reply
northman
Posts: 19
Joined: 2008-09-21 19:17:33

Post by northman »

bonsoir
concernant le script CinEmotions, tout est nickel selon les modifs de "bad4u"

un grand merci

:p :p
lenakov
Posts: 1
Joined: 2008-11-03 22:47:40

Post by lenakov »

Hi guys,

Is there any chance of getting a fix on the tv.com script? I've been trying to work around but can't fix it. It seems that the page has changed a lot. I can't get any results when adding series. Nothing.

Thanks.

Lenakov
The Jedi
Posts: 3
Joined: 2008-11-16 16:49:39
Location: France

Petit soucis sur le script cinemotions Version 0.9.2 du 24/1

Post by The Jedi »

Bonjour , j'ai téléchargé la Version 0.9.2 du 24/10/2008 sur http://update.antp.be/amc/scripts/

Mais il y a des problèmes sur la recupération du synopsis , de la vignette et de la compagnie.

Voici les modifications que j'ai faites sur le script :

// Stoque l'image si necessaire
Ligne 266 :

Code: Select all

 temp := MonFindInfo('/affiches/1.html"><IMG SRC="','" border=0',Line,0);
a remplacer par :

Code: Select all

 temp := MonFindInfo('/affiches/1.html"><IMG SRC="','" border="0"',Line,0);
--------------------------------------------------------------------------------
// Prend la compagnie
Ligne 361 :

Code: Select all

 While (Pos('<font class=link6>',Temp) > 0) do
a remplacer par :

Code: Select all

  While (Pos('<font class="link6">',Temp) > 0) do
--------------------------------------------------------------------------------
// Prend la compagnie
Ligne 363 :

Code: Select all

  Prod := Prod+', '+MonFindInfo('<font class=link6>','</font>',temp,0);
a remplacer par :

Code: Select all

   Prod := Prod+', '+MonFindInfo('<font class="link6">','</font>',temp,0);
---------------------------------------------------------------------------------

// Prend le synopsis
Ligne 485 :

Code: Select all

 temp := MonFindInfo('<font class=link6>','</font>',temp,0);
a remplacer par :

Code: Select all

 temp := MonFindInfo('<font class="link6">','</font>',temp,0);


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

Post by antp »

Y a-t-il moyen de m'envoyer par mail le script corrigé pour le mettre sur le serveur ? Ça sera plus pratique et ça m'évitera les erreurs, merci d'avance ;)
The Jedi
Posts: 3
Joined: 2008-11-16 16:49:39
Location: France

CinEmotions (FR)_0.9.3

Post by The Jedi »

Aucun Problème :)
Je viens de vous l'envoyer par mail

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

Post by antp »

Merci ;)
Les deux adresses mail étaient bonnes, et on peut se tutoyer ;)
JoeSilver
Posts: 4
Joined: 2008-11-19 13:56:59
Location: Munich

OFDb - IMDb - mod v1.4.0

Post by JoeSilver »

Hello @all
I am sorry to say, but the marvellous OFDb - IMDb - mod (DE) script, last modified by "bad4u", does not work properly since a few days.

I get two boxes with Error "http/1.1 404 not found" and some of the informations are not collected.

Could please somebody try to fix this or post some code. I tried also to work around, but could not manage it.

Maybe it is due to the new german version of IMDb ?

Thanx a lot in advance!!
Vasniak
Posts: 8
Joined: 2008-06-01 03:46:28

Post by Vasniak »

The script in Filmaffinity do not get the country name any more. A flag show in the page but a black one in the catalog.

Cya...
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Post by bad4u »

Vasniak wrote:The script in Filmaffinity do not get the country name any more. A flag show in the page but a black one in the catalog.
You need to change

Code: Select all

Item := TextBetween (Line, 'alt="', '" border');
to

Code: Select all

Item := TextBetween (Line, 'title="', '" border');
in the country import of the script.
dandiona
Posts: 3
Joined: 2008-12-12 17:37:19

Post by dandiona »

hi all prof's here,

moviegoods doenst work my pc anymore after i have reinstalled the program... script is working and seems fetching the picture but it doesnt appear on picture field...
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Post by bad4u »

dandiona wrote:moviegoods doenst work my pc anymore after i have reinstalled the program... script is working and seems fetching the picture but it doesnt appear on picture field...
For large pictures change line

Code: Select all

    MovieAddress := 'http://www.moviegoods.com/Assets/product_images/1000/'+GetStringFromHTML(Page, '<INPUT TYPE="HIDDEN" NAME="DSP_IMAGE" VALUE="', 'UE="', '">');
to

Code: Select all

    MovieAddress := 'http://www.moviegoods.com/Assets/product_images/1020/'+GetStringFromHTML(Page, '<INPUT TYPE="HIDDEN" NAME="DSP_IMAGE" VALUE="', 'UE="', '">');
dandiona
Posts: 3
Joined: 2008-12-12 17:37:19

Post by dandiona »

sorry, it didnt work :(
dandiona
Posts: 3
Joined: 2008-12-12 17:37:19

Post by dandiona »

wait a second ;)

i have used notepad to edit script but i think program has a script cash or my vista x64 sistem doenst allow orginal program files folder changes...

but :lol:

internal script editor has been succed to fix problem :grinking:

special thanks to bad4u
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

This is due to Vista: it refuses that a program changes files in "program files", so when a program changes a file it keeps the modified copy elsewhere. But that trick does not always work when you use another program to change the file :D
helldawn
Posts: 4
Joined: 2008-12-21 14:53:04

pb scripts SOS

Post by helldawn »

hello a tous! un big thanx à tous ceux qui se démenent à nous faire des scripts.

il y a un tout p'tit problème pour le nouveau script de Cinémotions: il prend plus ni le genre, ni l'année, ni le pays et ni la durée.
trex
Posts: 3
Joined: 2008-11-24 14:43:11

[REQ] [BG] kino.gbg.bg script not working anymore

Post by trex »

Send private message Please, I need help. When I add a new film and I use F6 to import information from www.kino.gbg.bg,the script is not working. When I manually search the movies from the site, it is working.

Greetings from Todor
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Re: [REQ] [BG] kino.gbg.bg script not working anymore

Post by bad4u »

trex wrote:When I add a new film and I use F6 to import information from www.kino.gbg.bg,the script is not working. When I manually search the movies from the site, it is working.
Hi. Open the scripting window, mark the kino.gbg.bg script blue and click "Editor". Now change line 46

Code: Select all

if pos('<b>ÒÚÐÑÅÍÅ</b>', Page.Text) = 0 then
to

Code: Select all

if pos('<span class="black10">', Page.Text) = 0 then
The code on first line above might be different, as I cannot copy/paste that symbols here. Now run the script, it should show a results window again and let you choose the movies. If movie import still fails, let me know. Unfortunately I cannot test this here, as website uses UTF-8 encoded symbols that I cannot copy/paste into the script (on my localized windows version).
trex
Posts: 3
Joined: 2008-11-24 14:43:11

Re: [REQ] [BG] kino.gbg.bg script not working anymore

Post by trex »

bad4u wrote:
trex wrote:When I add a new film and I use F6 to import information from www.kino.gbg.bg,the script is not working. When I manually search the movies from the site, it is working.
Hi. Open the scripting window, mark the kino.gbg.bg script blue and click "Editor". Now change line 46

Code: Select all

if pos('<b>ÒÚÐÑÅÍÅ</b>', Page.Text) = 0 then
to

Code: Select all

if pos('<span class="black10">', Page.Text) = 0 then
The code on first line above might be different, as I cannot copy/paste that symbols here. Now run the script, it should show a results window again and let you choose the movies. If movie import still fails, let me know. Unfortunately I cannot test this here, as website uses UTF-8 encoded symbols that I cannot copy/paste into the script (on my localized windows version).
Thanks, man for the help, now it is working, but it has one problem still, now all the information is not shown with Cyrillic characters (Bulgarian language is with encoding Windows-1251), but it is shown with strange symbols. If you can help me also with that will be great. :grinking: you're the man bad4u
Post Reply