(2014-09-13, 17:36)pecinko Wrote: Yeah, combining XBMC and Plex library is not very common use case
As already mentioned, you can either add XBMC or Plex sections as a custom menu items in skin settings via favorites or you can make 2 switchable profiles and keep XBMC sections in one while using GoPlex in another profiles.
With favorites you will lose the shelf for items that were added as favorites while with profiles you should be able to keep them, but at expense of few extra clicks to switch profile.
If you still want to hardcode XBMC links I can have a look at a code sometime next week and post more info.
Hi pecinko,
First of all, thanks for all your hard work, combining the plex library with an xbmc frontend is really the best of both worlds, you've really made an impact in my home entertainment
I'm one of the (probably) few who need to use both the plex and the xbmc library. The reason for this is a clever function of a certain streaming addon (which will remain nameless) that adds items in the XBMC library as .strm files that when clicked play through that addon. This saves precious navigation time in the RPi as you deal only with the library and not some slow-ish addon menu.
So to shave off a few seconds of my time
, I've hardcoded the XBMC Movies and TV shows home menu item in the GoPlex mode.
The change is quite simple for whomever wants/needs to try it:
To add XBMC menus in Plex mode:
In file skin.amber/1080i/Includes.xml
find line 776, section <include name="Home.Main.Menu.Items">
find the item you need, e.g.
Code:
<item id="4" description="MyMovies">
<visible>!Skin.HasSetting(plexbmc)</visible>
<visible>!Skin.HasSetting(Movies.Hide) + Library.HasContent(Movies)</visible>
<label fallback="20342">$VAR[MovieEntryPointLabel2]</label>
<thumb fallback="special://skin/backgrounds/Movies.jpg">$INFO[Skin.String(Movies.Background)]</thumb>
<onclick>$VAR[MovieEntryPoint]</onclick>
</item>
remove <visible>!Skin.HasSetting(plexbmc)</visible> , it becomes
Code:
<item id="4" description="MyMovies">
<visible>!Skin.HasSetting(Movies.Hide) + Library.HasContent(Movies)</visible>
<label fallback="20342">$VAR[MovieEntryPointLabel2]</label>
<thumb fallback="special://skin/backgrounds/Movies.jpg">$INFO[Skin.String(Movies.Background)]</thumb>
<onclick>$VAR[MovieEntryPoint]</onclick>
</item>
To show the respective shelves:
In file skin.amber/1080i/Includes_Horizontal_Home.xml
find line 55
Code:
<include condition="!Skin.HasSetting(Hide.RecentlyAdded) + !Skin.HasSetting(plexbmc) + SubString(Window(Home).Property(SkinWidgets_RecentItems),t,left)">Recent.Movies.List</include>
<include condition="!Skin.HasSetting(Hide.RecentlyAdded) + !Skin.HasSetting(plexbmc) + SubString(Window(Home).Property(SkinWidgets_RecentItems),t,left)">Recent.Concerts.List</include>
<include condition="!Skin.HasSetting(Hide.RecentlyAdded) + !Skin.HasSetting(plexbmc) + SubString(Window(Home).Property(SkinWidgets_RecentItems),t,left)">Recent.Episodes.List</include>
<include condition="!Skin.HasSetting(Hide.RecentlyAdded) + !Skin.HasSetting(plexbmc) + SubString(Window(Home).Property(SkinWidgets_RecentItems),t,left)">Recent.Albums.List</include>
<include condition="!Skin.HasSetting(Hide.RecentlyAdded) + !Skin.HasSetting(plexbmc) + SubString(Window(Home).Property(SkinWidgets_RecentItems),t,left)">Recent.Clips.List</include>
<include condition="!Skin.HasSetting(Hide.RecentlyAdded) + !Skin.HasSetting(plexbmc) + [SubString(Window(Home).Property(SkinWidgets_Recommended),t,left) | SubString(Window(Home).Property(SkinWidgets_RandomItems),t,left)]">Recommended.And.Random.Movies.List</include>
<include condition="!Skin.HasSetting(Hide.RecentlyAdded) + !Skin.HasSetting(plexbmc) + SubString(Window(Home).Property(SkinWidgets_Recommended),t,left)">Recommended.Concerts.List</include>
<include condition="!Skin.HasSetting(Hide.RecentlyAdded) + !Skin.HasSetting(plexbmc) + SubString(Window(Home).Property(SkinWidgets_Recommended),t,left)">Recommended.Episodes.List</include>
<include condition="!Skin.HasSetting(Hide.RecentlyAdded) + !Skin.HasSetting(plexbmc) + SubString(Window(Home).Property(SkinWidgets_Recommended),t,left)">Recommended.Albums.List</include>
Remove "!Skin.HasSetting(plexbmc) +" from the shelves you want, e.g. for Movies and TV it becomes:
Code:
<include condition="!Skin.HasSetting(Hide.RecentlyAdded) + SubString(Window(Home).Property(SkinWidgets_RecentItems),t,left)">Recent.Movies.List</include>
<include condition="!Skin.HasSetting(Hide.RecentlyAdded) + !Skin.HasSetting(plexbmc) + SubString(Window(Home).Property(SkinWidgets_RecentItems),t,left)">Recent.Concerts.List</include>
<include condition="!Skin.HasSetting(Hide.RecentlyAdded) + SubString(Window(Home).Property(SkinWidgets_RecentItems),t,left)">Recent.Episodes.List</include>
<include condition="!Skin.HasSetting(Hide.RecentlyAdded) + !Skin.HasSetting(plexbmc) + SubString(Window(Home).Property(SkinWidgets_RecentItems),t,left)">Recent.Albums.List</include>
<include condition="!Skin.HasSetting(Hide.RecentlyAdded) + !Skin.HasSetting(plexbmc) + SubString(Window(Home).Property(SkinWidgets_RecentItems),t,left)">Recent.Clips.List</include>
<include condition="!Skin.HasSetting(Hide.RecentlyAdded) + [SubString(Window(Home).Property(SkinWidgets_Recommended),t,left) | SubString(Window(Home).Property(SkinWidgets_RandomItems),t,left)]">Recommended.And.Random.Movies.List</include>
<include condition="!Skin.HasSetting(Hide.RecentlyAdded) + !Skin.HasSetting(plexbmc) + SubString(Window(Home).Property(SkinWidgets_Recommended),t,left)">Recommended.Concerts.List</include>
<include condition="!Skin.HasSetting(Hide.RecentlyAdded) + SubString(Window(Home).Property(SkinWidgets_Recommended),t,left)">Recommended.Episodes.List</include>
<include condition="!Skin.HasSetting(Hide.RecentlyAdded) + !Skin.HasSetting(plexbmc) + SubString(Window(Home).Property(SkinWidgets_Recommended),t,left)">Recommended.Albums.List</include>
It goes without saying that if you don't need the shelves, this is unnecessary and a potential source of problems, and the suggested method of adding them to favorites and then to the home menu is better.