Skip to content

Commit

Permalink
fixed issue with photo channels. tested against iPhoto plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
iBaa committed Jun 2, 2013
1 parent 34fa2ba commit 8b8b25c
Showing 1 changed file with 21 additions and 7 deletions.
28 changes: 21 additions & 7 deletions assets/templates/Photo.xml
Expand Up @@ -17,6 +17,7 @@
</headerWithCountAndButtons>
</header>
<items>
<!--directory-->
<photo id="{{VAL(ratingKey)}}" onSelect="atv.loadURL('http://trailers.apple.com{{ADDPATH(key)}}')">
{{COPY(Directory)}}
<assets>
Expand All @@ -26,20 +27,33 @@
<directory>true</directory>
</stash>
</photo>

<photo id="{{VAL(ratingKey)}}" onSelect="onSelectPhoto({{VAL(ratingKey)}})">
{{COPY(Photo)}}

<!--Library/Photo-->
<photo id="{{VAL(ratingKey)}}" onSelect="onSelectPhoto('{{VAL(ratingKey)'}})">
{{COPY(Photo:Media/Part/key::=COPY)}}
<caption>test</caption>
<assets>
<photoAsset width="0" height="0" src="{{IMAGEURL(Media/Part/key)}}"/>{{CUT(Media/Part/key:CUT:=)}}
<photoAsset width="0" height="0" src="{{IMAGEURL(key)}}"/>{{CUT(Media/Part/key::=CUT)}}
<photoAsset width="0" height="0" src="{{IMAGEURL(Media/Part/key)}}"/>
</assets>
<stash>
<url>{{URL(Media/Part/key)}}</url>{{CUT(Media/Part/key:CUT:=)}}
<url>{{URL(key)}}</url>{{CUT(Media/Part/key::=CUT)}}
<url>{{URL(Media/Part/key)}}</url>
<directory>false</directory>
</stash>
</photo>

<!--Photo channel-->
<photo id="{{VAL(key)}}" onSelect="onSelectPhoto('{{VAL(key)}}')">
{{COPY(Photo:Media/Part/key:COPY:=)}}
<caption>test</caption>
<assets>
<photoAsset width="0" height="0" src="{{IMAGEURL(key)}}"/>
</assets>
<stash>
<url>{{URL(key)}}</url>
<directory>false</directory>
</stash>
</photo>

</items>
</mediaBrowser>
</body>
Expand Down

0 comments on commit 8b8b25c

Please sign in to comment.