This file looks large and may slow your browser down if we attempt
to syntax highlight it, so we are showing it without any
pretty colors.
Highlight
it anyway.
| 1 |
import xbmc |
| 2 |
import xbmcgui |
| 3 |
import libpandora.keys |
| 4 |
import libpandora.pandora |
| 5 |
|
| 6 |
if __name__ == '__main__': |
| 7 |
dlg = xbmcgui.DialogProgress() |
| 8 |
dlg.create( "PANDORA", "ReFetching Keys..." ) |
| 9 |
dlg.update( 0 ) |
| 10 |
dataDir = "special://profile/addon_data/script.xbmc.pandora" |
| 11 |
dataDir = xbmc.translatePath( dataDir ) |
| 12 |
proto = libpandora.pandora.PROTOCOL_VERSION |
| 13 |
keys = libpandora.keys.Keys( dataDir, proto ) |
| 14 |
keys.forceReFetch() |
| 15 |
dlg.close() |