Browse Source

Misplaced scrapers

pull/43/head
host505 1 year ago
parent
commit
dcedd28766

+ 1
- 1
lib/default.py View File

@@ -50,7 +50,7 @@ if mode == "toggleAll":

if mode == "toggleAllDebrid":
sourcelist = ['2ddl','300mbfilms','bestmoviez','ddls','ddlvalley','directdl','gomovies','hevcfilm',
'moviesonline','myvideolink','phazeddl','power','releasebb','RLSB','rlsbb','rlsmovies','rlsscn',
'myvideolink','phazeddl','power','releasebb','RLSB','rlsbb','rlsmovies','rlsscn',
'scenerls','sceper','seriescr','tvbmoviez','tvrelease','ultrahd','ultrahdindir','wrzcraft']
toggleAll(params['setting'], params['open_id'], sourcelist)


+ 0
- 139
lib/lambdascrapers/sources_ lambdascrapers/en_DebridOnly/moviesonline.py View File

@@ -1,139 +0,0 @@
# -*- coding: UTF-8 -*-
#######################################################################
# ----------------------------------------------------------------------------
# "THE BEER-WARE LICENSE" (Revision 42):
# @Daddy_Blamo wrote this file. As long as you retain this notice you
# can do whatever you want with this stuff. If we meet some day, and you think
# this stuff is worth it, you can buy me a beer in return. - Muad'Dib
# ----------------------------------------------------------------------------
#######################################################################

# Addon Name: Placenta
# Addon id: plugin.video.placenta
# Addon Provider: Mr.Blamo

import re, urlparse, urllib, base64

from resources.lib.modules import cleantitle
from resources.lib.modules import client
from resources.lib.modules import cache
from resources.lib.modules import dom_parser2
from resources.lib.modules import debrid

class source:
def __init__(self):
self.priority = 1
self.language = ['en']
self.domains = ['moviesonline.mx']
self.base_link = 'http://moviesonline.mx'
self.search_link = '/search-movies/%s.html'


def movie(self, imdb, title, localtitle, aliases, year):
try:
clean_title = cleantitle.geturl(title)
search_url = urlparse.urljoin(self.base_link, self.search_link % clean_title.replace('-', '+'))
r = cache.get(client.request, 1, search_url)
r = client.parseDOM(r, 'div', {'id': 'movie-featured'})
r = [(client.parseDOM(i, 'a', ret='href'),
re.findall('.+?elease:\s*(\d{4})</', i),
re.findall('<b><i>(.+?)</i>', i)) for i in r]
r = [(i[0][0], i[1][0], i[2][0]) for i in r if
(cleantitle.get(i[2][0]) == cleantitle.get(title) and i[1][0] == year)]
url = r[0][0]

return url
except Exception:
return

def tvshow(self, imdb, tvdb, tvshowtitle, localtvshowtitle, aliases, year):
try:
url = {'imdb': imdb, 'tvdb': tvdb, 'tvshowtitle': tvshowtitle, 'year': year}
url = urllib.urlencode(url)
return url
except:
return

def episode(self, url, imdb, tvdb, title, premiered, season, episode):
try:
if url == None: return

url = urlparse.parse_qs(url)
url = dict([(i, url[i][0]) if url[i] else (i, '') for i in url])
url['premiered'], url['season'], url['episode'] = premiered, season, episode
try:
clean_title = cleantitle.geturl(url['tvshowtitle'])+'-season-%d' % int(season)
search_url = urlparse.urljoin(self.base_link, self.search_link % clean_title.replace('-', '+'))
r = cache.get(client.request, 1, search_url)
r = client.parseDOM(r, 'div', {'id': 'movie-featured'})
r = [(client.parseDOM(i, 'a', ret='href'),
re.findall('<b><i>(.+?)</i>', i)) for i in r]
r = [(i[0][0], i[1][0]) for i in r if
cleantitle.get(i[1][0]) == cleantitle.get(clean_title)]
url = r[0][0]
except:
pass
data = client.request(url)
data = client.parseDOM(data, 'div', attrs={'id': 'details'})
data = zip(client.parseDOM(data, 'a'), client.parseDOM(data, 'a', ret='href'))
url = [(i[0], i[1]) for i in data if i[0] == str(int(episode))]

