English > Support
Help wanted at Script -postersfolderjpg_en-
Jabberwocky:
Hi Ivek, thanks for the welcome.
Until now I have mostly alone fought my way in the scripts.
Now I have two scripts "postersfolderjpg_en" and "posterswithsamename_en" found work great. But here have a problem, this would script "postersfolderjpg_en" change, that it in the position "Front Cover" or "Disc Cover" invites cover.
Have it as far modified the cover properly settles into the "Front Cover" position, but the script hangs when I stopt to cancel click the script and the cover is displayed.
I read in the script help, which without the command "function GetCoverType: smallint;" is automatically imported into front covers.
Question One: Why is this script hanging?
Question Two: What changes should I make where the command "function GetCoverType: smallint;"
Thanks for your help
regards Jabberwocky
Ivek23:
It is necessary to wait a few days to see if they will find any solution
Jabberwocky:
Ok thanks, will wait.
regards Jabberwocky
Ivek23:
--- Quote from: Jabberwocky on September 15, 2016, 03:46:28 pm ---Question One: Why is this script hanging?
--- End quote ---
The scripts are missing certain parts of the code, which is why this is happening, like when PVD freezes.
--- Quote from: Jabberwocky on September 15, 2016, 03:46:28 pm ---Question Two: What changes should I make where the command "function GetCoverType: smallint;"
--- End quote ---
This feature does not work as such, it needed be amended in such part
--- Code: ---function GetCoverType: Byte;
--- End code ---
The entire function must be such, however:
--- Code: ---function GetCoverType : Byte; // 0 - front cover, 1 - disc image
// 0 - Front, 1 - CD
Begin
Result := 1;
Inc (CoverType);
End;
--- End code ---
Even this does not work properly, because there are still some parts of the code are missing in the script.
--- Code: ---//Global variables
var
Mode : Byte;
CoverType: Integer;
--- End code ---
and
--- Code: ---//add poster that is within the same folder as the movie file and is named "Cover.jpg"
function GetDownloadURL : AnsiString;
var
Path : String;
P : Integer;
SlashPos : Integer;
begin
Path := GetFieldValue(31);
P := Pos('|', Path);
if P < 1 then
P := Length(Path) + 1;
Path := Copy(Path, 1, P - 1);
if Path <> '' then
begin
Path := ChangeFileExt(Path, '.jpg')
SlashPos := LastPos('\', Path)
Delete(Path, SlashPos+1, 999) //delete whole substring after last '\'
// ! you can edit the filename of your posters here ! (currently it is 'Cover.jpg')
// the poster file has to be in the same folder as the movie file
//Path := Path+'Cover.jpg'
Path := Path+'Disc.jpg'
//Path := Path+'CD.jpg'
//Path := Path+'Front.jpg'
//Path := Path+'Disc image.jpg'
//Path := Path+'Covers.jpg'
if FileExists(Path) then
begin
LogMessage('FILE EXISTS: '+Path)
AddImageURL(0, Path)
Result := PATH;
end
else
Result := '';
end;
if (CoverType = 1) then // (default it is 1 disc image)
Result := '';
end;
--- End code ---
As can be seen from this part of the code
--- Code: --- // ! you can edit the filename of your posters here ! (currently it is 'Cover.jpg')
// the poster file has to be in the same folder as the movie file
//Path := Path+'Cover.jpg'
Path := Path+'Disc.jpg'
//Path := Path+'CD.jpg'
//Path := Path+'Front.jpg'
//Path := Path+'Disc image.jpg'
//Path := Path+'Covers.jpg'
--- End code ---
It is to change the image file name, which is essential to the proper script transfer front or disc image in the correct box.
Below is an added version "0.1.0.5" scripts that operate on PVD 0.9.9.21, as well as the latest PVD 1.0.2.7 version.
Jabberwocky:
Thanks Ivek,
good guidance have all changed so and it is going very well.
I also learned again what it.
A question about the script "posterswithsamename_en" the setting is so one jpg file is made with the same movie name. Could it so change:
MovieName_Poster.jpg or
MovieName_Thumbnail.jpg
Thanks for your work
regards Jabberwocky
Navigation
[0] Message Index
[#] Next page
Go to full version