Beispiel #1
0
def createstrm(name, imdbid, year, url):
    addon_id = links.link().muchm_id
    addon_path = os.path.join(links.link().installfolder, addon_id)
    addon_getsettings = links.link().getSetting("muchm_enabled")
    addon_pos = links.link().getSetting("muchm_pos")
    if len(addon_pos) == 1: addon_pos = '0' + addon_pos
    srtmBasePath = links.link().strmPath
    addonplay = links.link().muchm_play

    if not os.path.exists(addon_path) and addon_getsettings == 'true':
        links.link().setSetting("muchm_enabled", 'false')
    if addon_getsettings == 'true':
        name = name + ' (' + year + ')'
        origname = name
        strmPath = os.path.join(srtmBasePath,
                                addon_pos + '.' + addon_id + '.strm')
        searchresponse = '<a href="(.+?)">%s</a>' % name.replace(
            '(', '\(').replace(')', '\)')
        name = name.replace('(', '').replace(')', '').replace(' ', '-')
        url = links.link().muchm_base % search.basic_search(
            links.link().muchm_search, name, imdbid, year, searchresponse,
            'Name')
        if url:
            playurl = addonplay % (urllib.quote_plus(origname),
                                   urllib.quote_plus(url))
            basic.writefile(strmPath, 'w', playurl)
def createstrm(name,imdbid,year,url):
	addon_id = links.link().abelhas_id
	addon_path = os.path.join(links.link().installfolder,addon_id)
	addon_getsettings = links.link().getSetting("abelhas_enabled")
	addon_pos = links.link().getSetting("abelhas_pos")
	if len(addon_pos) == 1: addon_pos = '0'+addon_pos
	srtmBasePath = links.link().strmPath
	addonplay = links.link().abelhas_search

	if not os.path.exists(addon_path) and addon_getsettings == 'true': links.link().setSetting("abelhas_enabled",'false')
	if addon_getsettings == 'true':
		strmPath = os.path.join(srtmBasePath,addon_pos+'.'+addon_id+'.strm')
		playurl = addonplay % (urllib.quote_plus(name+ ' ('+year+')'))
		basic.writefile(strmPath,'w',playurl)
Beispiel #3
0
def createstrm(name,imdbid,year,url):
	addon_id = links.link().salts_id
	addon_path = os.path.join(links.link().installfolder,addon_id)
	addon_getsettings = links.link().getSetting("salts_enabled")
	addon_pos = links.link().getSetting("salts_pos")
	if len(addon_pos) == 1: addon_pos = '0'+addon_pos
	srtmBasePath = links.link().strmPath
	addonplay = links.link().salts_play
	
	if not os.path.exists(addon_path) and addon_getsettings == 'true': links.link().setSetting("salts_enabled",'false')
	if addon_getsettings == 'true':
		strmPath = os.path.join(srtmBasePath,addon_pos+'.'+addon_id+'.strm')
		playurl = addonplay % (urllib.quote_plus(name),year,urllib.quote_plus(name).replace('+','-')+'-'+year)
		basic.writefile(strmPath,'w',playurl)
def createstrm(name,imdbid,year,url):
	addon_id = links.link().rato_id
	addon_path = os.path.join(links.link().installfolder,addon_id)
	addon_getsettings = links.link().getSetting("rato_enabled")
	addon_pos = links.link().getSetting("rato_pos")
	if len(addon_pos) == 1: addon_pos = '0'+addon_pos
	srtmBasePath = links.link().strmPath
	addonplay = links.link().rato_play
	
	if not os.path.exists(addon_path) and addon_getsettings: links.link().setSetting("rato_enabled",'false')
	if addon_getsettings == 'true':
		strmPath = os.path.join(srtmBasePath,addon_pos+'.'+addon_id+'.strm')
		url = search.basic_search(links.link().rato_search,name,imdbid,year,'<span class="more-btn"><a href="(.+?)" >Ver Agora</a>','IMDB')
		if url:
			playurl = addonplay % (url,urllib.quote_plus(name))
			basic.writefile(strmPath,'w',playurl)
