Skip to content

Commit b4ca4ac

Browse files
committed
repair kinokong addon
1 parent 8119469 commit b4ca4ac

4 files changed

Lines changed: 9 additions & 7 deletions

File tree

addons/plugin.video.kinokong.net/addon.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2-
<addon id="plugin.video.kinokong.net" name="Kinokong.net" version="2.0.6" provider-name="MrStealth, dandy">
2+
<addon id="plugin.video.kinokong.net" name="Kinokong.net" version="2.0.7" provider-name="MrStealth, dandy">
33
<requires>
44
<import addon="xbmc.python" version="3.0.0"/>
55
<import addon="script.module.xbmc.helpers" version="3.0.0"/>

addons/plugin.video.kinokong.net/default.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def getCategoryItems(self, url, page):
113113

114114
if response["status"] == 200:
115115
content = common.parseDOM(response["content"].decode("cp1251"), "div", attrs={"id": "container"})
116-
items = common.parseDOM(content, "div", attrs={"class": "owl-item"})
116+
items = common.parseDOM(content, "div", attrs={"class": "owl-item item-main"})
117117

118118
link_container = common.parseDOM(items, "h2", attrs={"class": "main-sliders-title"})
119119
titles = common.parseDOM(link_container, "a")

addons/script.module.videohosts/addon.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2-
<addon id="script.module.videohosts" name="VideoHosts" version="3.0.4" provider-name="dandy">
2+
<addon id="script.module.videohosts" name="VideoHosts" version="3.0.5" provider-name="dandy">
33
<requires>
44
<import addon="xbmc.python" version="3.0.0"/>
55
<import addon="script.module.xbmc.helpers" version="3.0.0"/>

addons/script.module.videohosts/lib/videohosts/host_manager.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
from . import videocdn
1414
from . import hdvb
1515

16-
from . import tools
17-
1816
socket.setdefaulttimeout(120)
1917

2018
ID = 'script.module.videohosts'
@@ -48,6 +46,11 @@ def get_playlist_by_vhost(vhost, iframe):
4846
except:
4947
return None, None, None, None
5048

49+
def get_iframes(data):
50+
iframes = common.parseDOM(data, "iframe", ret="src")
51+
if len(iframes) == 0:
52+
iframes = common.parseDOM(data, "li", ret="data-iframe")
53+
return iframes
5154

5255
def get_playlist(data):
5356
manifest_links = {}
@@ -58,8 +61,7 @@ def get_playlist(data):
5861
mode = ADDON.getSetting("mode")
5962
preferred = ADDON.getSetting("preferred")
6063

61-
iframes = common.parseDOM(data, "iframe", ret="src")
62-
iframes += common.parseDOM(data, "li", ret="data-iframe")
64+
iframes = get_iframes(data)
6365

6466
for item in iframes:
6567
if re.search("vid\d+", item):

0 commit comments

Comments
 (0)