[Plugin] MediaBrowser for MediaPortal (v0.30-beta) [2014/08/20] (1 Viewer)

erichzann

MP Donator
  • Premium Supporter
  • October 25, 2011
    244
    34
    Oxford
    Home Country
    United Kingdom United Kingdom
    I am not a pro on this but looking at the mediabrowser.log last two lines it looks like you might have had the problem I had.

    You need to ensure that you you add in 'Path Substitution' in the Library > Path Substitution page of the MB Server.

    This is because its looking for the local m:\.... filepath on the server when trying to play the file (which is why the server works) but that won't work on the client.
     
    M

    mjmapi

    Guest
    Is MB available as a stand alone/offline install file, i tried to download and play around withe the server and theator apps but nly smart client install which seems to want to download additional files,

    Offline file would be nice;)
     

    Pog

    Retired Team Member
  • Premium Supporter
  • September 7, 2009
    401
    315
    Wicklow
    Home Country
    Ireland Ireland
    I'm working on a skin for StreamedMP and should have something done over the next week

    Has there been any work done on latest media properties?
     

    wizard123

    Retired Team Member
  • Premium Supporter
  • January 24, 2012
    2,569
    2,680
    Home Country
    United Kingdom United Kingdom
    can you expose properties like suggested movies or latest added tv series etc.
     

    Pog

    Retired Team Member
  • Premium Supporter
  • September 7, 2009
    401
    315
    Wicklow
    Home Country
    Ireland Ireland
    Hey Wiz... I've had a look through the source and have experimented a bit.

    Armand has a "smart facade" system that allows you the query MB to build a MP facade control from any MP window. So if you use the following eg on your home screen you will see the latest added movies:
    Code:
        <control>
          <description>MediaBrowser.Query.TEST.RecentlyAdded.Movie.5</description>
          <type>facadeview</type>
          <id>450</id>
          <control>
            <description>Thumbnail Panel</description>
            <type>thumbnailpanel</type>
            <posX>400</posX>
            <posY>200</posY>
            <width>1000</width>
            <height>400</height>
            <!-- Small Icons 0.66 aspect ratio -->
            <itemWidth>150</itemWidth>
            <itemHeight>217</itemHeight>
            <textureWidth>150</textureWidth>
            <textureHeight>216</textureHeight>
            <thumbWidth>135</thumbWidth>
            <thumbHeight>202</thumbHeight>
            <thumbPosX>7</thumbPosX>
            <thumbPosY>7</thumbPosY>
            <!-- Large Icons 0.66 aspect ratio -->
            <textureWidthBig>228</textureWidthBig>
            <textureHeightBig>319</textureHeightBig>
            <itemWidthBig>226</itemWidthBig>
            <itemHeightBig>316</itemHeightBig>
            <thumbWidthBig>204</thumbWidthBig>
            <thumbHeightBig>294</thumbHeightBig>
            <thumbPosXBig>12</thumbPosXBig>
            <thumbPosYBig>12</thumbPosYBig>
            <imageFolderFocus>thumbborder3.png</imageFolderFocus>
            <font>font12</font>
            <suffix>|</suffix>
            <thumbZoom>yes</thumbZoom>
            <enableFocusZoom>no</enableFocusZoom>
            <keepaspectratio>no</keepaspectratio>
          </control>
        </control>
    You can change the description to whatever query you need:

    <description>MediaBrowser.Query.TEST.RecentlyAdded.Movie.5</description>

    You can also use multiple facades, just repeat the code and change the "TEST" to the name you want (also use unique control ID).

    Here is what I pulled from Armands source. You can follow the type of query you want to put together from this:

    Code:
                while (index < tokens.Length)
                {
                    // MediaBrowser.Query.CustomIdentifier.Parameter1.Parameter2.Etc (.Limit as int)
                    // Skin properties published are prefixed with: #MediaBrowser.Query.CustomIdentifier (.Loading, .Selected)
                    //
                    // examples:
                    // MediaBrowser.Query.MyDashboardQuery.RecentlyAdded.Movie.3 (shows 3 movies that were recently added)
                    // MediaBrowser.Query.MyDashboardQuery.Random.Movie.5 (shows 5 random movies)
                    // MediaBrowser.Query.MyDashboardQuery.RecentlyAdded.Episode.Unwatched.8 (shows 8 episodes that were recently added and unwatched)
    
                    switch (tokens[index])
                    {
                        // Item Types
                        case MediaBrowserType.MusicAlbum:
                            query = query.MusicAlbum();
                            break;
                        case MediaBrowserType.Audio:
                            query = query.Audio();
                            break;
                        case MediaBrowserType.Series:
                            query = query.Series();
                            break;
                        case MediaBrowserType.Season:
                            query = query.Season();
                            break;
                        case MediaBrowserType.Episode:
                            query = query.Episode();
                            break;
                        case MediaBrowserType.Movie:
                            query = query.Movies();
                            break;
                        // Item Filters
                        case "Dislikes":
                            query = query.Filters(ItemFilter.Dislikes);
                            break;
                        case "Likes":
                            query = query.Filters(ItemFilter.Likes);
                            break;
                        case "Favorite":
                            query = query.Filters(ItemFilter.IsFavorite);
                            break;
                        case "Resumable":
                            query = query.Filters(ItemFilter.IsResumable);
                            break;
                        case "Watched":
                            query = query.Filters(ItemFilter.IsPlayed);
                            break;
                        case "Unwatched":
                            query = query.Filters(ItemFilter.IsUnplayed);
                            break;
                        // Presets and sorting
                        case "RecentlyPlayed":
                            query = query.SortBy(ItemSortBy.DatePlayed, ItemSortBy.SortName).Descending();
                            break;
                        case "RecentlyAdded":
                            query = query.SortBy(ItemSortBy.DateCreated, ItemSortBy.SortName).Descending();
                            break;
                        case "Random":
                            query = query.SortBy(ItemSortBy.Random);
                            break;
                        case "SortName":
                            query = query.SortBy(ItemSortBy.SortName);
                            break;
                        case "DatePlayed":
                            query = query.SortBy(ItemSortBy.DatePlayed);
                            break;
                        case "Ascending":
                            query = query.Ascending();
                            break;
                        case "Descending":
                            query = query.Descending();
                            break;
                        default:
                            Int32.TryParse(tokens[index], out limit);
                            break;
     

    Pog

    Retired Team Member
  • Premium Supporter
  • September 7, 2009
    401
    315
    Wicklow
    Home Country
    Ireland Ireland
    Thanks Armand. A few off the top of my head...

    It would nice to have the smart image stuff working for the non-primary images.

    A method for the skinner to force a particular facade view for default and queries. i.e. I want a root menu to always be a list.

    Allow user to click a query facade item to jump to that media.

    Allow user to flag love/hate/favorites etc.

    More facades so that I can have a layout for movies and another for tv shows.
     

    Users who are viewing this thread

    Top Bottom