File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" standalone =" yes" ?>
2- <addon id =" plugin.program.steam.library" name =" Steam Library" version =" 0.7 .0" provider-name =" aanderse" >
2+ <addon id =" plugin.program.steam.library" name =" Steam Library" version =" 0.8 .0" provider-name =" aanderse" >
33 <requires >
4- <import addon =" xbmc.python" version =" 2.19 .0" />
4+ <import addon =" xbmc.python" version =" 3.0 .0" />
55 <import addon =" script.module.requests" version =" 2.18.4" />
66 <import addon =" script.module.requests-cache" version =" 0.4.13" />
77 <import addon =" script.module.routing" version =" 0.2.0" />
4343 - added support for more arts types and views for games, such as posters
4444 - added play time information and sorting games by play time
4545 - Offline support of the game lists, with a caching mechanism of the Steam API responses
46+ v0.8.0 (2021-03-12)
47+ - ported to kodi 19.x
4648 </news >
4749 <assets >
4850 <icon >icon.png</icon >
Original file line number Diff line number Diff line change 66import requests
77import requests_cache
88
9- from util import log
9+ from . util import log
1010
1111__addon__ = xbmcaddon .Addon ()
1212artFallbackEnabled = __addon__ .getSetting ("enable-art-fallback" ) == 'true' # Kodi stores boolean settings as strings
1313monthsBeforeArtsExpiration = int (__addon__ .getSetting ("arts-expire-after-months" )) # Default is 2 months
1414
1515# define the cache file to reside in the ..\Kodi\userdata\addon_data\(your addon)
16- addonUserDataFolder = xbmc .translatePath (__addon__ .getAddonInfo ('profile' )). decode ( 'utf-8' )
16+ addonUserDataFolder = xbmc .translatePath (__addon__ .getAddonInfo ('profile' ))
1717ART_AVAILABILITY_CACHE_FILE = xbmc .translatePath (os .path .join (addonUserDataFolder , 'requests_cache_arts' ))
1818
1919cached_requests = requests_cache .core .CachedSession (ART_AVAILABILITY_CACHE_FILE , backend = 'sqlite' ,
Original file line number Diff line number Diff line change 33import sys
44import xbmcplugin
55
6- import arts
7- import registry
8- import steam
9- from util import *
6+ from . import arts
7+ from . import registry
8+ from . import steam
9+ from . util import *
1010
1111__addon__ = xbmcaddon .Addon ()
1212
Original file line number Diff line number Diff line change 44
55import os
66import xbmc
7- from util import *
7+ from . util import *
88
99if os .name == 'nt' :
1010 import _winreg
Original file line number Diff line number Diff line change 1010import requests
1111import requests_cache
1212
13- from util import log
13+ from . util import log
1414
1515__addon__ = xbmcaddon .Addon ()
1616minutesBeforeGamesListsExpiration = int (__addon__ .getSetting ("games-expire-after-minutes" )) # Default is 3 days
1717
1818# define the cache file to reside in the ..\Kodi\userdata\addon_data\(your addon)
19- addonUserDataFolder = xbmc .translatePath (__addon__ .getAddonInfo ('profile' )). decode ( 'utf-8' )
19+ addonUserDataFolder = xbmc .translatePath (__addon__ .getAddonInfo ('profile' ))
2020STEAM_GAMES_CACHE_FILE = xbmc .translatePath (os .path .join (addonUserDataFolder , 'requests_cache_games' ))
2121
2222# cache expires after: 86400=1 day 604800=7 days
You can’t perform that action at this time.
0 commit comments