def createstrm(name,imdbid,year,url):
	addon_id = links.link().wt_id
	addon_path = os.path.join(links.link().installfolder,addon_id)
	addon_getsettings = links.link().getSetting("wt_enabled")
	addon_pos = links.link().getSetting("wt_pos")
	if len(addon_pos) == 1: addon_pos = '0'+addon_pos
	srtmBasePath = links.link().strmPath
	addonplay = links.link().wt_play

	if not os.path.exists(addon_path) and addon_getsettings == 'true': links.link().setSetting("wt_enabled",'false')
	if addon_getsettings == 'true':
		strmPath = os.path.join(srtmBasePath,addon_pos+'.'+addon_id+'.strm')
		url = search.basic_search(links.link().wt_search,name,imdbid,year,'<a href="(.+?)" class="movie-name">','NameYear')
		if url:
			playurl = addonplay % (urllib.quote_plus(links.link().wt_base % url),urllib.quote_plus(name))
			basic.writefile(strmPath,'w',playurl)
def createstrm(name,imdbid,year,url):
	addon_id = links.link().stream_id
	addon_path = os.path.join(links.link().installfolder,addon_id)
	addon_getsettings = links.link().getSetting("stream_enabled")
	addon_pos = links.link().getSetting("stream_pos")
	if len(addon_pos) == 1: addon_pos = '0'+addon_pos
	srtmBasePath = links.link().strmPath
	addonplay = links.link().stream_play

	if not os.path.exists(addon_path) and addon_getsettings == 'true': links.link().setSetting("stream_enabled",'false')
	if addon_getsettings == 'true':
		qual,magnet = search.ytssearch(imdbid)
		if magnet:
			for i in range(0,len(magnet)):
				strmPath = os.path.join(srtmBasePath,addon_pos+'.'+addon_id+'.'+qual[i]+'.strm')
				playurl = addonplay % (urllib.quote_plus(magnet[i]))
				basic.writefile(strmPath,'w',playurl)
def createstrm(name,imdbid,year,url):
	addon_id = links.link().yify_id
	addon_path = os.path.join(links.link().installfolder,addon_id)
	addon_getsettings = links.link().getSetting("yify_enabled")
	addon_pos = links.link().getSetting("yify_pos")
	addonplay = links.link().yify_play	
	if len(addon_pos) == 1: addon_pos = '0'+addon_pos
	srtmBasePath = links.link().strmPath

	if not os.path.exists(addon_path) and addon_getsettings == 'true': links.link().setSetting("yify_enabled",'false')
	if addon_getsettings == 'true':
		strmPath = os.path.join(srtmBasePath,addon_pos+'.'+addon_id+'.strm')
		searchresponse = '"title":"%s","link":"(.+?)","post_content":".+?","image":".+?","year":"%s"' % (name,year)		
		url = search.basic_search(links.link().yify_search,name,imdbid,year,searchresponse,'Name')
		if url:
			playurl = addonplay % (urllib.quote_plus(name+' ('+year+')'),urllib.quote_plus(url))
			basic.writefile(strmPath,'w',playurl)
Beispiel #8
0
def createstrm(name, imdbid, year, url):
    addon_id = links.link().ice_id
    addon_path = os.path.join(links.link().installfolder, addon_id)
    addon_getsettings = links.link().getSetting("ice_enabled")
    addon_pos = links.link().getSetting("ice_pos")
    if len(addon_pos) == 1:
        addon_pos = "0" + addon_pos
    srtmBasePath = links.link().strmPath
    addonplay = links.link().ice_play

    if not os.path.exists(addon_path) and addon_getsettings == "true":
        links.link().setSetting("ice_enabled", "false")
    if addon_getsettings == "true":
        url = search.icesearch(name + " (" + year + ")")
        if url:
            strmPath = os.path.join(srtmBasePath, addon_pos + "." + addon_id + ".strm")
            playurl = addonplay % (urllib.quote_plus(url))
            basic.writefile(strmPath, "w", playurl)
