Skip to content

Commit

Permalink
Merge pull request #210 from angelblue05/master
Browse files Browse the repository at this point in the history
Fixes
  • Loading branch information
angelblue05 authored Feb 4, 2019
2 parents b0d8ee3 + 186be89 commit c2e10f1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
5 changes: 2 additions & 3 deletions addon.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.emby"
name="Emby"
version="4.0.4"
version="4.0.5"
provider-name="angelblue05">
<requires>
<import addon="xbmc.python" version="2.25.0"/>
Expand Down Expand Up @@ -40,8 +40,7 @@
New stable release
The wiki has been updated, PLEASE READ: https://github.com/MediaBrowser/plugin.video.emby/wiki
Dependencies were updated to 0.14! Please keep stable updated.
Fix broken icon under report activity
Fix manual server address being ignored during setup
Fix playback with Kodi Leia while using server 3.5
</news>
</extension>
</addon>
2 changes: 2 additions & 0 deletions resources/lib/entrypoint/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,8 @@ def reload_objects(self):
reload(library)
reload(monitor)

objects.obj.Objects().mapping()

LOG.warn("---[ objects reloaded ]")

def shutdown(self):
Expand Down
8 changes: 4 additions & 4 deletions resources/lib/webservice.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,16 +118,16 @@ def do_GET(self):
try:
params = self.get_params()

if not params:
if not params or params.get('Id') is None:
raise IndexError("Incomplete URL format")

if not params.get('Id').isdigit():
raise IndexError("Incorrect Id format %s" % params.get('Id'))
if 'extrafanart' in params['Id']:
raise IndexError("Incorrect Id format %s" % params['Id'])

xbmc.log("[ webservice ] path: %s params: %s" % (str(self.path), str(params)), xbmc.LOGWARNING)

path = ("plugin://plugin.video.emby?mode=play&id=%s&dbid=%s&filename=%s&transcode=%s"
% (params.get('Id'), params.get('KodiId'), params.get('Name'), params.get('transcode') or False))
% (params['Id'], params.get('KodiId'), params.get('Name'), params.get('transcode') or False))

self.send_response(200)
self.send_header('Content-type','text/html')
Expand Down

0 comments on commit c2e10f1

Please sign in to comment.