2009-10-13, 16:48
Done
skunkm0nkee Wrote:Done.
Pressing right from any item in the Movies/TV Shows submenus will take you to the relevant latest media area.
The Latest Movies/Episodes submenu items have now been removed.
xbs08 Wrote:i have to set my thumbs to 384 too but i have to delete the exported ones first
manojav Wrote:skunk,
is it possible to check for existence of a fanart image for a movie, if not show a thumb in the latest movies area of the poster, some movies like foreign movies seldom have fanart but most likely have thumbs.
Quote: fanart = "special://profile/Thumbnails/Video/%s/%s" % ( "Fanart", fanart_cache, )
# initial thumb path
thumb = "special://profile/Thumbnails/Video/%s/%s" % ( thumb_cache[ 0 ], thumb_cache, )
# if thumb does not exist use an auto generated thumb path
if ( not os.path.isfile( xbmc.translatePath( thumb ) ) ):
thumb = "special://profile/Thumbnails/Video/%s/auto-%s" % ( thumb_cache[ 0 ], thumb_cache, )
if ( not os.path.isfile( xbmc.translatePath( fanart ) ) ):
fanart = thumb
self.WINDOW.setProperty( "LatestMovie.%d.Thumb" % ( count + 1, ), thumb )
self.WINDOW.setProperty( "LatestMovie.%d.Fanart" % ( count + 1, ), fanart )
Index: latest.py
===================================================================
--- latest.py (revision 2324)
+++ latest.py (working copy)
@@ -126,13 +126,16 @@
# get cache names of path to use for thumbnail/fanart and play path
thumb_cache, fanart_cache, play_path = self._get_media( fields[ 24 ], fields[ 23 ] )
self.WINDOW.setProperty( "LatestMovie.%d.Path" % ( count + 1, ), play_path )
- self.WINDOW.setProperty( "LatestMovie.%d.Fanart" % ( count + 1, ), "special://profile/Thumbnails/Video/%s/%s" % ( "Fanart", fanart_cache, ) )
+ fanart = "special://profile/Thumbnails/Video/%s/%s" % ( "Fanart", fanart_cache, )
# initial thumb path
thumb = "special://profile/Thumbnails/Video/%s/%s" % ( thumb_cache[ 0 ], thumb_cache, )
# if thumb does not exist use an auto generated thumb path
if ( not os.path.isfile( xbmc.translatePath( thumb ) ) ):
thumb = "special://profile/Thumbnails/Video/%s/auto-%s" % ( thumb_cache[ 0 ], thumb_cache, )
+ if ( not os.path.isfile( xbmc.translatePath( fanart ) ) ):
+ fanart = thumb
self.WINDOW.setProperty( "LatestMovie.%d.Thumb" % ( count + 1, ), thumb )
+ self.WINDOW.setProperty( "LatestMovie.%d.Fanart" % ( count + 1, ), fanart )
def _fetch_tvshow_info( self ):
# set our unplayed query
@@ -160,13 +163,17 @@
# get cache names of path to use for thumbnail/fanart and play path
thumb_cache, fanart_cache, play_path = self._get_media( fields[ 24 ], fields[ 23 ] )
self.WINDOW.setProperty( "LatestEpisode.%d.Path" % ( count + 1, ), play_path )
- self.WINDOW.setProperty( "LatestEpisode.%d.Fanart" % ( count + 1, ), "special://profile/Thumbnails/Video/%s/%s" % ( "Fanart", fanart_cache, ) )
+ fanart = "special://profile/Thumbnails/Video/%s/%s" % ( "Fanart", fanart_cache, )
# initial thumb path
thumb = "special://profile/Thumbnails/Video/%s/%s" % ( thumb_cache[ 0 ], thumb_cache, )
# if thumb does not exist use an auto generated thumb path
if ( not os.path.isfile( xbmc.translatePath( thumb ) ) ):
thumb = "special://profile/Thumbnails/Video/%s/auto-%s" % ( thumb_cache[ 0 ], thumb_cache, )
self.WINDOW.setProperty( "LatestEpisode.%d.Thumb" % ( count + 1, ), thumb )
+ if ( not os.path.isfile ( xbmc.translatePath( fanart ) ) ):
+ fanart = thumb ;
+ self.WINDOW.setProperty( "LatestEpisode.%d.Fanart" % ( count + 1, ), fanart )
+
def _fetch_music_info( self ):
# sql statement
@@ -217,4 +224,4 @@
if ( __name__ == "__main__" ):
Main()
-
\ No newline at end of file
+
Waffa Wrote: perfect...
Btw, did a rebuild of my brother his xbox and have to mention it:
Your skin is so damn great !!!!
110 games with nice big custom covers
150 Movies in library
350 tv shows in library
300 music albums with artist/album, info/thumb.
All backgounds/fanart 1280x720..........and here it comes !!!!
All Thumbs are cached to userdata 384x384 (default xbox 192x192)
They look so freaking nice now on TV, even in exhibit view!
And no problems so far !
Tried also 512x512 but that was a when scrolling thru list the backgrounds didn't load properly.
It's time to rebuild my own xbox
manojav Wrote:I hacked up a latest.py to do the above.
basically does the same check on fanart as thumb and if there is no fanart there is guaranteed to be a thumb.
Code:Index: latest.py
===================================================================
--- latest.py (revision 2324)
+++ latest.py (working copy)
@@ -126,13 +126,16 @@
# get cache names of path to use for thumbnail/fanart and play path
thumb_cache, fanart_cache, play_path = self._get_media( fields[ 24 ], fields[ 23 ] )
self.WINDOW.setProperty( "LatestMovie.%d.Path" % ( count + 1, ), play_path )
- self.WINDOW.setProperty( "LatestMovie.%d.Fanart" % ( count + 1, ), "special://profile/Thumbnails/Video/%s/%s" % ( "Fanart", fanart_cache, ) )
+ fanart = "special://profile/Thumbnails/Video/%s/%s" % ( "Fanart", fanart_cache, )
# initial thumb path
thumb = "special://profile/Thumbnails/Video/%s/%s" % ( thumb_cache[ 0 ], thumb_cache, )
# if thumb does not exist use an auto generated thumb path
if ( not os.path.isfile( xbmc.translatePath( thumb ) ) ):
thumb = "special://profile/Thumbnails/Video/%s/auto-%s" % ( thumb_cache[ 0 ], thumb_cache, )
+ if ( not os.path.isfile( xbmc.translatePath( fanart ) ) ):
+ fanart = thumb
self.WINDOW.setProperty( "LatestMovie.%d.Thumb" % ( count + 1, ), thumb )
+ self.WINDOW.setProperty( "LatestMovie.%d.Fanart" % ( count + 1, ), fanart )
def _fetch_tvshow_info( self ):
# set our unplayed query
@@ -160,13 +163,17 @@
# get cache names of path to use for thumbnail/fanart and play path
thumb_cache, fanart_cache, play_path = self._get_media( fields[ 24 ], fields[ 23 ] )
self.WINDOW.setProperty( "LatestEpisode.%d.Path" % ( count + 1, ), play_path )
- self.WINDOW.setProperty( "LatestEpisode.%d.Fanart" % ( count + 1, ), "special://profile/Thumbnails/Video/%s/%s" % ( "Fanart", fanart_cache, ) )
+ fanart = "special://profile/Thumbnails/Video/%s/%s" % ( "Fanart", fanart_cache, )
# initial thumb path
thumb = "special://profile/Thumbnails/Video/%s/%s" % ( thumb_cache[ 0 ], thumb_cache, )
# if thumb does not exist use an auto generated thumb path
if ( not os.path.isfile( xbmc.translatePath( thumb ) ) ):
thumb = "special://profile/Thumbnails/Video/%s/auto-%s" % ( thumb_cache[ 0 ], thumb_cache, )
self.WINDOW.setProperty( "LatestEpisode.%d.Thumb" % ( count + 1, ), thumb )
+ if ( not os.path.isfile ( xbmc.translatePath( fanart ) ) ):
+ fanart = thumb ;
+ self.WINDOW.setProperty( "LatestEpisode.%d.Fanart" % ( count + 1, ), fanart )
+
def _fetch_music_info( self ):
# sql statement
@@ -217,4 +224,4 @@
if ( __name__ == "__main__" ):
Main()
-
\ No newline at end of file
+
tested it out for movies and tv.
if there is an easier way to do it in the skin, let me know.
skunkm0nkee Wrote:Great news.
I know the skin is one of those that doesn't look the flashiest in static screen shots but it does seem to work very smoothly and is fairly simple to use. Will have to put together a fancy video of it in action at some point.
in strings.xml
<string id="31222">Use Feels Like instead of Temperature</string>
Index: 720p/Home.xml
===================================================================
--- 720p/Home.xml (revision 2324)
+++ 720p/Home.xml (working copy)
@@ -81,12 +81,21 @@
<control type="label">
<font>SmallDefaultFont</font>
+ <include>HomeWeatherFeelsLikeText</include>
+ <visible>!Skin.HasSetting(ShowLargerClock) + Skin.HasSetting(UseFeelsLikeTemp)</visible>
+ </control>
+ <control type="label">
+ <include>HomeWeatherFeelsLikeText</include>
+ <visible>Skin.HasSetting(ShowLargerClock) + Skin.HasSetting(UseFeelsLikeTemp)</visible>
+ </control>
+ <control type="label">
+ <font>SmallDefaultFont</font>
<include>HomeWeatherTemperatureText</include>
- <visible>!Skin.HasSetting(ShowLargerClock)</visible>
+ <visible>!Skin.HasSetting(ShowLargerClock) + !Skin.HasSetting(UseFeelsLikeTemp)</visible>
</control>
<control type="label">
<include>HomeWeatherTemperatureText</include>
- <visible>Skin.HasSetting(ShowLargerClock)</visible>
+ <visible>Skin.HasSetting(ShowLargerClock)+ !Skin.HasSetting(UseFeelsLikeTemp) </visible>
</control>
</control>
</control>
Index: 720p/Includes.xml
===================================================================
--- 720p/Includes.xml (revision 2324)
+++ 720p/Includes.xml (working copy)
@@ -832,6 +832,17 @@
<aligny>center</aligny>
<label>$INFO[Weather.Temperature]</label>
</include>
+
+ <include name="HomeWeatherFeelsLikeText">
+ <posx>320</posx>
+ <posy>24</posy>
+ <width>75</width>
+ <height>34</height>
+ <textcolor>Selected</textcolor>
+ <align>left</align>
+ <aligny>center</aligny>
+ <label>$INFO[Window(Weather).Property(Current.FeelsLike)] °C</label>
+ </include>
<include name="LatestMediaBG">
<control type="image">
grupy Wrote:Im not skunk but that is once slick view
xbs08 Wrote:Indeed
On the latest videos... only thing i dont like is that you cant cycle thru, should be like in list views, when you hit the latest item and press down you go to the first one and vice-versa.
Waffa Wrote:Lol, it's do-able. look to the mod xbs08 made.
http://forum.xbmc.org/showthread.php?tid=54981
@@ -667,9 +673,11 @@
</control>
<control type="list" id="450">
- <include>LatestMediaList</include>
+ <include>LatestMediaList</include>
- <itemlayout width="236" height="38">
+ <onup>450</onup>
+ <ondown>450</ondown>
+ <itemlayout width="236" height="38">
<control type="label">
<posx>4</posx>
<width>228</width>
@@ -779,6 +787,8 @@
<height>160</height>
<include>LatestMediaList</include>
+ <onup>451</onup>
+ <ondown>451</ondown>
<itemlayout width="236" height="38">
<control type="label">
<posx>4</posx>