return url[0][1]
except:
return

def sources(self, url, hostDict, hostprDict):
try:
sources = []
r = cache.get(client.request, 1, url)
try:
v = re.findall('document.write\(Base64.decode\("(.+?)"\)', r)[0]
b64 = base64.b64decode(v)
url = client.parseDOM(b64, 'iframe', ret='src')[0]
try:
host = re.findall('([\w]+[.][\w]+)$', urlparse.urlparse(url.strip().lower()).netloc)[0]
host = client.replaceHTMLCodes(host)
host = host.encode('utf-8')
sources.append({
'source': host,
'quality': 'SD',
'language': 'en',
'url': url.replace('\/', '/'),
'direct': False,
'debridonly': True
})
except:
pass
except:
pass
r = client.parseDOM(r, 'div', {'class': 'server_line'})
r = [(client.parseDOM(i, 'a', ret='href')[0], client.parseDOM(i, 'p', attrs={'class': 'server_servername'})[0]) for i in r]
if r:
for i in r:
try:
host = re.sub('Server|Link\s*\d+', '', i[1]).lower()
url = i[0]
host = client.replaceHTMLCodes(host)
host = host.encode('utf-8')
if 'other'in host: continue
sources.append({
'source': host,
'quality': 'SD',
'language': 'en',
'url': url.replace('\/', '/'),
'direct': False,
'debridonly': True
})
except:
pass
return sources
except Exception:
return

def resolve(self, url):
if self.base_link in url:
url = client.request(url)
v = re.findall('document.write\(Base64.decode\("(.+?)"\)', url)[0]
b64 = base64.b64decode(v)
url = client.parseDOM(b64, 'iframe', ret='src')[0]
return url

+ 0
- 2
resources/settings.xml View File

@@ -34,7 +34,6 @@
<setting id="provider.allrls" type="bool" label="ALLRLS" default="false" /> <!--Incursion--> <!--Placenta--> <!--Lambdascrapers-->
<setting id="provider.allucen" type="bool" label="ALLUCEN" default="false" /> <!--Lambdascrapers-->
<setting id="provider.animeultima" type="bool" label="ANIMEULTIMA" default="false" /> <!--Lambdascrapers-->
<setting id="provider.bestmoviez" type="bool" label="BESTMOVIEZ" default="true" />
<setting id="provider.bmoviez" type="bool" label="BMOVIEZ" default="false" /> <!--Placenta--> <!--Lambdascrapers-->
<setting id="provider.bnwmovies" type="bool" label="BNWMOVIES" default="true" /> <!--Placenta--> <!--Lambdascrapers-->
<setting id="provider.bob" type="bool" label="BOB" default="false" /> <!--Placenta--> <!--Lambdascrapers-->
@@ -197,7 +196,6 @@
<setting id="provider.directdl" type="bool" label="DIRECTDL" default="false" /> <!--Incursion--> <!--Placenta--> <!--Lambdascrapers-->
<setting id="provider.gomovies" type="bool" label="GOMOVIES" default="false" /> <!--Placenta--> <!--Lambdascrapers-->
<!-- <setting id="provider.hevcfilm" type="bool" label="HEVCFILM" default="false" />--> <!--Incursion--> <!--Placenta-->
<setting id="provider.moviesonline" type="bool" label="MOVIESONLINE" default="false" /> <!--Placenta--> <!--Lambdascrapers-->
<setting id="provider.myvideolink" type="bool" label="MYVIDEOLINK" default="false" /> <!--Placenta--> <!--Lambdascrapers-->
<setting id="provider.phazeddl" type="bool" label="PHAZEDLL" default="false" /> <!--Incursion--> <!--Placenta--> <!--Lambdascrapers-->
<setting id="provider.power" type="bool" label="POWER" default="false" /> <!--Lambdascrapers-->

Loading…
Cancel
Save