Beispiel #9
0
def createstrm(name, imdbid, year, url):
    addon_id = links.link().ice_id
    addon_path = os.path.join(links.link().installfolder, addon_id)
    addon_getsettings = links.link().getSetting("ice_enabled")
    addon_pos = links.link().getSetting("ice_pos")
    if len(addon_pos) == 1: addon_pos = '0' + addon_pos
    srtmBasePath = links.link().strmPath
    addonplay = links.link().ice_play

    if not os.path.exists(addon_path) and addon_getsettings == 'true':
        links.link().setSetting("ice_enabled", 'false')
    if addon_getsettings == 'true':
        url = search.icesearch(name + ' (' + year + ')')
        if url:
            strmPath = os.path.join(srtmBasePath,
                                    addon_pos + '.' + addon_id + '.strm')
            playurl = addonplay % (urllib.quote_plus(url))
            basic.writefile(strmPath, 'w', playurl)
Beispiel #10
0
def createstrm(name, imdbid, year, url):
    addon_id = links.link().kmediatorrent_id
    addon_path = os.path.join(links.link().installfolder, addon_id)
    addon_getsettings = links.link().getSetting("kmediatorrent_enabled")
    addon_pos = links.link().getSetting("kmediatorrent_pos")
    if len(addon_pos) == 1: addon_pos = '0' + addon_pos
    srtmBasePath = links.link().strmPath
    addonplay = links.link().kmediatorrent_play

    if not os.path.exists(addon_path) and addon_getsettings == 'true':
        links.link().setSetting("kmediatorrent_enabled", 'false')
    if addon_getsettings == 'true':
        qual, magnet = search.ytssearch(imdbid)
        if magnet:
            for i in range(0, len(magnet)):
                strmPath = os.path.join(
                    srtmBasePath,
                    addon_pos + '.' + addon_id + '.' + qual[i] + '.strm')
                playurl = addonplay % (urllib.quote_plus(magnet[i]))
                basic.writefile(strmPath, 'w', playurl)
def createstrm(name,imdbid,year,url):
	addon_id = links.link().sdp_id
	addon_path = os.path.join(links.link().installfolder,addon_id)
	addon_getsettings = links.link().getSetting("sdp_enabled")
	addon_getsettingspref = links.link().getSetting("pref_sdp_source")	
	addon_pos = links.link().getSetting("sdp_pos")
	if len(addon_pos) == 1: addon_pos = '0'+addon_pos
	srtmBasePath = links.link().strmPath
	addonplay = links.link().sdp_search

	if not os.path.exists(addon_path) and addon_getsettings == 'true': links.link().setSetting("sdp_enabled",'false')
	if addon_getsettings == 'true':
		strmPath = os.path.join(srtmBasePath,addon_pos+'.'+addon_id+'.strm')
		url = search.sdpsearch(name,imdbid)
		if url == 'MATCH':
			if addon_getsettingspref == 'All': automatic = ''
			elif addon_getsettingspref == 'Any': automatic = 'sim'
			else: automatic = addon_getsettingspref
			playurl= addonplay % (imdbid,urllib.quote_plus(name.replace(' ('+year+')','')),automatic)
			basic.writefile(strmPath,'w',playurl)
def createstrm(name,imdbid,year,url):
	addon_id = links.link().muchm_id
	addon_path = os.path.join(links.link().installfolder,addon_id)
	addon_getsettings = links.link().getSetting("muchm_enabled")
	addon_pos = links.link().getSetting("muchm_pos")
	if len(addon_pos) == 1: addon_pos = '0'+addon_pos
	srtmBasePath = links.link().strmPath
	addonplay = links.link().muchm_play

	if not os.path.exists(addon_path) and addon_getsettings == 'true': links.link().setSetting("muchm_enabled",'false')
	if addon_getsettings == 'true':
		name = name +' ('+year+')'	
		origname = name
		strmPath = os.path.join(srtmBasePath,addon_pos+'.'+addon_id+'.strm')
		searchresponse = '<a href="(.+?)">%s</a>' % name.replace('(','\(').replace(')','\)')
		name = name.replace('(','').replace(')','').replace(' ','-')		
		url = links.link().muchm_base % search.basic_search(links.link().muchm_search,name,imdbid,year,searchresponse,'Name')
		if url:
			playurl = addonplay % (urllib.quote_plus(origname),urllib.quote_plus(url))
			basic.writefile(strmPath,'w',playurl)
