Skip to content

Commit

Permalink
Merge pull request #4430 from berkanteber/nexus
Browse files Browse the repository at this point in the history
[plugin.video.putio] 3.0.2
  • Loading branch information
basrieter authored Dec 2, 2023
2 parents 2cddc26 + d7c71f7 commit 5e6f1d3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugin.video.putio/addon.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<addon id="plugin.video.putio"
name="put.io"
version="3.0.1"
version="3.0.2"
provider-name="Put.io Developers">
<requires>
<import addon="xbmc.python" version="3.0.0" />
Expand Down
4 changes: 4 additions & 0 deletions plugin.video.putio/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
v3.0.2 (2023-11-27) Berkan Teber <[email protected]>
* Update Kodi API endpoint (#20)
* Use `account_status` to verify if account is active (#20)

v3.0.1 (2023-01-11) Berkan Teber <[email protected]>
* Add compatibility with Kodi v20

Expand Down
2 changes: 1 addition & 1 deletion plugin.video.putio/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
PLUGIN_HANDLE = int(sys.argv[1]) # process handle, as a numeric string
PLUGIN_ARGS = parse_qs(sys.argv[2].lstrip('?')) # query string, ('?action=list&item=3')

PUTIO_KODI_ENDPOINT = 'https://put.io/kodi'
PUTIO_KODI_ENDPOINT = 'https://api.put.io/kodi'
RESOURCE_PATH = os.path.join(SETTINGS.getAddonInfo('path'), 'resources', 'media')


Expand Down
4 changes: 3 additions & 1 deletion plugin.video.putio/resources/lib/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,6 @@ def is_showable(self, item):

def is_account_active(self):
r = self.client.Account.info()
return r['info']['account_active']
if r['info'] and r['info']['account_status'] and r['info']['account_status'] == 'active':
return True
return False

0 comments on commit 5e6f1d3

Please sign in to comment.