aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortheuni <theuni@svn>2010-12-17 05:06:43 +0000
committertheuni <theuni@svn>2010-12-17 05:06:43 +0000
commit3a1df2451ef8d09b844fc90ce9cf9117a938c653 (patch)
tree8b8dda9697820ec9d285dbfe81876a91886ec234
parent5ae15e67236f4926e1505a09fde487c0705e7edd (diff)
sync scripts.recentlyadded from addons repo
(cherry picked from commit 23cfddf1fb53838f4f4fe0595d6606b63e8ef701) git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/branches/Dharma@35646 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
-rw-r--r--addons/script.recentlyadded/RecentlyAdded.py8
-rw-r--r--addons/script.recentlyadded/addon.xml2
2 files changed, 5 insertions, 5 deletions
diff --git a/addons/script.recentlyadded/RecentlyAdded.py b/addons/script.recentlyadded/RecentlyAdded.py
index 810f3dd480..c7beff1534 100644
--- a/addons/script.recentlyadded/RecentlyAdded.py
+++ b/addons/script.recentlyadded/RecentlyAdded.py
@@ -178,7 +178,7 @@ class Main:
def _fetch_movie_info( self ):
# set our unplayed query
- unplayed = ( "", "where playCount isnull ", )[ self.UNPLAYED ]
+ unplayed = ( "", "where playCount is null ", )[ self.UNPLAYED ]
# sql statement
if ( self.RANDOM_ORDER ):
# random order
@@ -220,7 +220,7 @@ class Main:
def _fetch_tvshow_info( self ):
# set our unplayed query
- unplayed = ( "", "where playCount isnull ", )[ self.UNPLAYED ]
+ unplayed = ( "", "where playCount is null ", )[ self.UNPLAYED ]
# sql statement
if ( self.RANDOM_ORDER ):
# random order
@@ -271,7 +271,7 @@ class Main:
# separate the records
albums = re.findall( "<record>(.+?)</record>", music_xml, re.DOTALL )
# set our unplayed query
- unplayed = ( "(idAlbum = %s)", "(idAlbum = %s and lastplayed isnull)", )[ self.UNPLAYED ]
+ unplayed = ( "(idAlbum = %s)", "(idAlbum = %s and lastplayed is null)", )[ self.UNPLAYED ]
# sql statement
sql_music = "select songview.* from songview where %s limit 1" % ( unplayed, )
# clear our xml data
@@ -282,7 +282,7 @@ class Main:
music_xml += xbmc.executehttpapi( "QueryMusicDatabase(%s)" % quote_plus( sql_music % ( album.replace( "<field>", "" ).replace( "</field>", "" ), ) ), )
else:
# set our unplayed query
- unplayed = ( "", "where lastplayed isnull ", )[ self.UNPLAYED ]
+ unplayed = ( "", "where lastplayed is null ", )[ self.UNPLAYED ]
# sql statement
sql_music = "select * from songview %sorder by idSong desc limit %d" % ( unplayed, self.LIMIT, )
# query the database
diff --git a/addons/script.recentlyadded/addon.xml b/addons/script.recentlyadded/addon.xml
index e26915c657..62c393ff99 100644
--- a/addons/script.recentlyadded/addon.xml
+++ b/addons/script.recentlyadded/addon.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="script.recentlyadded"
name="Recently Added XBMC Script"
- version="2.0.1"
+ version="2.0.2"
provider-name="alex">
<requires>
<import addon="xbmc.python" version="1.0"/>