Probleme avec le script IMDB

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
animact
Posts: 2
Joined: 2011-11-26 23:03:41

Probleme avec le script IMDB

Post by animact »

Il est impossible de telecharger les informations sur Imdb lorsque le numero de reference se termine par "9".
Exemple: "http://www.imdb.com/title/tt0516889/".

Comment editer le script afin de reparer ce bug.
antp
Site Admin
Posts: 9651
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

Très étrange :??:

Je vérifie ça plus tard, si j'y pense et si j'ai le temps :D
antp
Site Admin
Posts: 9651
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

C'est assez délirant : quand l'ID termine par "9", le site rajoute "IMDb" devant le titre. Or on regarde si la page commence par "IMDb" plutôt que par le titre de film pour savoir si on est sur une page de recherche ou une page de film...
On peut tenter la modif suivante : ligne 61, contenant :

Code: Select all

  if pos('<title>IMDb', PageText) = 0 then
remplacer par

Code: Select all

  if pos('<title>IMDb Title Search', PageText) = 0 then
et voir si ça ne cause pas d'autres problèmes...
animact
Posts: 2
Joined: 2011-11-26 23:03:41

Post by animact »

Merci pour la solution, pour l'instant ca fonctionne tres bien, s'il y a d'autre probleme qui survienne je vous fait signe.
Post Reply