Jump to content
Sign in to follow this  
TeamB

EmbyCon - Amber skin fanart for menu items

Recommended Posts

TeamB
6 hours ago, muzicman0 said:

I disabled it.  I use a 'random TV/Movie fan art' for my main menu background, and if I don't have Emby for Kodi, it just shows a black screen (or at least it used to).  I can enable it every once and a while to update, then disable again, and everything works as it should.  Thanks.

What skin are you using? Did you have to set up anything special for the backgrounds to work?

Share this post


Link to post
Share on other sites
muzicman0

Amber is the name of the skin.  

When I create the main menu item (IE: Movies - which points to a specific library in Embycon), I choose the 'Select Background', and 'Random Movie Fanart'.

I'm guessing since there is no actual file sync with EmbyCon, Kodi doesn't have a list of movies to choose fanart from, thus it doesn't work.

Share this post


Link to post
Share on other sites
TeamB

Yeah it looks like Amber can only use the built in DB items, I thought it might have a setting for a property that could be set to look for fanart images but ti does not.

One option if you feel like editing a text file is edit the skin file:

Kodi\addons\skin.amber\1080i\Includes_Variables.xml

Change this line

Line: 702
<value condition="String.IsEqual(Container(300).ListItem.Property(background),Video.Fanart)">$INFO[Container(12343).ListItem.Art(fanart)]</value>

To This:
<value condition="String.IsEqual(Container(300).ListItem.Property(background),Video.Fanart)">$INFO[Window(Home).Property(plugin.video.embycon-random-gb)]</value>

And then set your menu items to use VIDEO.FANART as the backgound.

This will then use the random fanart EmbyCon already sets for its own skin.

Share this post


Link to post
Share on other sites
muzicman0

very cool.  Thanks, I will give it a try!

Share this post


Link to post
Share on other sites
TeamB
Posted (edited)

I found a better way of doing this.

Instead of changing how the skin does background just add the EmbyCon backgrounds into the mix.

To do this you just need to add two lines into the home.xml file:

Kodi\addons\skin.amber\1080i\Home.xml file

Change the following text starting on line 27

FROM

        <control type="list" id="12341">
	        <content sortby="random" limit="50">videodb://movies/titles/</content>
	        <include>AutoscrollTime</include>
	        <itemlayout />
	        <focusedlayout />
            <posx>-20</posx>
			<posy>-20</posy>
			<width>1</width>
			<height>1</height>
        </control>
        
        <control type="list" id="12342">
	        <content sortby="random" limit="50">videodb://tvshows/titles/</content>
	        <include>AutoscrollTime</include>
	        <itemlayout />
	        <focusedlayout />
            <posx>-20</posx>
			<posy>-20</posy>
			<width>1</width>
			<height>1</height>
        </control>    

TO

        <control type="list" id="12341">
	        <content sortby="random" limit="50">videodb://movies/titles/</content>
			<content sortby="random" limit="50">plugin://plugin.video.embycon?mode=WIDGET_CONTENT&amp;type=recent_movies</content>
	        <include>AutoscrollTime</include>
	        <itemlayout />
	        <focusedlayout />
            <posx>-20</posx>
			<posy>-20</posy>
			<width>1</width>
			<height>1</height>
        </control>
        
        <control type="list" id="12342">
	        <content sortby="random" limit="50">videodb://tvshows/titles/</content>
			<content sortby="random" limit="50">plugin://plugin.video.embycon?mode=WIDGET_CONTENT&amp;type=recent_tvshows</content>
	        <include>AutoscrollTime</include>
	        <itemlayout />
	        <focusedlayout />
            <posx>-20</posx>
			<posy>-20</posy>
			<width>1</width>
			<height>1</height>
        </control>    

You are just adding two lines:

<content sortby="random" limit="50">plugin://plugin.video.embycon?mode=WIDGET_CONTENT&amp;type=recent_movies</content>

and

<content sortby="random" limit="50">plugin://plugin.video.embycon?mode=WIDGET_CONTENT&amp;type=recent_tvshows</content>

This will allow the skin to use Movie and TV show backgrounds from EmbyCon in your menu items.

 

 

 

Edited by TeamB

Share this post


Link to post
Share on other sites
muzicman0
Posted (edited)

This works great with one exception.  I have 3 movie libraries, and only want to grab fanart from one of them (this avoids 'Recorded Movies' and 'Holiday Movies').  Is there a way to edit:

<content sortby="random" limit="50">plugin://plugin.video.embycon?mode=WIDGET_CONTENT&amp;type=recent_movies</content>

to only include a specific library named 'Movies'?  or exclude specific libraries?

 

Also, I assume this won't survive an update to the theme.  

Thanks again!

Edited by muzicman0

Share this post


Link to post
Share on other sites
TeamB

@muzicman0

Yes you can, you need to build the target plugin URL though, EmbyCon can do this for you.

Open EmbyCon and navigate to the Emby library node

EmbyCon -> Emby libraries

scroll down to your desired library and select it.

when the list of nodes shows (Show All,  etc) scroll down to the Recently added, this is probably the best one for what you want.

then with Recently Added selected bring up the context menu and select Add to favorites.

Now you need to go to your favorites in Kodi to make sure it worked. If it worked and you can seleted it in your favorites and you see the Recently added Movie list then move on the the next step. if not you added the wrong thing tot he favorites above.

Now open your favorites.xml file from the following DIR

\Kodi\userdata\favourites.xml

In this file you will see the RAW url used to access the above items, it should look like this:

<favourites>
    <favourite name="Movies - Recently Added (20)" thumb="C:\Users\shfaulds\AppData\Roaming\Kodi\addons\plugin.video.embycon\icon.png">ActivateWindow(10025,&quot;plugin://plugin.video.embycon/?media_type=movies&amp;mode=GET_CONTENT&amp;sort=none&amp;url=%7bserver%7d%2femby%2fUsers%2f%7buserid%7d%2fItems%3fIncludeItemTypes%3dMovie%26GroupItemsIntoCollections%3dFalse%26Recursive%3dTrue%26format%3djson%26Fields%3d%7bfield_filters%7d%26CollapseBoxSetItems%3dFalse%26IsMissing%3dFalse%26ImageTypeLimit%3d1%26SortBy%3dDateCreated%26Filters%3dIsNotFolder%26ParentId%3df137a2dd21bbc1b99aa5c0f6bf02a805%26IsPlayed%3dFalse%26SortOrder%3dDescending&quot;,return)</favourite>
</favourites>

You want to extract the EmbyCon URL from the above, it will look like this:

plugin://plugin.video.embycon/?media_type=movies&amp;mode=GET_CONTENT&amp;sort=none&amp;url=%7bserver%7d%2femby%2fUsers%2f%7buserid%7d%2fItems%3fIncludeItemTypes%3dMovie%26GroupItemsIntoCollections%3dFalse%26Recursive%3dTrue%26format%3djson%26Fields%3d%7bfield_filters%7d%26CollapseBoxSetItems%3dFalse%26IsMissing%3dFalse%26ImageTypeLimit%3d1%26SortBy%3dDateCreated%26Filters%3dIsNotFolder%26ParentId%3df137a2dd21bbc1b99aa5c0f6bf02a805%26IsPlayed%3dFalse%26SortOrder%3dDescending

Its the bit inside the &quot;

Then use the above in your Home.xml movies content like this

<content sortby="random" limit="50">plugin://plugin.video.embycon/?media_type=movies&amp;mode=GET_CONTENT&amp;sort=none&amp;url=%7bserver%7d%2femby%2fUsers%2f%7buserid%7d%2fItems%3fIncludeItemTypes%3dMovie%26GroupItemsIntoCollections%3dFalse%26Recursive%3dTrue%26format%3djson%26Fields%3d%7bfield_filters%7d%26CollapseBoxSetItems%3dFalse%26IsMissing%3dFalse%26ImageTypeLimit%3d1%26SortBy%3dDateCreated%26Filters%3dIsNotFolder%26ParentId%3df137a2dd21bbc1b99aa5c0f6bf02a805%26IsPlayed%3dFalse%26SortOrder%3dDescending</content>

And boom you have backgrounds only from that library and only the most recent ones.

This can be done for any of the menu noes in EmbyCon.

  • Thanks 1

Share this post


Link to post
Share on other sites
muzicman0

Worked great, thanks so much.  I actually used my 'Show All' on my Movies library, but it worked as expected!  Thanks again!

Share this post


Link to post
Share on other sites
muzicman0

I also upped the 'limit' to 200 on both lines.  So far I haven't seen a problem on my Shield.  I am not sure of the ramifications of that, but my assumption would just be memory or speed, and so far, no issues with either.

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...