2009-04-02, 08:51
I didn't see a mailing list for the xbox-addons, but I could have missed it. I am pretty sure this is the wrong place, so please redirect me.
I am attaching a minor patch to the picasa plugin. It has a small problem if there is a single quotation mark in the title of a gallery -- this fixes that problem.
--- xbmcplugin_photos.py.old Thu Apr 2 01:22:48 2009
+++ xbmcplugin_photos.py Thu Apr 2 01:22:54 2009
@@ -50,7 +50,7 @@
def _parse_argv( self ):
# call _Info() with our formatted argv to create the self.args object
- exec "self.args = _Info(%s)" % ( unquote_plus( sys.argv[ 2 ][ 1 : ] ).replace( "&", ", " ).replace( "\\u0027", "'" ).replace( "\\u0022", '"' ).replace( "\\u0026", "&" ), )
+ exec "self.args = _Info(%s)" % ( unquote_plus( sys.argv[ 2 ][ 1 : ].replace("%27s","\\'") ).replace( "&", ", " ).replace( "\\u0027", "'" ).replace( "\\u0022", '"' ).replace( "\\u0026", "&" ), )
def _get_authkey( self ):
self.authkey = xbmcplugin.getSetting( "authkey" )
I am attaching a minor patch to the picasa plugin. It has a small problem if there is a single quotation mark in the title of a gallery -- this fixes that problem.
--- xbmcplugin_photos.py.old Thu Apr 2 01:22:48 2009
+++ xbmcplugin_photos.py Thu Apr 2 01:22:54 2009
@@ -50,7 +50,7 @@
def _parse_argv( self ):
# call _Info() with our formatted argv to create the self.args object
- exec "self.args = _Info(%s)" % ( unquote_plus( sys.argv[ 2 ][ 1 : ] ).replace( "&", ", " ).replace( "\\u0027", "'" ).replace( "\\u0022", '"' ).replace( "\\u0026", "&" ), )
+ exec "self.args = _Info(%s)" % ( unquote_plus( sys.argv[ 2 ][ 1 : ].replace("%27s","\\'") ).replace( "&", ", " ).replace( "\\u0027", "'" ).replace( "\\u0022", '"' ).replace( "\\u0026", "&" ), )
def _get_authkey( self ):
self.authkey = xbmcplugin.getSetting( "authkey" )