English > Scripts and Templates
Project Allocine script
Ivek23:
--- Quote from: pra15 on February 21, 2015, 04:51:12 pm ---i'm just trying the last url :
http://www.allocine.fr/film/fichefilm_gen_cfilm=47319.html
and i have all the data. (with NMax 5)
--- End quote ---
Strange, but now is works perfect.
--- Quote from: pra15 on February 21, 2015, 05:55:53 pm ---Correction for link
http://www.allocine.fr/film/fichefilm_gen_cfilm=46112.html
I'll see the problem of no screenshot.
--- End quote ---
With this code
--- Code: ---const
pauseBeforeLoad = 10; // Pause before loading (in millisecond)
nMaxAffiches = 0; // Nombre Maximum d'affiches a télécharger
nMaxPhotos = 0; //Add +1 // Nombre Maximum de photos a telecharger
nMaxImages = nMaxAffiches + nMaxPhotos;
--- End code ---
it works.
pra15:
Yes it works,
still the problem of +1 in NMaxPhotos, i tried add an extralinks, add a linksPhoto but not work (perhaps a +1 somewhere but i don't find the solution). I think for the moment i keep code like this sorry.
Ivek23:
--- Quote ---
--- Code: ---const
pauseBeforeLoad = 10; // Pause before loading (in millisecond)
nMaxAffiches = 5; // Nombre Maximum d'affiches a télécharger
nMaxPhotos = 5; //Add +1 // Nombre Maximum de photos a telecharger
nMaxImages = nMaxAffiches + nMaxPhotos;
--- End code ---
--- Quote from: pra15 on February 21, 2015, 05:55:53 pm ---Correction for link
http://www.allocine.fr/film/fichefilm_gen_cfilm=46112.html
I'll see the problem of no screenshot.
--- End quote ---
--- End quote ---
The reason that this one title did not work, the maximum number of posters for the movie.
--- Quote from: pra15 on February 21, 2015, 09:01:32 pm ---Yes it works,
still the problem of +1 in NMaxPhotos i tried add an extralinks, add a linksPhoto but not work (perhaps a +1 somewhere but i don't find the solution). I think for the moment i keep code like this sorry.
--- End quote ---
I suggest to remove +1 in NMaxPhotos, surely it will work as well as this code
--- Code: ---const
pauseBeforeLoad = 10; // Pause before loading (in millisecond)
nMaxAffiches = 16; // Nombre Maximum d'affiches a télécharger
nMaxPhotos = 2; // Nombre Maximum de photos a telecharger
nMaxImages = nMaxAffiches + nMaxPhotos;
--- End code ---
will 100% work, I tested about 30 movies titles and it worked without problems to PVD blocked, including this url http://www.allocine.fr/film/fichefilm_gen_cfilm=46112.html address (7 posters and 1 screenshot).
And are adequately experienced in the screenshot from three years ago:
in the database I had about 550 movies titles, of which around 300-350 movies titles with a screenshot and a lot of 360mb database. When I removed all the screenshots, it was a huge database only between 180 and 270mb.
So conclusion:
less when the screenshots, the lower the database, the better it works PVD program.
pra15:
I don't know if i understand well (my english!).
The script work but we must know that for 1 screenshot we must put NMaxPhotos = 2. We must add +1 to the number wanted.
If i have 5 extralinks :
links_Casting
links_PrePhoto1
links_PrePhoto2
links_PrePhoto3
links_PrePhoto4
the script run like mode 1 then 2 then 3 then 4 then 5
in mode 1, takes information about casting then go to mode 2
in mode 2, takes link of photo1 and put this link in array LinksPhoto
ect....
In ParsePage
when countPhoto is the numer of maximum link_Prephoto (here4) i execute parsephoto, take all links in array linksPhoto and addimageurl....
Then parsepage go to prfinished and download photo.
But ParsePhoto works and download Photo only after mode 4 and not download photo 5.
Ivek23:
--- Quote from: pra15 on February 22, 2015, 11:43:41 am ---I don't know if i understand well (my english!).
The script work but we must know that for 1 screenshot we must put NMaxPhotos = 2. We must add +1 to the number wanted.
If i have 5 extralinks :
links_Casting
links_PrePhoto1
links_PrePhoto2
links_PrePhoto3
links_PrePhoto4
the script run like mode 1 then 2 then 3 then 4 then 5
in mode 1, takes information about casting then go to mode 2
in mode 2, takes link of photo1 and put this link in array LinksPhoto
ect....
In ParsePage
when countPhoto is the numer of maximum link_Prephoto (here4) i execute parsephoto, take all links in array linksPhoto and addimageurl....
Then parsepage go to prfinished and download photo.
But ParsePhoto works and download Photo only after mode 4 and not download photo 5.
--- End quote ---
I apologize, but I was tested several of these variants on the work of a full transfer of information. As already mentioned earlier in the opinion are important more than just posters, sreenshotov do not use. I am also not interested because it collected too much space in the database.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version