mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
Revert throttle
Will have to test further with timeout scenario, before reimplementing
This commit is contained in:
parent
bfb893ad8e
commit
81dcd36dc3
1 changed files with 12 additions and 24 deletions
|
@ -210,14 +210,8 @@ class Read_EmbyServer():
|
||||||
"MediaSources"
|
"MediaSources"
|
||||||
)
|
)
|
||||||
result = doUtils.downloadUrl(url, parameters=params)
|
result = doUtils.downloadUrl(url, parameters=params)
|
||||||
try:
|
|
||||||
items['Items'].extend(result['Items'])
|
items['Items'].extend(result['Items'])
|
||||||
except TypeError:
|
|
||||||
# Connection timed out, reduce the number
|
|
||||||
jump -= 50
|
|
||||||
self.limitindex = jump
|
|
||||||
self.logMsg("New throttle for items requested: %s" % jump, 1)
|
|
||||||
else:
|
|
||||||
index += jump
|
index += jump
|
||||||
if dialog:
|
if dialog:
|
||||||
percentage = int((float(index) / float(total))*100)
|
percentage = int((float(index) / float(total))*100)
|
||||||
|
@ -399,14 +393,8 @@ class Read_EmbyServer():
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
result = doUtils.downloadUrl(url, parameters=params)
|
result = doUtils.downloadUrl(url, parameters=params)
|
||||||
try:
|
|
||||||
items['Items'].extend(result['Items'])
|
items['Items'].extend(result['Items'])
|
||||||
except TypeError:
|
|
||||||
# Connection timed out, reduce the number
|
|
||||||
jump -= 50
|
|
||||||
self.limitindex = jump
|
|
||||||
self.logMsg("New throttle for items requested: %s" % jump, 1)
|
|
||||||
else:
|
|
||||||
index += jump
|
index += jump
|
||||||
if dialog:
|
if dialog:
|
||||||
percentage = int((float(index) / float(total))*100)
|
percentage = int((float(index) / float(total))*100)
|
||||||
|
|
Loading…
Reference in a new issue