Eugene,
Once again -- thank you VERY MUCH. I will be registering the product next week and have already recommended your product to others.
I will be using WMS only with the WDTV Live for now so I'll be registering just that device. Can you provide some clarification as to what devices are actually needed in the allowed client list? Do I need to have my router, the WMSserver, Cisco woreless gateway, etc., or should just the WDTVLIVE be there? I suspsect I have more than I actually need which can add to confusiin for me in the future.
Again -- thank you so much. The level of support has been EXCELLENT!!
New to WMS -- need help w/ WDTV Live setup
-
- Posts: 11
- Joined: Sat Jul 24, 2010 9:05 pm
Re: New to WMS -- need help w/ WDTV Live setup
You can remove 192.168.1.1, 192.168.1.102, regarding 192.168.1.115 I think you should check - disable wired connection.ripper2860 wrote: I will be using WMS only with the WDTV Live for now so I'll be registering just that device. Can you provide some clarification as to what devices are actually needed in the allowed client list? Do I need to have my router, the WMSserver, Cisco woreless gateway, etc., or should just the WDTVLIVE be there? I suspsect I have more than I actually need which can add to confusiin for me in the future.
-
- Posts: 11
- Joined: Sat Jul 24, 2010 9:05 pm
Re: New to WMS -- need help w/ WDTV Live setup
Seems to stream fine with just the WDTVLIVE entry (192.168.1.108), so I'm leaving only that in the device list for now.
Got another issue, however. I'm really hoping you can help me. This is with the MYMOVIES.XML parsing script you made available for me. While it is parsing the XML files and populating the movie metadata into the WMS database, it is resetting the THUMBNAIL entry for all movies to blank. I have all movie thumbnails located in a separate folder C:\WMS-THUMBNAILS and have specified that path in SETTINGS | MEDIA RESOURCES | PHOTO RESOURCES - THUMBNAILS | DIRECTORY COVERS / MOVIES section of the MEDIA RESOURCES section. If I delete all MEDIA RESOURCES FOLDER LISTS entries and re-add them, the thumbnails are there for all movies after a re-scan. I then run the MYMOVIES.XML script and immediately the movie thumbnails disappear and are replaced with the default placeholder image (as seen in the EDIT page for each movie). Any thoughts. Is it a setting I need to set or a tweak to the script?
Below is an XML file for refernce (could't attach as XML or TXT as it kept saying it was not allowed.
Many, Many thanks again, Eugene. Your support has been stellar!!!!!
Got another issue, however. I'm really hoping you can help me. This is with the MYMOVIES.XML parsing script you made available for me. While it is parsing the XML files and populating the movie metadata into the WMS database, it is resetting the THUMBNAIL entry for all movies to blank. I have all movie thumbnails located in a separate folder C:\WMS-THUMBNAILS and have specified that path in SETTINGS | MEDIA RESOURCES | PHOTO RESOURCES - THUMBNAILS | DIRECTORY COVERS / MOVIES section of the MEDIA RESOURCES section. If I delete all MEDIA RESOURCES FOLDER LISTS entries and re-add them, the thumbnails are there for all movies after a re-scan. I then run the MYMOVIES.XML script and immediately the movie thumbnails disappear and are replaced with the default placeholder image (as seen in the EDIT page for each movie). Any thoughts. Is it a setting I need to set or a tweak to the script?
Below is an XML file for refernce (could't attach as XML or TXT as it kept saying it was not allowed.
Code: Select all
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<!--This file is created and copyrighted by My Movies (http://www.mymovies.dk) to store movie meta-data in movie folders, and may not be altered. The data may be used freely for non-commercial purposes only (this means that you may not use it in commercial programs, without written consent). If you would like to use the data for commercial purposes, please contact support@mymovies.dk. The data may not be redistributed, shared, transferred or in any way used in ways that cannot be referred to as personal usage by the original user. This means that using the data on websites, services or similar is strictly forbidden.-->
<Title>
<ID>18</ID>
<WebServiceID>aceeca0b-e23f-4292-87c9-0f3f3a68e6b6</WebServiceID>
<CollectionNumber>4</CollectionNumber>
<Type></Type>
<Barcode>097363343028</Barcode>
<Country>United States</Country>
<LocalTitle>Changing Lanes</LocalTitle>
<LocalTitleDisplay>Changing Lanes</LocalTitleDisplay>
<OriginalTitle>Changing Lanes</OriginalTitle>
<SortTitle>Changing Lanes</SortTitle>
<SortTitleDisplay>Changing Lanes</SortTitleDisplay>
<Edition></Edition>
<IMDB>tt0264472</IMDB>
<Rating>6</Rating>
<AspectRatio>1.85:1</AspectRatio>
<VideoStandard>NTSC</VideoStandard>
<ProductionYear>2002</ProductionYear>
<ReleaseDate>8/19/2003</ReleaseDate>
<RunningTime>[unknown]</RunningTime>
<TagLine />
<Description>An attorney in a rush to make a court appointment to file legal papers involving a multi-million dollar trust accidentally collides with an alcoholic insurance salesman, who also is a rush for a court appointment involving the custody of his children. The attorney leaves the scene of the accident and strands the salesman, causing him to miss his custody hearing. During the process of the post-crash discussion, the attorney accidentally drops the papers he needs to present in court. The judge gives him until the end of the day to present the papers and thus begins a cat and mouse game between the proponents. A few questionable actions later on both parties' part, they finally start questioning their actions and their lives. In the end, both come to new understanding of what is important and appear to be set in new ethical and moral directions. Contains mild violence and profanity.</Description>
<ExtraFeatures NotPresent="False"><![CDATA[Commentary by Director Roger MItchell
The Making of Changing Lanes
A Writer's Perspective Featurette
2 Deleted Scenes
1 Extended Scene
Theatrical Trailer]]></ExtraFeatures>
<ParentalRating Adult="False">
<Value>6</Value>
<Description>Rated R for language.</Description>
</ParentalRating>
<DataProvider></DataProvider>
<DataProviderId></DataProviderId>
<ImportSource />
<ImportId />
<LocalTrailer>
<URL></URL>
<Type>-1</Type>
</LocalTrailer>
<Watched>False</Watched>
<Covers>
<Front>mymovies-front.jpg</Front>
<Back>mymovies-back.jpg</Back>
</Covers>
<DataChanged>1/7/2009 8:41:13 AM</DataChanged>
<CoversChanged>7/5/2008 9:52:18 PM</CoversChanged>
<LockData>False</LockData>
<LockCovers>False</LockCovers>
<Added>5/9/2009 8:20:10 PM</Added>
<RecordChanged>6/5/2009 10:58:52 AM</RecordChanged>
<Categories />
<Genres>
<Genre>Drama</Genre>
<Genre>Thriller</Genre>
</Genres>
<AudioTracks>
<AudioTrack Language="English" Type="Dolby Digital" Channels="5.1" />
<AudioTrack Language="English" Type="Dolby Digital Surround" Channels="" />
<AudioTrack Language="French" Type="Dolby Digital Surround" Channels="" />
</AudioTracks>
<Subtitles NotPresent="False">
<Subtitle Language="French" />
</Subtitles>
<Studios>
<Studio>Paramount Pictures</Studio>
</Studios>
<Discs>
<Disc TitleMode="False" HideSideA="False" HideSideB="False">
<DiscIdStored></DiscIdStored>
<DoubleSided>False</DoubleSided>
<Name>Disc 1</Name>
<DiscIdSideA>F56139C0-E2C82356</DiscIdSideA>
<DiscIdSideB></DiscIdSideB>
<LocationSideA>.</LocationSideA>
<LocationTypeSideA>1</LocationTypeSideA>
<LocationSideB></LocationSideB>
<LocationTypeSideB>-1</LocationTypeSideB>
<ChangerSlot></ChangerSlot>
</Disc>
</Discs>
<Persons>
<Person>
<Name>Ben Affleck</Name>
<Type>Actor</Type>
<Role>Gavin Banek</Role>
</Person>
<Person>
<Name>Samuel L. Jackson</Name>
<Type>Actor</Type>
<Role>Doyle Gipson</Role>
</Person>
<Person>
<Name>Kim Staunton</Name>
<Type>Actor</Type>
<Role>Valerie Gipson</Role>
</Person>
<Person>
<Name>Toni Collette</Name>
<Type>Actor</Type>
<Role>Michelle</Role>
</Person>
<Person>
<Name>Sydney Pollack</Name>
<Type>Actor</Type>
<Role>Stephen Delano</Role>
</Person>
<Person>
<Name>Tina Sloan</Name>
<Type>Actor</Type>
<Role>Mrs. Delano</Role>
</Person>
<Person>
<Name>Richard Jenkins</Name>
<Type>Actor</Type>
<Role>Walter Arnell</Role>
</Person>
<Person>
<Name>Akil Walker</Name>
<Type>Actor</Type>
<Role>Stephen Gipson</Role>
</Person>
<Person>
<Name>Cole Hawkins</Name>
<Type>Actor</Type>
<Role>Danny Gipson</Role>
</Person>
<Person>
<Name>Ileen Getz</Name>
<Type>Actor</Type>
<Role>Ellen</Role>
</Person>
<Person>
<Name>Jennifer Dundas</Name>
<Type>Actor</Type>
<Role>Mina Dunne</Role>
</Person>
<Person>
<Name>Matt Malloy</Name>
<Type>Actor</Type>
<Role>Ron Cabot</Role>
</Person>
<Person>
<Name>Amanda Peet</Name>
<Type>Actor</Type>
<Role>Cynthia Delano Banek</Role>
</Person>
<Person>
<Name>Myra Lucretia Taylor</Name>
<Type>Actor</Type>
<Role>Judge Frances Abarbanel</Role>
</Person>
<Person>
<Name>Bruce Altman</Name>
<Type>Actor</Type>
<Role>Terry Kaufman</Role>
</Person>
<Person>
<Name>Joe Grifasi</Name>
<Type>Actor</Type>
<Role>Judge Cosell</Role>
</Person>
<Person>
<Name>Lisa LeGuillou</Name>
<Type>Actor</Type>
<Role>Gina Gugliotta (as Lisa Leguillou)</Role>
</Person>
<Person>
<Name>Angela Goethals</Name>
<Type>Actor</Type>
<Role>Sarah Windsor</Role>
</Person>
<Person>
<Name>Kevin Sussman</Name>
<Type>Actor</Type>
<Role>Tyler Cohen</Role>
</Person>
<Person>
<Name>Susan Varon</Name>
<Type>Actor</Type>
<Role>Sheryl Buckburg</Role>
</Person>
<Person>
<Name>Noel Wilson</Name>
<Type>Actor</Type>
<Role>Bartender At Arlo's</Role>
</Person>
<Person>
<Name>Angel Caban</Name>
<Type>Actor</Type>
<Role>Security Guard At School</Role>
</Person>
<Person>
<Name>Jim Lovelett</Name>
<Type>Actor</Type>
<Role>Security Guard At School (as James Lovelett)</Role>
</Person>
<Person>
<Name>Julia Gibson</Name>
<Type>Actor</Type>
<Role>Receptionist At AD&S</Role>
</Person>
<Person>
<Name>William Hurt</Name>
<Type>Actor</Type>
<Role>Doyle's Sponsor</Role>
</Person>
<Person>
<Name>Michael McGrath</Name>
<Type>Actor</Type>
<Role>Seavers (as Michael Patrick McGrath)</Role>
</Person>
<Person>
<Name>John Benjamin Hickey</Name>
<Type>Actor</Type>
<Role>Carlyle</Role>
</Person>
<Person>
<Name>Dylan Baker</Name>
<Type>Actor</Type>
<Role>Finch</Role>
</Person>
<Person>
<Name>Ray Bokhour</Name>
<Type>Actor</Type>
<Role>Willard</Role>
</Person>
<Person>
<Name>Suzanne Hevner</Name>
<Type>Actor</Type>
<Role>Delano's Secretary</Role>
</Person>
<Person>
<Name>Caleb Archer</Name>
<Type>Actor</Type>
<Role>Kid On Bike</Role>
</Person>
<Person>
<Name>Jordan Gelber</Name>
<Type>Actor</Type>
<Role>Priest</Role>
</Person>
<Person>
<Name>Olga Merediz</Name>
<Type>Actor</Type>
<Role>Mrs. Miller</Role>
</Person>
<Person>
<Name>Jayne Houdyshell</Name>
<Type>Actor</Type>
<Role>Miss Tetley</Role>
</Person>
<Person>
<Name>Shabazz Ray</Name>
<Type>Actor</Type>
<Role>Cop At Precinct (as Shabazz Richardson)</Role>
</Person>
<Person>
<Name>Raymond Anthony Thomas</Name>
<Type>Actor</Type>
<Role>Cop At Precinct (as Ray Anthony Thomas)</Role>
</Person>
<Person>
<Name>Michael Pitt</Name>
<Type>Actor</Type>
<Role>Music Teacher / Conductor</Role>
</Person>
<Person>
<Name>Genevieve Elam</Name>
<Type>Actor</Type>
<Role>Waitress</Role>
</Person>
<Person>
<Name>Juan Lara</Name>
<Type>Actor</Type>
<Role>Orchestra Child</Role>
</Person>
<Person>
<Name>Anastasia Rojas</Name>
<Type>Actor</Type>
<Role>Orchestra Child</Role>
</Person>
<Person>
<Name>Nicole Wright</Name>
<Type>Actor</Type>
<Role>Orchestra Child</Role>
</Person>
<Person>
<Name>Clive Oliver Greenberg</Name>
<Type>Actor</Type>
<Role>Orchestra Child</Role>
</Person>
<Person>
<Name>Gilbert S. Williams</Name>
<Type>Actor</Type>
<Role>Mike (as Gil Williams)</Role>
</Person>
<Person>
<Name>Sophia Guaspari</Name>
<Type>Actor</Type>
<Role>Orchestra Member</Role>
</Person>
<Person>
<Name>Ruben Jared Seraballs</Name>
<Type>Actor</Type>
<Role>Orchestra Member (as Ruben J. Seraballs)</Role>
</Person>
<Person>
<Name>Father Bonneau</Name>
<Type>Actor</Type>
<Role>Himself</Role>
</Person>
<Person>
<Name>Jewel Brimage</Name>
<Type>Actor</Type>
<Role>Teacher</Role>
</Person>
<Person>
<Name>Katarina Kianna</Name>
<Type>Actor</Type>
<Role>Teacher</Role>
</Person>
<Person>
<Name>Vanessa Quel</Name>
<Type>Actor</Type>
<Role>Kate</Role>
</Person>
<Person>
<Name>Howard I. Laniado</Name>
<Type>Actor</Type>
<Role>Barry</Role>
</Person>
<Person>
<Name>Tony Machine</Name>
<Type>Actor</Type>
<Role>Office Worker</Role>
</Person>
<Person>
<Name>Carolyn Feldschuh</Name>
<Type>Actor</Type>
<Role>Office Worker</Role>
</Person>
<Person>
<Name>Maria Alaina Mason</Name>
<Type>Actor</Type>
<Role>Office Worker</Role>
</Person>
<Person>
<Name>Harvey Waldman</Name>
<Type>Actor</Type>
<Role>Author In Newsroom Interview</Role>
</Person>
<Person>
<Name>Pamela Hart</Name>
<Type>Actor</Type>
<Role>Newscaster</Role>
</Person>
<Person>
<Name>Neal Jones</Name>
<Type>Actor</Type>
<Role>Newsroom Writer</Role>
</Person>
<Person>
<Name>Susan Blackwell</Name>
<Type>Actor</Type>
<Role>Newsroom Producer</Role>
</Person>
<Person>
<Name>Alyson Renaldo</Name>
<Type>Actor</Type>
<Role>Newsroom Executive Producer</Role>
</Person>
<Person>
<Name>James Soviero</Name>
<Type>Actor</Type>
<Role>Newsroom Associate Producer</Role>
</Person>
<Person>
<Name>Mary A. Kelly</Name>
<Type>Actor</Type>
<Role>Newsroom Script Supervisor (as Mary Kelly)</Role>
</Person>
<Person>
<Name>Anthony DiGiacomo</Name>
<Type>Actor</Type>
<Role>Newsroom Associate Director</Role>
</Person>
<Person>
<Name>Richard Velasco</Name>
<Type>Actor</Type>
<Role>Newsroom Director</Role>
</Person>
<Person>
<Name>Leonard L. Thomas</Name>
<Type>Actor</Type>
<Role>Newsroom Reporter (as Leonard Thomas)</Role>
</Person>
<Person>
<Name>Richard Kelly</Name>
<Type>Actor</Type>
<Role>AA Group Leader</Role>
</Person>
<Person>
<Name>Selena Blake</Name>
<Type>Actor</Type>
<Role>Insurance Broker</Role>
</Person>
<Person>
<Name>Harriet Rosenthal</Name>
<Type>Actor</Type>
<Role>Family Court Member</Role>
</Person>
<Person>
<Name>John Kohl</Name>
<Type>Actor</Type>
<Role>Family Court Member</Role>
</Person>
<Person>
<Name>Lisa Vogel</Name>
<Type>Actor</Type>
<Role>Family Court Member</Role>
</Person>
<Person>
<Name>Bob Heffernan</Name>
<Type>Actor</Type>
<Role>Simon Dunne</Role>
</Person>
<Person>
<Name>Salvatore Cavaliere</Name>
<Type>Actor</Type>
<Role>Family Court Officer (uncredited)</Role>
</Person>
<Person>
<Name>Monet Cunningham</Name>
<Type>Actor</Type>
<Role>Family Court Member (uncredited)</Role>
</Person>
<Person>
<Name>Phil Gardiner</Name>
<Type>Actor</Type>
<Role>Parishoner (uncredited)</Role>
</Person>
<Person>
<Name>Ralph Howard</Name>
<Type>Actor</Type>
<Role>Radio News Anchor, 1010 WINS (voice) (uncredited)</Role>
</Person>
<Person>
<Name>Sean T. Krishnan</Name>
<Type>Actor</Type>
<Role>Sikh (uncredited)</Role>
</Person>
<Person>
<Name>Pete Macnamara</Name>
<Type>Actor</Type>
<Role>Irate Pedestrian (uncredited)</Role>
</Person>
<Person>
<Name>Lian Moy</Name>
<Type>Actor</Type>
<Role>Tourist (uncredited)</Role>
</Person>
<Person>
<Name>David C. Roehm Sr.</Name>
<Type>Actor</Type>
<Role>Defendant In Custody (uncredited)</Role>
</Person>
<Person>
<Name>Sam Rovin</Name>
<Type>Actor</Type>
<Role>Paralegal (uncredited)</Role>
</Person>
<Person>
<Name>John H. Tobin</Name>
<Type>Actor</Type>
<Role>AA Attendee (uncredited)</Role>
</Person>
<Person>
<Name>Ray Wineteer</Name>
<Type>Actor</Type>
<Role>Parishioner (uncredited)</Role>
</Person>
<Person>
<Name>Waneeki Yokomee-Fung</Name>
<Type>Actor</Type>
<Role>Tourist (uncredited)</Role>
</Person>
<Person>
<Name>Roger Michell</Name>
<Type>Director</Type>
<Role />
</Person>
</Persons>
<CheckSum>6bea11fabd68f9d392b450f447341ad4</CheckSum>
<TMDbId>1537</TMDbId>
<IMDbId>tt0264472</IMDbId>
<MPAARating>NR</MPAARating>
<Budget>45000000</Budget>
<Revenue>94935764</Revenue>
<IMDBrating>6.5</IMDBrating>
<VideoAspect>2.353:1</VideoAspect>
<VideoBitrate>5442</VideoBitrate>
<VideoCodec>AVC</VideoCodec>
<VideoCodecRaw>AVC</VideoCodecRaw>
<VideoFileSize>4694601226</VideoFileSize>
<VideoHeight>544</VideoHeight>
<VideoLength>98.74875</VideoLength>
<VideoQuality>Good (720-like HD)</VideoQuality>
<VideoWidth>1280</VideoWidth>
<AudioBitrate>625</AudioBitrate>
<AudioChannels>5.1</AudioChannels>
<AudioCodec>AC-3</AudioCodec>
<AudioCodecRaw>AC-3</AudioCodecRaw>
<AudioFrequency>48000</AudioFrequency>
</Title>
Many, Many thanks again, Eugene. Your support has been stellar!!!!!
-
- Posts: 11
- Joined: Sat Jul 24, 2010 9:05 pm
Re: New to WMS -- need help w/ WDTV Live setup
Got it. Took a deep dive into the script and deleted the references to XMLCOVERS and THUMBNAILS. Re-added my MEDIA FOLDERS and ran the script and WHAMMO!!! All there as it should be!!
Please let me know if you have a better solution after reviewing the XML structure in the previous post.
Thanks!!
Please let me know if you have a better solution after reviewing the XML structure in the previous post.
Thanks!!
Re: New to WMS -- need help w/ WDTV Live setup
Thanks for your example, I found a few problems, I hope they have solvedripper2860 wrote:Got it. Took a deep dive into the script and deleted the references to XMLCOVERS and THUMBNAILS. Re-added my MEDIA FOLDERS and ran the script and WHAMMO!!! All there as it should be!!
Please let me know if you have a better solution after reviewing the XML structure in the previous post.
Code: Select all
var
iSuccessCount: Integer;
function GetThumbnail( XMLRoot : TXMLItem ) : string;
var XMLCovers : TXMLItem ;
begin
XMLCovers := XMLRoot.Find("Covers");
Result := "";
if XMLCovers <> nil then
Result := XMLCovers.Find("Front").Value;
end;
procedure GetPeople( XMLRoot : TXMLItem;
var actors : string;
var directors : string;
var producers : string; );
var XMLPeopleRoot : TXMLItem;
var XMLPerson : TXMLItem;
var Name: string;
var i : Integer;
begin
actors := "";
directors := "";
producers := "";
XMLPeopleRoot := XMLRoot.Find("Persons");
if XMLPeopleRoot <> nil then begin
for i := 0 To XMLPeopleRoot.Count - 1 do begin
XMLPerson := XMLPeopleRoot[i];
Name := XMLPerson.Find("Name").Value;
if XMLPerson.Find("Type").Value = "Actor" then begin
if Length(actors) = 0 then
actors := Name
else
actors := actors + "," + Name
end
else if XMLPerson.Find("Type").Value = "Director" then begin
if Length(directors) = 0 then
directors := Name
else
directors := directors + "," + Name
end
else if XMLPerson.Find("Type").Value = "Producer" then begin
if Length(producers) = 0 then
producers := Name
else
producers := producers + "," + Name
end
end;
end;
end;
function GetGenres( XMLRoot : TXMLItem ) : string;
var XMLGenreRoot : TXMLItem;
var genres : string;
var i : Integer;
begin
XMLGenreRoot := XMLRoot.Find("Genres");
genres := "";
if XMLGenreRoot <> nil then begin
for i := 0 To XMLGenreRoot.Count - 1 do begin
if Length(genres) = 0 then
genres := XMLGenreRoot[i].Value
else
genres := genres + "," + XMLGenreRoot[i].Value
end
end;
Result := genres;
end;
function GetItemAsString(XMLRoot : TXMLItem; requiredData : string) : string ;
var XMLItemData : TXMLItem;
begin
XMLItemData := XMLRoot.Find(requiredData);
if XMLItemData <> nil then
Result := XMLItemData.Value
else
Result := ""
end;
procedure SetProperty(TheMediaItem: TWmsScriptMediaItem; aPropertyID: Integer; const aValue: string);
begin
if aValue <> '' then
TheMediaItem.Properties[aPropertyID] := aValue;
end;
procedure ImportMetaData(XMLRoot : TXMLItem; TheMediaItem : TWmsScriptMediaItem);
var title, description, year, runningTime, rating, thumbnail, thumbnailfilename: string;
var actors, directors, producers : string;
var XMLTitle: TXMLItem;
begin
title := GetItemAsString(XMLRoot, "LocalTitle");
description := GetItemAsString(XMLRoot, "Description");
rating := GetItemAsString(XMLRoot, "IMDBrating");
year := GetItemAsString(XMLRoot, "ProductionYear");
runningTime := GetItemAsString(XMLRoot, "RunningTime");
SetProperty(TheMediaItem, mpiTitle, title);
SetProperty(TheMediaItem, mpiYear, year);
SetProperty(TheMediaItem, mpiComment, description);
SetProperty(TheMediaItem, mpiRating, rating);
SetProperty(TheMediaItem, mpiGenre, GetGenres(XMLRoot));
thumbnail := GetThumbnail(XMLRoot);
if thumbnail <> '' then begin
if (Pos(':\', thumbnail) = 0) and (Pos('\\', thumbnail) = 0) then
thumbnailfilename := IncludeTrailingBackslash(ExtractFilePath(TheMediaItem.Properties[mpiFilePath])) + thumbnail
else
thumbnailfilename := thumbnail;
if FileExists(thumbnailfilename) then
SetProperty(TheMediaItem, mpiThumbnail, thumbnail);
end;
GetPeople(XMLRoot, actors, directors, producers);
SetProperty(TheMediaItem, mpiActor, actors);
SetProperty(TheMediaItem, mpiDirector, directors);
SetProperty(TheMediaItem, mpiProducer, producers);
end;
function GetMetaDataForItem(TheMediaItem : TWmsScriptMediaItem) : boolean;
var
i: Integer;
loadDir, movieXmlFileName, fullPath: string;
XMLDocument: TXMLDocument;
begin
Result := False;
if (TheMediaItem.MediaType = mtVideo) and
(TheMediaItem.Properties[mpiFilePath] <> '') and
(Copy(TheMediaItem.ItemID, 1, 2) <> 'T-') then begin { Transcoding Items}
movieXmlFileName := "mymovies.xml";
loadDir := IncludeTrailingBackslash(ExtractFilePath(TheMediaItem.Properties[mpiFilePath]));
fullPath := loadDir + movieXmlFileName;
if FileExists(fullPath) then begin
XMLDocument := TXMLDocument.Create;
try
XMLDocument.LoadFromFile(fullPath);
if XMLDocument.Root.Name = "Title" then begin
ImportMetaData(XMLDocument.Root, TheMediaItem);
Result := true;
end;
finally
XMLDocument.Free
end;
end
end;
if not Result and TheMediaItem.HasChildItems then
for i := 0 to TheMediaItem.ChildCount - 1 do
if GetMetaDataForItem(TheMediaItem.ChildItems[i]) then
Inc(iSuccessCount)
end;
begin
iSuccessCount := 0;
if WmsCurrentMediaTreeItem <> nil then begin
WmsShowInformation('Load metadata...');
try
GetMetaDataForItem(WmsCurrentMediaTreeItem);
finally
WmsHideInformation
end
end;
if iSuccessCount > 0 then
MessageDlg('Load metadata was successful.', mtInformation, mbOK, 0)
else
MessageDlg('No information available for load.', mtError, mbOK, 0);
WmsDatabaseAutoSave;
ProcessMediaResult := True
end.
-
- Posts: 11
- Joined: Sat Jul 24, 2010 9:05 pm
Re: New to WMS -- need help w/ WDTV Live setup
Eugene --
Thanks. I'll give it a shot when I get home form work and post up the results.
Thanks. I'll give it a shot when I get home form work and post up the results.
-
- Posts: 11
- Joined: Sat Jul 24, 2010 9:05 pm
Re: New to WMS -- need help w/ WDTV Live setup
Reporting in on the revised script and IT WORKS BEAUTIFULLY!!! Thanks, Eugene!!!