Post reply

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Note: this post will not display until it's been approved by a moderator.

Name:
Email:
Subject:
Message icon:

Attach:
(Clear Attachment)
(more attachments)
Allowed file types: gif, jpg, png, txt, tpl, lng, ini, pvd, psf, ini, cfg, csv, zip, xml, pas, 7z
Restrictions: 4 per post, maximum total size 1024KB, maximum individual size 1024KB
Note that any files attached will not be displayed until approved by a moderator.
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image

Type the letters shown in the picture:
What is the best video database software?:

shortcuts: hit alt+s to submit/post or alt+p to preview


Topic Summary

Posted by: Ivek23
« on: March 27, 2015, 07:19:16 pm »

'this archive is not a vald zip archive'

it's the message I get trying to update PVD

/v1.0.2.3

Yes, we know that the messages that appear in the transfer Allocine.fr (Pra15)  0.1.0.0  version or Allocine.fr (Pra15)  0.1.0.1  version. Normally, it is transferred Allocine.fr  0.1.0.2  version.

We are waiting on Nostra, that will remove the incorrect version, because the only thing he can do. If I had myself this option alone would do it, but I can not do.
Posted by: korbenPL
« on: March 27, 2015, 10:44:56 am »

'this archive is not a vald zip archive'

it's the message I get trying to update PVD

/v1.0.2.3
Posted by: Ivek23
« on: March 02, 2015, 04:14:05 pm »

Very small bug, Very big problem to download page.
Wrong
Code: [Select]
SCRIPT_TYPE    = 0; //MoviesProperly
Code: [Select]
SCRIPT_TYPE = stMovies;
Posted by: Ivek23
« on: February 28, 2015, 01:15:30 pm »

Ok Thanks for add the other details, i thinked they have not interest but it's easy to desactive if we don't want them.
The cosmetic it's better with this space.

Thank you for great job.
Posted by: pra15
« on: February 27, 2015, 10:25:32 pm »

Ok Thanks for add the other details, i thinked they have not interest but it's easy to desactive if we don't want them.
The cosmetic it's better with this space.
Posted by: Ivek23
« on: February 27, 2015, 12:28:04 pm »

Great, it works ok, but something is missing or some details
Code: [Select]
Details := AddDetails(HTML,'Langue','<div>Langue</div></th><td>',Details);
Details := AddDetails(HTML,'Date de sortie VOD','<div>Date de sortie VOD</div></th><td>',Details);
Details := AddDetails(HTML,'Date de sortie DVD','<div>Date de sortie DVD</div></th><td>',Details);
Details := AddDetails(HTML,'Date de sortie Blu-ray','<div>Date de sortie Blu-ray</div></th><td>',Details);
that are added in this code:
Code: [Select]
//Partie Synopsis et details :
CurPos := Pos('Synopsis et d', HTML);
AddCustomFieldValueByName('Controle parental', TextBetween(HTML,'<span class="insist">','</span>',True,CurPos));
AddFieldValue(13,TextBetween(HTML,'"description">','</p>',True,CurPos));
If Pos('Titre original</div></th><td>',HTML) > 0 then AddFieldValueXML('origtitle',TextBetween(HTML,'Titre original</div></th><td>','</td>',True,CurPos));
CurPos := Pos('e de production',HTML);
If CurPos > 0 then AddFieldValueXML('year',TextBetween(HTML,'">','</span>',True,CurPos));
Details := AddDetails(HTML,'Distributeur','visible"><th><div>Distributeur</div></th><td>',Details);
Details := AddDetails(HTML,'Budget','<div>Budget</div></th><td>',Details);
Details := AddDetails(HTML,'Format de production','Format de production</div></th><td>',Details);
Details := AddDetails(HTML,'Format de projection','Format de projection</div></th><td>',Details);
Details := AddDetails(HTML,'Couleur','Couleur</div></th><td>',Details);
Details := AddDetails(HTML,'Format audio','Format audio</div></th><td>',Details);
Details := AddDetails(HTML,'Type de film','Type de film</div></th><td>',Details);
Details := AddDetails(HTML,'N° de visa','N° de Visa</div></th><td>',Details);
Details := AddDetails(HTML,'Box office France','Box Office France</div></th><td>',Details);
Details := AddDetails(HTML,'Langue','<div>Langue</div></th><td>',Details);
Details := AddDetails(HTML,'Date de sortie VOD','<div>Date de sortie VOD</div></th><td>',Details);
Details := AddDetails(HTML,'Date de sortie DVD','<div>Date de sortie DVD</div></th><td>',Details);
Details := AddDetails(HTML,'Date de sortie Blu-ray','<div>Date de sortie Blu-ray</div></th><td>',Details);
AddCustomFieldValueByName('Details',Details);
  END;

