Skip to content

Commit 5c78fa3

Browse files
committed
v0.1.3
1 parent 724ff53 commit 5c78fa3

File tree

4 files changed

+20
-10
lines changed

4 files changed

+20
-10
lines changed

addon.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
22
<addon id="script.plex"
33
name="Plex"
4-
version="0.1.2"
4+
version="0.1.3"
55
provider-name="Plex">
66
<requires>
77
<import addon="xbmc.python" version="2.24.0"/>

changelog.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
[- 0.1.3 -]
2+
3+
Fix incompatibility with requests module update
4+
15
[- 0.1.2 -]
26

37
Fix issue with hubs not showing with (newer?) server versions

lib/_included_packages/plexnet/asyncadapter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def cancel(self):
235235

236236

237237
class AsyncPoolManager(PoolManager):
238-
def _new_pool(self, scheme, host, port):
238+
def _new_pool(self, scheme, host, port, request_context=None):
239239
"""
240240
Create a new :class:`ConnectionPool` based on host, port and scheme.
241241

lib/windows/kodigui.py

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -400,13 +400,19 @@ def _updateItems(self, bottom=None, top=None):
400400
bottom = 0
401401
top = self.size()
402402

403-
for idx in range(bottom, top):
404-
li = self.control.getListItem(idx)
405-
mli = self.items[idx]
406-
self._properties.update(mli.properties)
407-
mli._manager = self
408-
mli._listItem = li
409-
mli._updateListItem()
403+
try:
404+
for idx in range(bottom, top):
405+
li = self.control.getListItem(idx)
406+
mli = self.items[idx]
407+
self._properties.update(mli.properties)
408+
mli._manager = self
409+
mli._listItem = li
410+
mli._updateListItem()
411+
except RuntimeError:
412+
xbmc.log('kodigui.ManagedControlList._updateItems: Runtime error', xbmc.LOGNOTICE)
413+
return False
414+
415+
return True
410416

411417
def _nextID(self):
412418
self._idCounter += 1
@@ -440,7 +446,7 @@ def replaceItem(self, pos, mli):
440446
def replaceItems(self, managed_items):
441447
if not self.items:
442448
self.addItems(managed_items)
443-
return
449+
return True
444450

445451
oldSize = self.size()
446452

0 commit comments

Comments
 (0)