docbells wrote:Thanks for this - will definitely give this a try - a bit nervous about applying it as I have spent a lot of time applying the images to each file and don't want to have to redo it if it doesn't work. I will let you know how it turns out. Do you know if it will overwrite what I have already done?
Code: Select all
if VarToStr(aItem.Properties[mpiThumbnail]) = '' then begin
Verifies that the thumbnail is not attached. The made this script changes are not saved in the database and therefore it is a temporary solution.
docbells wrote:
Another question - I use this with a WDTV live - when I go into the menu I get folder selections for video, music, photos, service, then a folder that has a foreign name - mon komn...
If you did not make changes in the localization program, you can copy a file from default.wln
?:\Program Files\Wild Media Server\DISTR\Languages to ?:\Program Files\Wild Media Server\Languages\
docbells wrote:
that I can navigate my folders in. I was wondering if it was possible to apply thumbnail images to these folders?
Temporary solution

, but attachment thumbnails remain. You must change the path to the files.
Code: Select all
const
mfVideoItemsFolderID = '4B011F97-1151-45B1-A954-76BDFCAE746A';
mfAudioItemsFolderID = '0972345A-4255-4ECA-98A1-F326465BA727';
mfImageItemsFolderID = '8ED989F8-10E9-4B9A-8EAE-E8150BE7A302';
mfFileSystemItemsFolderID = 'C64D9FE3-12C6-4283-8C3D-5201908372EB';
procedure ProcessItem2(aItem: TWmsScriptMediaItem; const aFileName: string);
begin
if (aItem <> nil) and (VarToStr(aItem.Properties[mpiThumbnail]) = '') and
FileExists(aFileName) then
aItem.Properties[mpiThumbnail] := aFileName
end;
begin
ProcessItem2(WmsFindMediaFolder(mfVideoItemsFolderID), 'C:\Video.jpg');
ProcessItem2(WmsFindMediaFolder(mfAudioItemsFolderID), 'C:\Audio.jpg');
ProcessItem2(WmsFindMediaFolder(mfImageItemsFolderID), 'C:\Image.jpg');
ProcessItem2(WmsFindMediaFolder(mfFileSystemItemsFolderID), 'C:\MyComputer.jpg');
WmsDatabaseAutoSave;
ProcessMediaResult := True
end.
docbells wrote:
Thanks again for your program - I have turned on many others to it so far and they love it...
Thanks