test
This commit is contained in:
+20
-5
@@ -1,12 +1,17 @@
|
||||
# support functions that are needed by many channels, to no repeat the same code
|
||||
import base64, urlparse, re, os, inspect
|
||||
import base64
|
||||
import inspect
|
||||
import os
|
||||
import re
|
||||
import urllib
|
||||
import urlparse
|
||||
import xbmcaddon
|
||||
|
||||
from channelselector import thumb
|
||||
from core import httptools, scrapertoolsV2, servertools, tmdb
|
||||
from core.item import Item
|
||||
import urllib
|
||||
|
||||
from lib import unshortenit
|
||||
from platformcode import logger, config
|
||||
from channelselector import thumb
|
||||
from specials import autoplay
|
||||
|
||||
|
||||
@@ -56,6 +61,14 @@ def hdpass_get_servers(item):
|
||||
url=url_decode(media_url)))
|
||||
log("video -> ", res_video)
|
||||
|
||||
__comprueba_enlaces__ = config.get_setting('comprueba_enlaces', item.channel)
|
||||
__comprueba_enlaces_num__ = config.get_setting('comprueba_enlaces_num', item.channel)
|
||||
|
||||
if __comprueba_enlaces__:
|
||||
itemlist = servertools.check_list_links(itemlist, __comprueba_enlaces_num__)
|
||||
if xbmcaddon.Addon('plugin.video.kod').getSetting('checklinks'):
|
||||
itemlist = servertools.check_list_links(itemlist, xbmcaddon.Addon('plugin.video.kod').getSetting('checklinks_number'))
|
||||
|
||||
return itemlist
|
||||
|
||||
|
||||
@@ -516,7 +529,9 @@ def server(item, data='', headers='', AutoPlay=True, CheckLinks=True):
|
||||
|
||||
if __comprueba_enlaces__ and CheckLinks:
|
||||
itemlist = servertools.check_list_links(itemlist, __comprueba_enlaces_num__)
|
||||
|
||||
if xbmcaddon.Addon('plugin.video.kod').getSetting('checklinks'):
|
||||
itemlist = servertools.check_list_links(itemlist, xbmcaddon.Addon('plugin.video.kod').getSetting('checklinks_number'))
|
||||
|
||||
if AutoPlay == True:
|
||||
autoplay.start(itemlist, item)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user