test
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
import os
|
||||
|
||||
import jsontools
|
||||
|
||||
from platformcode import config, logger
|
||||
|
||||
DEFAULT_UPDATE_URL = "/channels/"
|
||||
|
||||
+1
-1
@@ -6,10 +6,10 @@
|
||||
import re
|
||||
import time
|
||||
import urllib
|
||||
|
||||
import urlparse
|
||||
|
||||
from platformcode import logger
|
||||
from decimal import Decimal
|
||||
|
||||
|
||||
class Cloudflare:
|
||||
|
||||
+2
-1
@@ -24,9 +24,10 @@ import sys
|
||||
import threading
|
||||
import time
|
||||
import urllib
|
||||
from threading import Thread, Lock
|
||||
|
||||
import urllib2
|
||||
import urlparse
|
||||
from threading import Thread, Lock
|
||||
|
||||
from core import filetools
|
||||
from platformcode import logger, config
|
||||
|
||||
@@ -9,6 +9,7 @@ import socket
|
||||
import sys
|
||||
import time
|
||||
import urllib
|
||||
|
||||
import urllib2
|
||||
|
||||
from platformcode import config, logger
|
||||
|
||||
@@ -7,6 +7,7 @@ import base64
|
||||
import copy
|
||||
import os
|
||||
import urllib
|
||||
|
||||
from HTMLParser import HTMLParser
|
||||
|
||||
from core import jsontools as json
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
|
||||
import re
|
||||
import time
|
||||
|
||||
import urlparse
|
||||
|
||||
from core.entities import html5
|
||||
|
||||
+2
-3
@@ -3,12 +3,11 @@
|
||||
# Server management
|
||||
# --------------------------------------------------------------------------------
|
||||
|
||||
import datetime
|
||||
import os
|
||||
import re
|
||||
import time
|
||||
import urlparse
|
||||
|
||||
import filetools
|
||||
import urlparse
|
||||
|
||||
from core import httptools
|
||||
from core import jsontools
|
||||
|
||||
+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)
|
||||
|
||||
|
||||
+2
-4
@@ -5,6 +5,8 @@ import re
|
||||
import sqlite3
|
||||
import time
|
||||
|
||||
import xbmcaddon
|
||||
|
||||
from core import filetools
|
||||
from core import httptools
|
||||
from core import jsontools
|
||||
@@ -13,7 +15,6 @@ from core.item import InfoLabels
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
|
||||
import xbmc, xbmcaddon
|
||||
addon = xbmcaddon.Addon('metadata.themoviedb.org')
|
||||
def_lang = addon.getSetting('language')
|
||||
|
||||
@@ -541,9 +542,6 @@ def completar_codigos(item):
|
||||
|
||||
|
||||
def discovery(item):
|
||||
from core.item import Item
|
||||
from platformcode import unify
|
||||
|
||||
if item.search_type == 'discover':
|
||||
listado = Tmdb(discover={'url':'discover/%s' % item.type, 'with_genres':item.list_type, 'language':def_lang,
|
||||
'page':item.page})
|
||||
|
||||
+2
-1
@@ -4,14 +4,15 @@
|
||||
# -*- By the Alfa Develop Group -*
|
||||
|
||||
import os
|
||||
from threading import Thread
|
||||
|
||||
import xbmc
|
||||
|
||||
from core import httptools
|
||||
from core import jsontools
|
||||
from core.item import Item
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
from threading import Thread
|
||||
|
||||
client_id = "c40ba210716aee87f6a9ddcafafc56246909e5377b623b72c15909024448e89d"
|
||||
client_secret = "999164f25832341f0214453bb11c915adb18e9490d6b5e9a707963a5a1bee43e"
|
||||
|
||||
+2
-1
@@ -8,6 +8,7 @@
|
||||
# ------------------------------------------------------------
|
||||
|
||||
import re
|
||||
|
||||
import urllib2
|
||||
|
||||
from core import jsontools
|
||||
@@ -19,7 +20,7 @@ from platformcode import platformtools
|
||||
HOST = "https://api.thetvdb.com"
|
||||
HOST_IMAGE = "http://thetvdb.com/banners/"
|
||||
|
||||
import xbmc, xbmcaddon
|
||||
import xbmcaddon
|
||||
addon = xbmcaddon.Addon('metadata.tvdb.com')
|
||||
|
||||
TOKEN = config.get_setting("tvdb_token", default="")
|
||||
|
||||
@@ -11,9 +11,9 @@ from core import filetools
|
||||
from core import scraper
|
||||
from core import scrapertools
|
||||
from core.item import Item
|
||||
from lib import generictools
|
||||
from platformcode import config, logger
|
||||
from platformcode import platformtools
|
||||
from lib import generictools
|
||||
|
||||
FOLDER_MOVIES = config.get_setting("folder_movies")
|
||||
FOLDER_TVSHOWS = config.get_setting("folder_tvshows")
|
||||
@@ -807,8 +807,6 @@ def caching_torrents(url, referer=None, post=None, torrents_path=None, timeout=1
|
||||
logger.info()
|
||||
if referer and post:
|
||||
logger.info('REFERER: ' + referer)
|
||||
import urllib
|
||||
import re
|
||||
from core import httptools
|
||||
torrent_file = ''
|
||||
headers = {'Content-Type': 'application/x-www-form-urlencoded', 'Referer': referer} #Necesario para el Post del .Torrent
|
||||
|
||||
Reference in New Issue
Block a user