Permalink
Browse files

FIXED: Playing Album from latest added widget

  • Loading branch information...
1 parent 85fd7e8 commit 183f813aa07c620517fac44e0bca7402657c8dfd @phil65 phil65 committed Sep 18, 2009
Showing with 3 additions and 6 deletions.
  1. +3 −6 extras/RecentlyAdded.py
@@ -1,9 +1,6 @@
-import xbmc
-from xbmcgui import Window
+import xbmc, re, sys, os
+from xbmcgui import Window, ListItem
from urllib import quote_plus, unquote_plus
-import re
-import sys
-import os
# Current Working Directory
CWD = os.getcwd()
if CWD[-1] == ';': CWD = CWD[0:-1]
@@ -246,7 +243,7 @@ def _fetch_music_info( self ):
self.WINDOW.setProperty( "LatestSong.%d.Album" % ( count + 1, ), fields[ 1 ] )
self.WINDOW.setProperty( "LatestSong.%d.Review" % ( count + 1, ), fields[ 14 ] )
# Album Path (ID)
- path = 'XBMC.RunScript(' + CWD + 'extras.py,albumid=' + fields[ 0 ] + ')'
+ path = 'XBMC.RunScript(' + CWD + 'recentlyadded.py,albumid=' + fields[ 0 ] + ')'
self.WINDOW.setProperty( "LatestSong.%d.Path" % ( count + 1, ), path )
# get cache name of path to use for fanart
cache_name = xbmc.getCacheThumbName( fields[ 6 ] )

0 comments on commit 183f813

Please sign in to comment.