Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - pra15

Pages: 1 2 3 [4] 5 6 7 8 9
61
Scripts and Templates / Re: Project Allocine script
« on: February 09, 2015, 02:53:34 pm »
I've looked your modifications.
I don't understand why at the end of the boucle while, just put CurPos := PosFrom('<a href=',HTML,CurPos); doesn't work. We must return to Thumbnail address.

Sorry, i would like understand to not repeat the same error the next times.

And do you know some links for help to string function like StringReplace, TextBetween, RemoveTags, especially for boolean options. I put always true but some like wholeword, dolinebreaks, i'm not sure.

I'm not sure too to the language use in script. Pascal Delphi? Some function for pascal doesn't work in script.

I think it's important for a beginner to know where find help to make a script especially in the language use. Not just copy existing scripts and trying to addapt them.

62
Scripts and Templates / Re: Iafd Person e Website link (full)
« on: February 09, 2015, 09:45:27 am »
Thanks,
For the moment i use my script to add good url and script genre_people to all database.
After i sort by genre, with two IAFD/IAFD i delete manually all bad URL.

63
Scripts and Templates / Re: Project Allocine script
« on: February 09, 2015, 09:32:54 am »
Thanks, yes it works.
After several trying i've forgotten erase manually original title, sorry.

64
Scripts and Templates / Re: Iafd Person e Website link (full)
« on: February 08, 2015, 10:42:17 pm »
I made a little script to modify URL iafd with two //.

But i can't replace the existing URL, just add an other good URL. Do you know if we can remove by script an existing URL ?

65
Scripts and Templates / Re: Project Allocine script
« on: February 08, 2015, 10:37:44 pm »
No, i'm just tryingit but i have just one movie in my windows result prlistImage while in the site there are several movies.
I try with word "anneaux".

66
Scripts and Templates / Project Allocine script
« on: February 08, 2015, 06:58:17 pm »
Hello,
I would like to make a script for allocine.fr.
I thought make two script because info are in different page.
The first script give the link of the movie and when we have it, use this link in a second scipt to take info from actors or image.
I started to make the first script (attached).

In Allocine.fr the page of result to a search of movie give several results, but it seems i can't obtain more than one result in my prList.
In The Code of the page we can see all the movies but it seems they are hide for the script exept the first.
I know nothing about HTML programming. If someone can explain That!

Quote
</span> <!-- /fs11 -->
</div></div></td></tr>

Probably it's after this (in red in the code page).

I stop the code because in the page of casting it's the same principle and if we can't resolve this..........

N.B: I tried different boucles.... Erase in the script because don't work.
I tried to Pos('Second movie') give 0.



This script has now been released and is available via the program's auto-update system. Run Help > Check for updates and choose Allocine.fr from the list.

67
Scripts and Templates / Re: Iafd Person e Website link (full)
« on: February 08, 2015, 12:35:24 am »
thanks

68
Scripts and Templates / Re: HotMovies Poster Script
« on: February 06, 2015, 05:23:10 pm »
Thanks,

Add a link to the second page of results in the first prlist result.

I stop to the second page because the third doesn't work. I don't know why!

69
Scripts and Templates / Re: Iafd Person e Website link (full)
« on: February 06, 2015, 03:44:17 pm »
Sorry, i have a little question :

Why use twice AddMoviePerson in script :
Code: [Select]
AddMoviePerson(Trim(Name), '', '', LowerCase(URL), ctActors);
AddMoviePerson(Name, '', '', URL, ctActors);

70
Scripts and Templates / Re: HotMovies Poster Script
« on: February 05, 2015, 10:27:37 pm »
Images added in search list.

71
Scripts and Templates / Re: Iafd Person e Website link (full)
« on: February 05, 2015, 05:42:01 pm »
It's an other problem,

with the old script with AddMoviePerson we put both the name and the transname.
With the new there's just the name.

I have modified the new script with the old method and it's ok.
But i'm not sure that is the best method. I don't want for the moment restart all my entries of the database actor!
Perhaps i'll make a script to erase all existing transname, i'll see.

I'll see for the URL too, thanks.

72
Scripts and Templates / Re: Iafd Person e Website link (full)
« on: February 05, 2015, 04:04:24 pm »
I've speaked too quickly!

I have yet the problem!

Seen what happens, i think the double was create if the actor was create first with the old script iafd_movie in the database.
In a new database, if i use only the last script : no problem.
If i use first the old script to put same actors and after i use the last script there is the problem.

 ???

73
Scripts and Templates / Re: Iafd Person e Website link (full)
« on: February 05, 2015, 12:48:36 pm »
Thanks,
I'm testing it.

Works perfect, i haven't problem with creation of double actors now.

Thanks!

74
Scripts and Templates / Re: HotMovies Poster Script
« on: February 05, 2015, 11:58:31 am »
The code works now,
i have simplified search but keeped the option GET_THUMB  if you don't want download thumbnails image cover put 'false'.

N.B. : it seems we can't download more than 1 image if script_mode = smPoster!

75
Scripts and Templates / Re: Iafd Person e Website link (full)
« on: February 04, 2015, 06:57:01 pm »
Thanks.

76
Scripts and Templates / Re: Iafd Person e Website link (full)
« on: February 04, 2015, 03:20:52 am »
Hello,

I add a new function in iafd_people(TABINFO): ftLine

See script for some explanations;
Function manage displaying line when you want tu put several values on the same line.
The function pTab is more easy to use now, in the most case you can use it like this : pTab('Name of value',value,'',4,0,''). See my exemple on write info.




77
Scripts and Templates / Re: Iafd Person e Website link (full)
« on: February 02, 2015, 08:42:21 pm »
Code: [Select]
An other little modification to see link of websites in AKA name.

Declare on Global Variables: TabAKA : Array of string
Declare on Parse People : AkaPos and EndAkaPos as integer

then put this code just over "tabI [2] := Nomealt4;"

Code: [Select]
/////////////////////////////////////////////////////////////////////////////////////////////////
ExplodeString(Nomealt4, TabAKA, ',');
If High(TabAKA) > 1 then begin
Nomealt4 := '';
For i := 0 to High(TabAKA) do begin
AkaPos := Pos('(', TabAKA[i])+1;
If AkaPos <> 1 then begin
EndAkaPos := PosFrom(')', TabAKA[i], AkaPos);
TabAKA[i] := Copy(TabAKA[i],0,AkaPos-1) + '<link url="www.'+Copy(TabAKA[i],AkaPos,EndAkaPos-AkaPos)+'">'+Copy(TabAKA[i],AkaPos,EndAkaPos-AkaPos)+'</link>)';
end;
Case i of
0 : NomeAlt4 := TabAka[i];
else begin
NomeAlt4 := NomeAlt4 + ', ' + TabAka[i];
end;
end;
end;
end;
Logmessage('AAAA AKA: ' + Nomealt4);
////////////////////////////////////////////////////////////////////////////////////////////////

78
Scripts and Templates / Multi Dimentional Array in script
« on: February 02, 2015, 02:27:47 pm »
I tried to use multidimentional array in import script but that give me always an error.

I declare it like this : Name : Array [a..b][c..d] of string;
or like this Name : Array [a..b] of Array [c..d] of string;
or like this Name : Array[a..b,c..d] of string.

but always an error.
If someone can help me to know if it's possible.

Thanks!

79
Scripts and Templates / Re: Iafd Person e Website link (full)
« on: February 02, 2015, 02:04:03 pm »
If you're interested :
Sometimes actors have page in egafd and iafd. Script egafd write filmography of the actor in Biography Field, and iafd in awards comments. To Keep all infos of the actor and the two filmography, with iafd script i put infos over the filmography (in awards comment). File is attached.

Another script who use genre with name of Url.
if you have in URL : http://www.aaaa.com http://zzz.com http://www.ccc.com give AAA/CCC/ZZZ in genre field.
I use it just for simplify search in PVD.

80
Scripts and Templates / Re: Iafd Person e Website link (full)
« on: February 02, 2015, 01:28:50 pm »
Yes, it's nothing, i put this as exemple, see the function pTab.
ptab(String Before,String,String After,Choice,Number of space,type of space).
For year ( 1111 ,1111) You must just change the "Choice" with 1 (in the first line on write info) to write left "(". I don't know if it's clear.
Exemple:
If value of year is nothing,
with pTab('(',Value,',',1,4,'*') give : (****,
with ptab('(',Value,',',2,10,'*') give : (**********
with pTab('(',Value,',',3,5,'*') give : *****,
with ptab('(',Value,',',4,5,'*') give : nothing
with ptab('(',Value,",",5,5,'*') give : *****
You can adjust as your choice  and the data you choose to write.

Pages: 1 2 3 [4] 5 6 7 8 9