The branch, dharma-pre has been updated
via ab62fdec60e5f56ff59906ff8bcf83c31912f3b1 (commit)
via 3abbc59375c928d20bc8148dfb2c360388f09e0f (commit)
from 95b807af26338eeeb76f230d8fdf395a9cb6b326 (commit)
- Log -----------------------------------------------------------------
http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/scripts;a=commit;h=ab62fdec60e5f56ff59906ff8bcf83c31912f3b1
commit ab62fdec60e5f56ff59906ff8bcf83c31912f3b1
Author: amet <a...@nospam>
Date: Sun Nov 7 22:01:38 2010 +0400
[script.image.bigpictures] -v1.3.2
Changed: Don't use 'os.getcwd()'
Improved: author, name, id, version only at one place
Improved: Make it possible for skins to override the scripts skin (thanks
to Jeroen)
diff --git a/script.image.bigpictures/addon.xml
b/script.image.bigpictures/addon.xml
index 33f2832..8288568 100644
--- a/script.image.bigpictures/addon.xml
+++ b/script.image.bigpictures/addon.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<addon id="script.image.bigpictures" name="The Big Picture" version="1.3.1"
provider-name="sphere, rwparris2">
+<addon id="script.image.bigpictures" name="The Big Picture" version="1.3.2"
provider-name="sphere">
<requires>
<import addon="xbmc.python" version="1.0"/>
<import addon="script.module.beautifulsoup" version="3.0.8"/>
@@ -11,7 +11,9 @@
<platform>all</platform>
<summary lang="de">Zeigt Alben/Bilder von Photojournalismus-Seiten wie
Boston.com's "The Big Pictures"</summary>
<summary lang="en">Shows Albums/Pictures from photojournalism site's like
Boston.com's 'The Big Picture'</summary>
+ <summary lang="nl">Bladen door fotojournalistiek albums en afbeeldingen
zoals Boston.com's 'The Big Picture'</summary>
<description lang="de">Die Quelle kann mit hoch und runter gewechselt
werden - das album mit links und rechts[CR]Mit select wird das Album
geöffnet.[CR]Herunterladen der Bilder ist mit der Kontext-Menu Taste
möglich.[CR]Aktuell sind die folgenden Quellen verfügbar:[CR] - Boston.com:
The Big Picture[CR] - Boston.com: The Big Shot[CR] - Sacramento Bee: The
Frame[CR] - Wallstreetjournal: The Photo Journal</description>
<description lang="en">You can switch the source with up and down, switch
the album with left and right[CR]With select-key you can enter an album to view
its content.[CR]Picture Downloading is possible with the context menu
key.[CR]Currently the following Sources are included:[CR] - Boston.com: The Big
Picture[CR] - Boston.com: The Big Shot[CR] - Sacramento Bee: The Frame[CR] -
Wallstreetjournal: The Photo Journal</description>
+ <description lang="nl">U kunt de bron veranderen door de Boven en Beneden
toets te gebruiken; wisselen van album door de Links en Rechts toets te
gebruiken [CR]Met de Enter toets bekijkt u de inhoud van het
album.[CR]Afbeeldingen downloaden is mogelijk door gebruik te maken van het
Context menu.[CR]De volgende bronnen zijn aanwezig:[CR] - Boston.com: The Big
Picture[CR] - Boston.com: The Big Shot[CR] - Sacramento Bee: The Frame[CR] -
Wallstreetjournal: The Photo Journal</description>
</extension>
</addon>
diff --git a/script.image.bigpictures/changelog.txt
b/script.image.bigpictures/changelog.txt
index 81392ef..fd0ffc5 100644
--- a/script.image.bigpictures/changelog.txt
+++ b/script.image.bigpictures/changelog.txt
@@ -1,3 +1,8 @@
+1.3.2
+ Changed: Don't use 'os.getcwd()'
+ Improved: author, name, id, version only at one place
+ Improved: Make it possible for skins to override the scripts skin (thanks to
Jeroen)
+
1.3.1
Fixed: Crash/Hang when using Alaska/Rapier-Skin
diff --git a/script.image.bigpictures/readme b/script.image.bigpictures/readme
index 2917a2d..735fad7 100644
--- a/script.image.bigpictures/readme
+++ b/script.image.bigpictures/readme
@@ -1,10 +1,9 @@
Credits
[email protected]
-This Addon/Script is ported to be Dharma-addon compatible by sphere with the
permission of rwparris2.
+This Script was ported in Sep 2009 by rwparris2 ([email protected]) from the
original BOXEE App.
+Since Sep 2010 it is ported to dharma and further developed by sphere
([email protected]).
+
+If you have any questions or suggests please write to [email protected]
[email protected]
-This script was based on one done by team BOXEE (boxee.tv | ).
black.png, left.png, right.png, and default.tbn are from the original BOXEE App
main.xml is based on the one in the original BOXEE app.
-The rest was done by rwparris2.
diff --git a/script.image.bigpictures/resources/lib/gui.py
b/script.image.bigpictures/resources/lib/gui.py
index c665e1d..209ef57 100644
--- a/script.image.bigpictures/resources/lib/gui.py
+++ b/script.image.bigpictures/resources/lib/gui.py
@@ -1,4 +1,4 @@
-import os
+import sys
import xbmcgui
import imageDownloader
@@ -8,8 +8,7 @@ import tbp_scraper
import sbb_scraper
import wsj_scraper
-_id = os.path.basename(os.getcwd())
-Addon = xbmcaddon.Addon(_id)
+Addon = sys.modules['__main__'].Addon
#enable localization
getLS = Addon.getLocalizedString
diff --git a/script.image.bigpictures/resources/lib/imageDownloader.py
b/script.image.bigpictures/resources/lib/imageDownloader.py
index 3be13ca..42e4201 100644
--- a/script.image.bigpictures/resources/lib/imageDownloader.py
+++ b/script.image.bigpictures/resources/lib/imageDownloader.py
@@ -6,8 +6,7 @@ import xbmc
import xbmcgui
import xbmcaddon
-_id = os.path.basename(os.getcwd())
-Addon = xbmcaddon.Addon(_id)
+Addon = sys.modules['__main__'].Addon
#enable localization
getLS = Addon.getLocalizedString
diff --git a/script.image.bigpictures/runscript.py
b/script.image.bigpictures/runscript.py
index d092a07..cae517d 100644
--- a/script.image.bigpictures/runscript.py
+++ b/script.image.bigpictures/runscript.py
@@ -1,16 +1,20 @@
-import os
import sys
+import xbmcaddon
+
+Addon = xbmcaddon.Addon('script.image.bigpictures')
# Script constants
-__scriptname__ = 'The Big Picture'
-__author__ = 'sphere, rwparris2'
-__version__ = '1.3.0'
+__scriptname__ = Addon.getAddonInfo('name')
+__id__ = Addon.getAddonInfo('id')
+__author__ = Addon.getAddonInfo('author')
+__version__ = Addon.getAddonInfo('version')
+__path__ = Addon.getAddonInfo('path')
print '[SCRIPT][%s] version %s initialized!' % (__scriptname__, __version__)
if (__name__ == '__main__'):
import resources.lib.gui as gui
- ui = gui.GUI( 'main.xml', os.getcwd(), 'default' )
+ ui = gui.GUI( 'script-' + __scriptname__ + '-main.xml', __path__,
'default' )
ui.doModal()
del ui
sys.modules.clear()
http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/scripts;a=commit;h=3abbc59375c928d20bc8148dfb2c360388f09e0f
commit 3abbc59375c928d20bc8148dfb2c360388f09e0f
Author: amet <a...@nospam>
Date: Sun Nov 7 21:59:20 2010 +0400
[script.randomitems] -v 1.0.5
-fixed: error when using Album=True
diff --git a/script.randomitems/RandomItems.py
b/script.randomitems/RandomItems.py
index 1677104..348b30e 100644
--- a/script.randomitems/RandomItems.py
+++ b/script.randomitems/RandomItems.py
@@ -143,7 +143,9 @@ class Main:
def _fetch_music_info( self ):
# sql statement
if ( self.ALBUMS ):
- sql_music = "select idAlbum from albumview order by RANDOM() limit
%d" % ( self.LIMIT, )
+ sql_music = "select idAlbum from albumview order by idAlbum desc
limit %d" % ( self.LIMIT, )
+ # query the database for recently added albums
+ music_xml = xbmc.executehttpapi( "QueryMusicDatabase(%s)" %
quote_plus( sql_music ), )
# separate the records
albums = re.findall( "<record>(.+?)</record>", music_xml,
re.DOTALL )
# set our unplayed query
diff --git a/script.randomitems/addon.xml b/script.randomitems/addon.xml
index f2f4b44..b425f37 100644
--- a/script.randomitems/addon.xml
+++ b/script.randomitems/addon.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<addon id="script.randomitems" name="Random Items script" version="1.0.4"
provider-name="Hitcher">
+<addon id="script.randomitems" name="Random Items script" version="1.0.5"
provider-name="Hitcher">
<requires>
<import addon="xbmc.python" version="1.0"/>
</requires>
-----------------------------------------------------------------------
Summary of changes:
script.image.bigpictures/addon.xml | 4 ++-
script.image.bigpictures/changelog.txt | 5 ++++
script.image.bigpictures/readme | 9 +++----
.../resources/language/Dutch/strings.xml | 22 ++++++++++++++++++++
script.image.bigpictures/resources/lib/gui.py | 5 +--
.../resources/lib/imageDownloader.py | 3 +-
.../{main.xml => script-The Big Picture-main.xml} | 0
script.image.bigpictures/runscript.py | 14 ++++++++----
script.randomitems/RandomItems.py | 4 ++-
script.randomitems/addon.xml | 2 +-
10 files changed, 50 insertions(+), 18 deletions(-)
create mode 100644
script.image.bigpictures/resources/language/Dutch/strings.xml
rename script.image.bigpictures/resources/skins/default/720p/{main.xml =>
script-The Big Picture-main.xml} (100%)
hooks/post-receive
--
Scripts
------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a
Billion" shares his insights and actions to help propel your
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons