Media Center Master community forums
http://forums.MediaCenterMaster.com/

fields in mymovies.xml
http://forums.MediaCenterMaster.com/viewtopic.php?f=9&t=3723
Page 1 of 1

Author:  G_Drey_V [ February 1st, 2012, 9:31 am ]
Post subject:  fields in mymovies.xml

where can I get the last version of MovieInfo class? It seems that code of plugin in example is a little bit old. I don't see how I can fill ForcedTitle or Tagline for mymovies.xml.
By the way. How is OriginalTitle field is filled? For example for The Scorpion King the original title is <OriginalTitle>El rey escorpiĆ³n</OriginalTitle>. Why?

Author:  Rumbaar [ February 1st, 2012, 3:00 pm ]
Post subject:  Re: fields in mymovies.xml

mymovies.xml will most likely be deprecated due to the original creator of the format encrypting their version of that file. MB and most likely other are moving to movies.xml as the name, the formatting will be the same.

Not sure how that information will affect what you are doing.

Author:  G_Drey_V [ February 2nd, 2012, 8:08 am ]
Post subject:  Re: fields in mymovies.xml

Thanks. Really I believe I'm using the last version of MCM and I don't see any movies.xml file in the film folders. Anyway I still don't what return format will be suitable for MCM. I mean what fields may contain xml which is returned by FetchByIDs plugin function. Is there any wiki or documentation regarding possible plugin API?

Author:  Rumbaar [ February 2nd, 2012, 3:04 pm ]
Post subject:  Re: fields in mymovies.xml

Yes I'm not sure if Pete has implemented the name change, but is coming. As MediaBrowser is being forced to change it because of the original creator of mymovies.xml need to keep it an 'in house' format.

As for technical aspects of plugins, I'll have to refer you to others with more knowledge on the subject. Hopefully they'll be able to help you.

Author:  Pete [ February 5th, 2012, 2:08 pm ]
Post subject:  Re: fields in mymovies.xml

Does your development environment have IntelliSense? You should be able to see the newer/additional properties, such as tagline.

Author:  G_Drey_V [ February 5th, 2012, 3:14 pm ]
Post subject:  Re: fields in mymovies.xml

Thanks for reply. Sure it has. I'm using VS2010. Maybe I should download some additional libraries for plugin development? Because I don't see any tag fields in your sample. I mean sample from that topic: http://forums.mediacentermaster.com/viewtopic.php?f=9&t=62.
Code:
[System.Serializable()]
    public class MovieInfo
    {
        public string IMDB_ID = "";
        public string TMDB_ID = "";
        public string CDUniverse_ID = "";
        public string Local_Title = "";
        public string Original_Title = "";
        public string Year = "";
        public string Runtime = "";
        public string IMDBscore = "";
        public string MPAArating = "";
        public string[] AllGenres = new string[] { };
        public string Budget = "";
        public string Revenue = "";
        public string Summary = "";
        public string AllCastAndCrew = "";
        public string Studios = "";

        public byte[] Poster = null;
        public byte[] Backdrop = null;
        public string[] Backdrops = new string[] { };
    }

Author:  Pete [ February 5th, 2012, 3:22 pm ]
Post subject:  Re: fields in mymovies.xml

Ah okay, I thought you were trying to get auto-complete, I misunderstood.

You're looking for these additions:

Code:
        // Added with plugin system version 2.1
        public string Country = string.Empty;
        public string Language = string.Empty;
        public string ParentalRatingSummary = string.Empty;

        // Added with plugin system version 2.2
        public string PosterURL = string.Empty;
        public string BackdropURL = string.Empty;
        public string NumberOfVotes = string.Empty;
        public string FullMPAA = string.Empty;
        public string FullCertifications = string.Empty;
        public string TagLine = string.Empty;
        public string Outline = string.Empty;
        public string Plot = string.Empty;
        public string Top250 = string.Empty;
        public string Director = string.Empty;
        public string[] Writers = new string[] { };
        public string Awards = string.Empty;
        public string Website = string.Empty;
        public string Trailer = string.Empty;

Author:  Pete [ February 5th, 2012, 3:25 pm ]
Post subject:  Re: fields in mymovies.xml

Rumbaar wrote:
mymovies.xml will most likely be deprecated due to the original creator of the format encrypting their version of that file. MB and most likely other are moving to movies.xml as the name, the formatting will be the same.

Not sure how that information will affect what you are doing.
Apples and oranges, friend -- but appreciate you chiming in. We're talking about a structure of data (MCM calls MediaInfo) that is used to pass information about a movie between a plugin and MCM proper. :)

Author:  G_Drey_V [ February 5th, 2012, 4:22 pm ]
Post subject:  Re: fields in mymovies.xml

Great. Many thanks. That's exactly what I was looking for.
By the way where is it from? Is there any resource where I can get last classes declarations and other API for plugins?

Page 1 of 1 All times are UTC - 7 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/