-
Notifications
You must be signed in to change notification settings - Fork 626
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<atv> | ||
<body> | ||
<search id="plex-search"> | ||
<header> | ||
<simpleHeader> | ||
<title>{{TEXT(Search)}} PlexConnect</title> | ||
</simpleHeader> | ||
</header> | ||
<baseURL>{{URL(:/PMS(all)/search::PlexConnect=Search_ResultsAllPMS&type=4&query=)}}</baseURL> | ||
</search> | ||
</body> | ||
</atv> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,142 @@ | ||
<atv> | ||
<head> | ||
<script src="{{URL(:/js/utils.js)}}" /> | ||
</head> | ||
|
||
<body> | ||
<searchResults id="searchResults"> | ||
<menu> | ||
<sections> | ||
|
||
<!-- Movies --> | ||
<!-- servers --> | ||
<__COPY__> <!--<menuSection>{{COPY}} somehow conflicts with </menuSection>{{CUT}}--> | ||
{{COPY(Server:@main/size::0=|1=COPY)}} | ||
<menuSection> | ||
|
||
<header> | ||
<horizontalDivider alignment="left"> | ||
<title>{{TEXT(Movies)}} <{{VAL(name)}}{{VAL(local::0=, {{TEXT(remote)}}|0 =)}}></title> | ||
</horizontalDivider> | ||
</header> | ||
<items>{{VAR(cut:NoKey:CUT)}} <!--this sets the var to CUT--> | ||
<twoLineEnhancedMenuItem id="{{VAL(key)}}" | ||
onPlay="atv.loadURL('{{URL(key:::PlexConnect=Play_Video&PlexConnectRatingKey={{VAL(ratingKey)}})}}')" | ||
onSelect="atv.loadURL('{{URL(key:::includeExtras=1&PlexConnect=Movie_PrePlay{{VAL($fanart::Hide=|Show=_Fanart)}})}}')"> | ||
{{COPY(Video:type::=|movie=COPY|movie =)}} | ||
{{VAR(cut:NoKey:)}} <!--this sets the var to None--> | ||
<label>{{VAL(title)}}</label> | ||
<image>{{IMAGEURL(thumb::384)}}</image> | ||
<defaultImage>resource://Poster.png</defaultImage> | ||
</twoLineEnhancedMenuItem> | ||
</items> | ||
</menuSection>{{CUT(#cut)}} | ||
</__COPY__> | ||
|
||
<!-- Shows --> | ||
<!-- servers --> | ||
<__COPY__> <!--<menuSection>{{COPY}} somehow conflicts with </menuSection>{{CUT}}--> | ||
{{COPY(Server:@main/size::0=|1=COPY)}} | ||
<menuSection> | ||
|
||
<header> | ||
<horizontalDivider alignment="left"> | ||
<title>{{TEXT(Shows)}} <{{VAL(name)}}{{VAL(local::0=, {{TEXT(remote)}}|0 =)}}></title> | ||
</horizontalDivider> | ||
</header> | ||
<items>{{VAR(cut:NoKey:CUT)}} <!--this sets the var to CUT--> | ||
<twoLineEnhancedMenuItem id="{{VAL(key)}}" | ||
onPlay="atv.loadURL('{{URL(key:::PlexConnect=TVShow_Season)}}')" | ||
onSelect="atv.loadURL('{{URL(key:::PlexConnect=TVShow_Season)}}')"> | ||
{{COPY(Directory:type::=|show=COPY|show =)}} | ||
{{VAR(cut:NoKey:)}} <!--this sets the var to None--> | ||
<label>{{VAL(title)}}</label> | ||
<image>{{IMAGEURL(thumb::384)}}</image> | ||
<defaultImage>resource://Poster.png</defaultImage> | ||
</twoLineEnhancedMenuItem> | ||
</items> | ||
</menuSection>{{CUT(#cut)}} | ||
</__COPY__> | ||
|
||
<!-- Episodes --> | ||
<!-- servers --> | ||
<__COPY__> <!--<menuSection>{{COPY}} somehow conflicts with </menuSection>{{CUT}}--> | ||
{{COPY(Server:@main/size::0=|1=COPY)}} | ||
<menuSection> | ||
|
||
<header> | ||
<horizontalDivider alignment="left"> | ||
<title>{{TEXT(Episodes)}} <{{VAL(name)}}{{VAL(local::0=, {{TEXT(remote)}}|0 =)}}></title> | ||
</horizontalDivider> | ||
</header> | ||
<items>{{VAR(cut:NoKey:CUT)}} <!--this sets the var to CUT--> | ||
<twoLineEnhancedMenuItem id="{{VAL(key)}}" | ||
onPlay="atv.loadURL('{{URL(key:::PlexConnect=Play_Video&PlexConnectRatingKey={{VAL(ratingKey)}})}}')" | ||
onSelect="atv.loadURL('{{URL(key:::includeExtras=1&PlexConnect=Movie_PrePlay{{VAL($fanart::Hide=|Show=_Fanart)}})}}')"> | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
iBaa
Author
Owner
|
||
{{COPY(Video:type::=|episode=COPY|episode =)}} | ||
{{VAR(cut:NoKey:)}} <!--this sets the var to None--> | ||
<label>{{VAL(title)}}</label> | ||
<label2>{{VAL(grandparentTitle)}}</label2> | ||
<image>{{IMAGEURL(thumb::384)}}</image> | ||
<defaultImage>resource://Poster.png</defaultImage> | ||
</twoLineEnhancedMenuItem> | ||
</items> | ||
</menuSection>{{CUT(#cut)}} | ||
</__COPY__> | ||
|
||
<!-- Albums --> | ||
<!-- servers --> | ||
<__COPY__> <!--<menuSection>{{COPY}} somehow conflicts with </menuSection>{{CUT}}--> | ||
{{COPY(Server:@main/size::0=|1=COPY)}} | ||
<menuSection> | ||
|
||
<header> | ||
<horizontalDivider alignment="left"> | ||
<title>{{TEXT(Albums)}} <{{VAL(name)}}{{VAL(local::0=, {{TEXT(remote)}}|0 =)}}></title> | ||
</horizontalDivider> | ||
</header> | ||
<items>{{VAR(cut:NoKey:CUT)}} <!--this sets the var to CUT--> | ||
<twoLineEnhancedMenuItem id="{{VAL(key)}}" | ||
onPlay="atv.loadURL('{{URL(key:::PlexConnect=Music_Track)}}')" | ||
onSelect="atv.loadURL('{{URL(key:::PlexConnect=Music_Track)}}')"> | ||
{{COPY(Directory:type::=|album=COPY|album =)}} | ||
{{VAR(cut:NoKey:)}} <!--this sets the var to None--> | ||
<label>{{VAL(title)}}</label> | ||
<label2>{{VAL(parentTitle)}}</label2> | ||
<image>{{IMAGEURL(thumb::384)}}</image> | ||
<defaultImage>resource://Poster.png</defaultImage> | ||
</twoLineEnhancedMenuItem> | ||
</items> | ||
</menuSection>{{CUT(#cut)}} | ||
</__COPY__> | ||
|
||
<!-- Artists --> | ||
<!-- servers --> | ||
<__COPY__> <!--<menuSection>{{COPY}} somehow conflicts with </menuSection>{{CUT}}--> | ||
{{COPY(Server:@main/size::0=|1=COPY)}} | ||
<menuSection> | ||
|
||
<header> | ||
<horizontalDivider alignment="left"> | ||
<title>{{TEXT(Artists)}} <{{VAL(name)}}{{VAL(local::0=, {{TEXT(remote)}}|0 =)}}></title> | ||
</horizontalDivider> | ||
</header> | ||
<items>{{VAR(cut:NoKey:CUT)}} <!--this sets the var to CUT--> | ||
<twoLineEnhancedMenuItem id="{{VAL(key)}}" | ||
onPlay="atv.loadURL('{{URL(key:::PlexConnect=Music_Directory)}}')" | ||
onSelect="atv.loadURL('{{URL(key:::PlexConnect=Music_Directory)}}')"> | ||
{{COPY(Directory:type::=|artist=COPY|artist =)}} | ||
{{VAR(cut:NoKey:)}} <!--this sets the var to None--> | ||
<label>{{VAL(title)}}</label> | ||
<image>{{IMAGEURL(thumb::384)}}</image> | ||
<defaultImage>resource://Poster.png</defaultImage> | ||
</twoLineEnhancedMenuItem> | ||
</items> | ||
</menuSection>{{CUT(#cut)}} | ||
</__COPY__> | ||
|
||
</sections> | ||
</menu> | ||
</searchResults> | ||
</body> | ||
</atv> |
6 comments
on commit 7d35c20
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Umm.. doesn't this now make the "Search" item under library obsolete? Do we really need search in two different places?
Also can we please remove the server name if there is only one, like we do for the library view.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Search" item under library
Hm, I would keep the server based search. Not sure if it's needed, but the overrall search can get very crowded with mulitple servers/results.
remove server name
Yep, I guess.
Another thing I thought about - pre-select the type of media you are looking for. Like Select&Hold on Search, showing a sub-menu with Movie, Show, Episode, ... to only request this kind from PMS. Not quite sure how to implement it, but it would be a way to reduce useless (as in not needed right now) clutter as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, I would keep the server based search.
But for a lot of users, me included, who only have one server it's redundant. Now we have two searches that do exactly the same thing, kind of pointless :(
If you really don't want to get rid of the search in library then at least add a setting to hide the "Search" in the navbar so users with a single server don't have two searches that do the same thing.
Another thing I thought about - pre-select the type of media you are looking for. Like Select&Hold on Search, showing a sub-menu with Movie, Show, Episode, ...
Unfortunately you can't do a onHoldSelect or any kind of keypress query on a navbar item :(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not just add a option to hide the Search tab like the rest of the tabs already have? Also for users with 25+ shared/owned/remote servers this is nice ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not just add a option to hide the Search tab like the rest of the tabs already have?
Good idea.... no wait.... didn't I just say the same thing ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yes you did. Don't know how I missed that...
This is the incorrect preplay :( It should be:-
PlexConnect=TVShow_PrePlay.....