Beispiel #13
0
def createstrm(name, imdbid, year, url):
    addon_id = links.link().wt_id
    addon_path = os.path.join(links.link().installfolder, addon_id)
    addon_getsettings = links.link().getSetting("wt_enabled")
    addon_pos = links.link().getSetting("wt_pos")
    if len(addon_pos) == 1: addon_pos = '0' + addon_pos
    srtmBasePath = links.link().strmPath
    addonplay = links.link().wt_play

    if not os.path.exists(addon_path) and addon_getsettings == 'true':
        links.link().setSetting("wt_enabled", 'false')
    if addon_getsettings == 'true':
        strmPath = os.path.join(srtmBasePath,
                                addon_pos + '.' + addon_id + '.strm')
        url = search.basic_search(links.link().wt_search, name, imdbid, year,
                                  '<a href="(.+?)" class="movie-name">',
                                  'NameYear')
        if url:
            playurl = addonplay % (urllib.quote_plus(
                links.link().wt_base % url), urllib.quote_plus(name))
            basic.writefile(strmPath, 'w', playurl)
Beispiel #14
0
def createstrm(name, imdbid, year, url):
    addon_id = links.link().yify_id
    addon_path = os.path.join(links.link().installfolder, addon_id)
    addon_getsettings = links.link().getSetting("yify_enabled")
    addon_pos = links.link().getSetting("yify_pos")
    addonplay = links.link().yify_play
    if len(addon_pos) == 1: addon_pos = '0' + addon_pos
    srtmBasePath = links.link().strmPath

    if not os.path.exists(addon_path) and addon_getsettings == 'true':
        links.link().setSetting("yify_enabled", 'false')
    if addon_getsettings == 'true':
        strmPath = os.path.join(srtmBasePath,
                                addon_pos + '.' + addon_id + '.strm')
        searchresponse = '"title":"%s","link":"(.+?)","post_content":".+?","image":".+?","year":"%s"' % (
            name, year)
        url = search.basic_search(links.link().yify_search, name, imdbid, year,
                                  searchresponse, 'Name')
        if url:
            playurl = addonplay % (urllib.quote_plus(name + ' (' + year + ')'),
                                   urllib.quote_plus(url))
            basic.writefile(strmPath, 'w', playurl)
Beispiel #15
0
def createstrm(name, imdbid, year, url):
    addon_id = links.link().sdp_id
    addon_path = os.path.join(links.link().installfolder, addon_id)
    addon_getsettings = links.link().getSetting("sdp_enabled")
    addon_getsettingspref = links.link().getSetting("pref_sdp_source")
    addon_pos = links.link().getSetting("sdp_pos")
    if len(addon_pos) == 1: addon_pos = '0' + addon_pos
    srtmBasePath = links.link().strmPath
    addonplay = links.link().sdp_search

    if not os.path.exists(addon_path) and addon_getsettings == 'true':
        links.link().setSetting("sdp_enabled", 'false')
    if addon_getsettings == 'true':
        strmPath = os.path.join(srtmBasePath,
                                addon_pos + '.' + addon_id + '.strm')
        url = search.sdpsearch(name, imdbid)
        if url == 'MATCH':
            if addon_getsettingspref == 'All': automatic = ''
            elif addon_getsettingspref == 'Any': automatic = 'sim'
            else: automatic = addon_getsettingspref
            playurl = addonplay % (
                imdbid, urllib.quote_plus(name.replace(' (' + year + ')',
                                                       '')), automatic)
            basic.writefile(strmPath, 'w', playurl)