I made a small cosmetic correction in this code:

before the cosmetic correction
Code: [Select]
Function AddDetails(HTML, Name, where, strdetail : string):string;
Var
CurPos : Integer;
Begin
CurPos := Pos(where,HTML);
If Copy(HTML,CurPos+Length(where),3) <> ' - ' then begin
Result := strdetail + Name + ' : ' + TextBetween(HTML,'<td>','</td>',true,CurPos) + #13#10;
end else
Result := strdetail;
end;

after the cosmetic correction
Code: [Select]
Function AddDetails(HTML, Name, where, strdetail : string):string;
Var
CurPos : Integer;
Begin
CurPos := Pos(where,HTML);
If Copy(HTML,CurPos+Length(where),3) <> ' - ' then begin
Result := strdetail + Name + ' :   ' + TextBetween(HTML,'<td>','</td>',true,CurPos) + #13#10;
end else
Result := strdetail;
end;

He is a better overview of data transferred in the 'Details' custom field.

I also made a small cosmetic correction in this code:
Code: [Select]
//Date de sortie :
TestPos := IfNextStep('<span class="lighten">','Date de sortie',HTML,CurPos);
If TestPos <> CurPos then begin
CurPos := TestPos;
.
.
.
end;
//LogMessage('Date de sortie: ' + DteSortie);
//LogMessage('Duree :' + Duree);
AddCustomFieldValueByName('Date de sortie',DteSortie);
Duree := StringReplace(Duree,'h','h ',True,True,True);
AddCustomFieldValueByName('Duree',Duree);
end;

I don't konw how put the script in download page.

Will arrive explanation of PM until Sunday, sorry, I am currently a little tight at the time.
Posted by: pra15
« on: February 27, 2015, 12:21:02 am »

Sorry, no connection since 2 days.

Add current field :
Title, origtitle, description
Add Custom Field :
Details

I put list of all custom field in start of script.

I don't konw how put the script in download page.
Posted by: Ivek23
« on: February 24, 2015, 10:15:50 am »

But visibly expect to you nobody in the forum was interested with Allocine script so the script is good like this.

Thank you, perhaps it would be any better if script was also available on the Download page.
Posted by: pra15
« on: February 23, 2015, 08:41:26 am »

Ok, i'll take all details in a custom field and delete date de sortie date de creation custom field to put them in.

I don't see my last script post (in reply #34) with correction. I repost it.
Posted by: Ivek23
« on: February 22, 2015, 04:40:56 pm »

Interesting information, if possible can be added to all 'Plus de détail' information in a custom field.

http://www.allocine.fr/film/fichefilm_gen_cfilm=100714.html
Posted by: pra15
« on: February 22, 2015, 03:19:21 pm »

ok, i'm agree, if you do not want screenshot just put 0 in NMaxPhotos.
And others who save database with images in folders and who are interested just add 1 of the number of screenshots really desired.

But visibly expect to you nobody in the forum was interested with Allocine script so the script is good like this.

I thinked work in a other script for Series in allocine. Personally i don't use series but i you are interested i can see that.
Posted by: Ivek23
« 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.
Posted by: 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.
Posted by: Ivek23
« 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.
Posted by: 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.
Posted by: Ivek23
« 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.
Posted by: 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.
Posted by: 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)

I look others.
Posted by: Ivek23
« 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
Posted by: pra15
« on: February 21, 2015, 12:11:59 pm »

Thanks,
Correction for affiche in screenshot.
Add Year.
Add URL.