Author Topic: Project Allocine script  (Read 33322 times)

0 Members and 1 Guest are viewing this topic.

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2667
    • View Profile
Re: Project Allocine script
« Reply #20 on: February 16, 2015, 04:03:54 pm »
Very, very nice, remarkable and impressive work. Congratulations for this script. It needs to be just edit it to work faster, on version 0.9.9.21 also works well, but more slowly, it may be functioning can be a bit faster.

Thanks for good work.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline pra15

  • Older Power User
  • *****
  • Posts: 173
    • View Profile
Re: Project Allocine script
« Reply #21 on: February 16, 2015, 05:58:33 pm »
Add info from page 'secrets de tournage' in a custom field name 'Secrets' type memo.

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2667
    • View Profile
Re: Project Allocine script
« Reply #22 on: February 17, 2015, 09:33:45 am »
It needs to be just edit it to work faster, on version 0.9.9.21 also works well, but more slowly, it may be functioning can be a bit faster.

This is slow
Code: [Select]
pauseBeforeLoad = 2000; // Pause before loading (in millisecond)but, this is more faster
Code: [Select]
pauseBeforeLoad = 10; // Pause before loading (in millisecond)
Without the transfer of posters or screenshots
Code: [Select]
const
 pauseBeforeLoad = 2000; // 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;
script works fine, but if the settings such as
Code: [Select]
const
 pauseBeforeLoad = 2000; // Pause before loading (in millisecond)
 nMaxAffiches = 2; // Nombre Maximum d'affiches a télécharger
 nMaxPhotos = 1; //Add +1 // Nombre Maximum de photos a telecharger
 nMaxImages = nMaxAffiches + nMaxPhotos;
PVD program will be blocked for the next movie connections:

http://www.allocine.fr/film/fichefilm_gen_cfilm=36095.html
http://www.allocine.fr/film/fichefilm_gen_cfilm=5180.html
http://www.allocine.fr/film/fichefilm_gen_cfilm=4276.html

Is given to reproduce this problem.
« Last Edit: February 17, 2015, 09:49:02 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 pra15

  • Older Power User
  • *****
  • Posts: 173
    • View Profile
Re: Project Allocine script
« Reply #23 on: February 17, 2015, 09:45:44 am »
Yes i put pausebeforeload until script was finished because i make many test and sometimes allocine block.

Now i work in Awards Page, i want to make 3 while overlapping but i'm not even found the solution.

There's also a problem with image, when just one image on site cause an error. It'll see that later after finished Page awards.

Offline pra15

  • Older Power User
  • *****
  • Posts: 173
    • View Profile
Re: Project Allocine script
« Reply #24 on: February 17, 2015, 05:06:57 pm »
Thanks,

Add AWARDS Page, but i'm blocked for the name in the last Festival of the page. My head will explose. I need help.

I have seen the links up for images, i understand why an error. There is no number of image in the movie page. I use this number to reserve number of extralinks for image. I'll see how resolve this.
I don't understand this :

If i put 7 extralinks (with images): the download start at the end of n°6 and the seven is not downloaded. If the seven is empty ---> error. It's that for this when there is only one image on site there is an error. Perhaps i can double the link in this case; I'll see.

 

Offline pra15

  • Older Power User
  • *****
  • Posts: 173
    • View Profile
Re: Project Allocine script
« Reply #25 on: February 17, 2015, 05:59:40 pm »
Correction for links up;
It's not very beautiful but it works. I put 6 images minimum if the number doesn't exist in the movie page and as i don't use parseBA (i don't find link in this page) i put all extralinks empty with this url.

Offline pra15

  • Older Power User
  • *****
  • Posts: 173
    • View Profile
Re: Project Allocine script
« Reply #26 on: February 19, 2015, 02:16:28 pm »
Add Name of festivals clickable.
Correction in Awards page in name and date of festivals. Correction if just one festival in awards page.
Put awards result in a customfield (Recompenses) type memo, not in comment field.
Change sort of count image to download. Now respect number choose for affiche and for photo (always add one image for photo).
Speed is more rapid now.

Always problems in :
Name of person in the last Festival in page Awards.
Must add one image in number of photo choosed to be downloaded.

Offline pra15

  • Older Power User
  • *****
  • Posts: 173
    • View Profile
Re: Project Allocine script
« Reply #27 on: February 19, 2015, 11:51:00 pm »
Add person name for the last festival.
« Last Edit: February 20, 2015, 12:34:09 am by pra15 »

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2667
    • View Profile
Re: Project Allocine script
« Reply #28 on: February 20, 2015, 04:30:08 pm »
Thank you, now run faster, but at the bottom adding url address PVD yet always blocked.
 
