<s> '''<STR_LIT>''' <EOL> def get ( version ) : <EOL> try : <EOL> import xbmc , xbmcgui , xbmcaddon , xbmcvfs <EOL> f = xbmcvfs . File ( xbmcaddon . Addon ( ) . getAddonInfo ( '<STR_LIT>' ) ) <EOL> text = f . read ( ) ; f . close ( ) <EOL> label = '<STR_LIT>' % ( xbmc . getLocalizedString ( <NUM_LIT> ) , xbmcaddon . Addon ( ) . getAddonInfo ( '<STR_LIT:name>' ) ) <EOL> id = <NUM_LIT> <EOL> xbmc . executebuiltin ( '<STR_LIT>' % id ) <EOL> xbmc . sleep ( <NUM_LIT:100> ) <EOL> win = xbmcgui . Window ( id ) <EOL> retry = <NUM_LIT:50> <EOL> while ( retry > <NUM_LIT:0> ) : <EOL> try : <EOL> xbmc . sleep ( <NUM_LIT:10> ) <EOL> win . getControl ( <NUM_LIT:1> ) . setLabel ( label ) <EOL> win . getControl ( <NUM_LIT:5> ) . setText ( text ) <EOL> retry = <NUM_LIT:0> <EOL> except : <EOL> retry -= <NUM_LIT:1> <EOL> return '<STR_LIT:1>' <EOL> except : <EOL> return '<STR_LIT:1>' </s>
