English > Support

Help wanted at Script -postersfolderjpg_en-

<< < (3/4) > >>

pelisdb:
Hve you tried my script? It puts the movie_poster.jpg in the poster section and the movie_thumbnail.jpg in the cover section (you can easily correct the section).

Jabberwocky:
Hello pelisdb,

I overlooked your script (same sript name) apologize.

Your script is what I wanted.

My problem was I do not know where and how the Different types of images (posters, Thumbnail, front ...) defining.

z.B.  Basename := Copy(Path, 1, LastPos('.',Path)-1);
      nameposter := Basename+'_Poster.jpg';
      LogMessage('Poster: '+nameposter);

and Partial calling

z.B.   if FileExists(nameposter) then
       begin
       LogMessage('FILE EXISTS: '+nameposter);
   //nameposter :=  StringReplace(nameposter, ' ', '%20', true, false, true);
       AddImageURL(itPoster, nameposter);
       //Result := PATH;
      end else begin
      LogMessage('Poster Image not found.');
      end;

I understand the logic of the script, but with the programming language, there are problems'm learning.
If I have a template that at about that fits what I would like to do, I can change it.

As in your script the case I was able to change the different image types in the right position to load it now.
Thank you for your help, you have facilitates my work.

Nice Weekend,

regards Jabberwocky

Ivek23:

--- Quote from: Jabberwocky on September 22, 2016, 10:42:38 pm ---Point me to the end as follows:

1. Copy file path
2. Remove the leaves file extension
3. merge path+ _Poster
4. Insert file extension .jpg
5. Seeking file
6. if found
7. then save in Section Posters
--- End quote ---

I have a way to make our work and skip the items from 2-4, where in the script to change this one piece of code

--- Code: ---Basename := Copy(Path, 1, LastPos('.',Path)-1);
      nameposter := Basename+'_Poster.jpg';
      LogMessage('Poster: '+nameposter);
--- End code ---
in this part of the code

--- Code: ---Basename := Copy(Path, 1, LastPos('.',Path)-2);
      //nameposter := Basename+'_Poster.jpg';
      nameposter := Basename+'_Poster'+'.jpg';
      LogMessage('Poster: '+nameposter);
--- End code ---

Now we pelisdb revised "posterswithsamename_en"  script is working properly.

Jabberwocky:
Hallo again,

I thank you for the work and your Patience!!!

@Ivek

Properly Ivek the parts I missed. Logically, I knew the running, but the defination in the script was my problem.

Thanks to your help, I could change the script ready.
I'll keep my scripts when they are clean and run post here.
Perhaps they also help other users.

regards Jabberwocky

pelisdb:
I'm glad it works!

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version