http://www.allocine.fr/film/fichefilm_gen_cfilm=19259.html

Still missing, however the year of the movie.
« Last Edit: February 20, 2015, 08:42:39 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 pra15

  • Older Power User
  • *****
  • Posts: 173
    • View Profile
Re: Project Allocine script
« Reply #29 on: February 20, 2015, 10:05:54 pm »
Thanks,
Correction for link up.

For the year : There's 3 years in the site.
I put in CustomFields : 'Date de sortie' and 'Date de reprise' and there's also 'Date de Production' i don't take it. If we want put year in current field year wich one choose?

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2667
    • View Profile
Re: Project Allocine script
« Reply #30 on: February 21, 2015, 07:30:48 am »
Thank you, now run faster, but at the bottom adding url address PVD yet always blocked.
 
http://www.allocine.fr/film/fichefilm_gen_cfilm=19259.html

This is now fine, but created another problem. In the below URL of the poster image is now transferred to the Screenshot field.

http://www.allocine.fr/film/fichefilm_gen_cfilm=181111.html
http://www.allocine.fr/film/fichefilm_gen_cfilm=61772.html
http://www.allocine.fr/film/fichefilm_gen_cfilm=4276.html

and there's also 'Date de Production' i don't take it. If we want put year in current field year wich one choose?

'Année de production'  transfer to normal YEAR FIELD, since this is the correct year of publication movie. Checked in several movies.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline pra15

  • Older Power User
  • *****
  • Posts: 173
    • View Profile
Re: Project Allocine script
« Reply #31 on: February 21, 2015, 12:11:59 pm »
Thanks,
Correction for affiche in screenshot.
Add Year.
Add URL.

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2667
    • View Profile
Re: Project Allocine script
« Reply #32 on: February 21, 2015, 04:29:49 pm »
Thanks,
Correction for affiche in screenshot.
Add Year.
Add URL.

Nice and work.

New and old bug:

- at the bottom adding url address PVD yet always blocked

http://www.allocine.fr/film/fichefilm_gen_cfilm=46112.html

- at the bottom adding url address with this code
Code: [Select]
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;
  PVD work normal, but when I change the code example as follows
Code: [Select]
const
 pauseBeforeLoad = 10; // Pause before loading (in millisecond)
 nMaxAffiches = 3; // Nombre Maximum d'affiches a télécharger
 nMaxPhotos = 1; //Add +1 // Nombre Maximum de photos a telecharger
 nMaxImages = nMaxAffiches + nMaxPhotos;
PVD yet always blocked

http://www.allocine.fr/film/fichefilm_gen_cfilm=56136.html

This example code I use when I do not want the transfer of screenshots. Is it possible to make a feature screenshots that can not be transferred without affecting the operation of scripts, such as, for example, something like this code
Code: [Select]
GET_SCREENSHOT  = False;

- at the bottom adding url address PVD yet with no any data transmission

http://www.allocine.fr/film/fichefilm_gen_cfilm=47319.html
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline pra15

  • Older Power User
  • *****
  • Posts: 173
    • View Profile
Re: Project Allocine script
« Reply #33 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)

I look others.

Offline pra15

  • Older Power User
  • *****
  • Posts: 173
    • View Profile
Re: Project Allocine script
« Reply #34 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.

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2667
    • View Profile
Re: Project Allocine script
« Reply #35 on: February 21, 2015, 07:25:35 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)

Strange, but now is works perfect.

Correction for link
http://www.allocine.fr/film/fichefilm_gen_cfilm=46112.html

I'll see the problem of no screenshot.

With this code
Code: [Select]
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;
it works.
« Last Edit: February 21, 2015, 08:12:07 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 pra15

  • Older Power User
  • *****
  • Posts: 173
    • View Profile
Re: Project Allocine script
« Reply #36 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.

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2667
    • View Profile
Re: Project Allocine script
« Reply #37 on: February 22, 2015, 09:07:20 am »
Quote
Code: [Select]
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;
Correction for link
http://www.allocine.fr/film/fichefilm_gen_cfilm=46112.html

I'll see the problem of no screenshot.

The reason that this one title did not work, the maximum number of posters for the movie.

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.

I suggest to remove +1 in NMaxPhotos, surely it will work as well as this code
Code: [Select]
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;
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.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline pra15

  • Older Power User
  • *****
  • Posts: 173
    • View Profile
Re: Project Allocine script
« Reply #38 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.

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2667
    • View Profile
Re: Project Allocine script
« Reply #39 on: February 22, 2015, 12:24:21 pm »
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.

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.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD