Merge branch 'master' of https://github.com/MediaBrowser/Emby.Kodi
This commit is contained in:
commit
93f28836d5
8 changed files with 21 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||||
<addon id="plugin.video.emby"
|
<addon id="plugin.video.emby"
|
||||||
name="Emby"
|
name="Emby"
|
||||||
version="0.1.6"
|
version="0.1.7"
|
||||||
provider-name="Emby.media">
|
provider-name="Emby.media">
|
||||||
<requires>
|
<requires>
|
||||||
<import addon="xbmc.python" version="2.1.0"/>
|
<import addon="xbmc.python" version="2.1.0"/>
|
||||||
|
|
|
@ -67,14 +67,15 @@ class Kodi_Monitor(xbmc.Monitor):
|
||||||
cursor = connection.cursor()
|
cursor = connection.cursor()
|
||||||
cursor.execute("DELETE FROM emby WHERE emby_id = ?", (id,))
|
cursor.execute("DELETE FROM emby WHERE emby_id = ?", (id,))
|
||||||
connection.commit()
|
connection.commit()
|
||||||
|
cursor.close
|
||||||
|
|
||||||
if jsondata != None:
|
if jsondata:
|
||||||
if jsondata.get("type") == "episode":
|
if jsondata.get("type") == "episode":
|
||||||
url='{server}/mediabrowser/Items?Ids=' + id + '&format=json'
|
url='{server}/mediabrowser/Items?Ids=' + id + '&format=json'
|
||||||
#This is a check to see if the item exists on the server, if it doesn't it may have already been deleted by another client
|
#This is a check to see if the item exists on the server, if it doesn't it may have already been deleted by another client
|
||||||
result = DownloadUtils().downloadUrl(url)
|
result = DownloadUtils().downloadUrl(url)
|
||||||
item = result.get("Items")[0]
|
item = result.get("Items")[0]
|
||||||
if data != "":
|
if data:
|
||||||
return_value = xbmcgui.Dialog().yesno("Confirm Delete", "Delete file on Emby Server?")
|
return_value = xbmcgui.Dialog().yesno("Confirm Delete", "Delete file on Emby Server?")
|
||||||
if return_value:
|
if return_value:
|
||||||
url='{server}/mediabrowser/Items/' + id
|
url='{server}/mediabrowser/Items/' + id
|
||||||
|
|
|
@ -15,6 +15,13 @@
|
||||||
<height>281</height>
|
<height>281</height>
|
||||||
<aspectratio align="right" aligny="bottom">keep</aspectratio>
|
<aspectratio align="right" aligny="bottom">keep</aspectratio>
|
||||||
</control>
|
</control>
|
||||||
|
<control type="image">
|
||||||
|
<top>110r</top>
|
||||||
|
<width>100%</width>
|
||||||
|
<height>374</height>
|
||||||
|
<texture>white.png</texture>
|
||||||
|
<colordiffuse>ff010101</colordiffuse>
|
||||||
|
</control>
|
||||||
<!-- buttons -->
|
<!-- buttons -->
|
||||||
<control type="button" id="3012">
|
<control type="button" id="3012">
|
||||||
<description>Watch Now</description>
|
<description>Watch Now</description>
|
||||||
|
@ -93,7 +100,16 @@
|
||||||
<textcolor>orange</textcolor>
|
<textcolor>orange</textcolor>
|
||||||
<visible>false</visible>
|
<visible>false</visible>
|
||||||
</control>
|
</control>
|
||||||
|
<control type="image">
|
||||||
|
<top>52</top>
|
||||||
|
<width>24</width>
|
||||||
|
<height>24</height>
|
||||||
|
<aspect>keep</aspect>
|
||||||
|
<texture>imdb.png</texture>
|
||||||
|
<visible>Control.IsVisible(3003)</visible>
|
||||||
|
</control>
|
||||||
<control type="label" id="3003" description="rating">
|
<control type="label" id="3003" description="rating">
|
||||||
|
<left>35</left>
|
||||||
<width>100%</width>
|
<width>100%</width>
|
||||||
<top>50</top>
|
<top>50</top>
|
||||||
<height>40</height>
|
<height>40</height>
|
||||||
|
@ -101,7 +117,7 @@
|
||||||
<textcolor>B3dddddd</textcolor>
|
<textcolor>B3dddddd</textcolor>
|
||||||
</control>
|
</control>
|
||||||
<control type="label" id="3004" description="year/runtime">
|
<control type="label" id="3004" description="year/runtime">
|
||||||
<left>55</left>
|
<left>90</left>
|
||||||
<width>100%</width>
|
<width>100%</width>
|
||||||
<top>50</top>
|
<top>50</top>
|
||||||
<height>40</height>
|
<height>40</height>
|
||||||
|
|
BIN
resources/skins/default/media/box.png
Normal file
BIN
resources/skins/default/media/box.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 244 B |
BIN
resources/skins/default/media/imdb.png
Normal file
BIN
resources/skins/default/media/imdb.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.4 KiB |
BIN
resources/skins/default/media/progress-bg.png
Normal file
BIN
resources/skins/default/media/progress-bg.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 349 B |
BIN
resources/skins/default/media/progress-end.png
Normal file
BIN
resources/skins/default/media/progress-end.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 190 B |
BIN
resources/skins/default/media/white.png
Normal file
BIN
resources/skins/default/media/white.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 263 B |
Loading…
Reference in a new issue