

Defekte Provider:

## hdfilme.net/tv ##
- gändert von .tv auf .net
- übergabe des korrekten links an def sources()
--> hier kommtderfehler raus
r = cache.get(self.scraper.get, 4, urlparse.urljoin(self.base_link, self.get_link % r)).content

08:07:48.469 T:3380 DEBUG: print hdfilme json load
08:07:48.469 T:3380 DEBUG: {u'status': 0, u'vip_source': [{u'type': u'video/mp4', u'file': u'https://error.hdfilme.net/video.mp4', u'label': u'VIP'}, {u'type': u'video/mp4', u'file': u'https://error.hdfilme.net/video.mp4', u'label': u'VIP'}], u'watch_info': u'', u'playinfo': None}



## foxx ##

https://www.lastship.square7.ch/home/forum/index.php?thread/2409-foxx-to-l%C3%A4ut-nicht-neues-java-verschl%C3%BCsselung/


def __search(self, titles, year):

try:

query = self.search_link % (urllib.quote_plus(titles[0]))

query = urlparse.urljoin(self.base_link, query)


r = cache.get(self.scraper.get, 4, query).content

print "print foxx search cache.get",r




<script src="/cdn-cgi/apps/head/K7WrOPvz8_-978PAmhsVovVFGqY.js"></script><script type="d78bbe3a759d38061db63da1-text/javascript">

<!--

document.write(unescape('%3c%73%63%72%69%70%74%3e%0d%0a%77%69%6e%64%6f%77%2e%6c%6f%63%61%74%69%6f%6e%2e%68%72%65%66%20%3d%20%27%2f%65%75%2f%27%3b%0d%0a%3c%2f%73%63%72%69%70%74%3e'));

(unescape('%24%28%64%6f%63%75%6d%65%6e%74%29%2e%72%65%61%64%79%28%66%75%6e%63%74%69%6f%6e%20%28%29%20%7b%0d%0a%24%28%27%2e%63%66%2d%74%61%62%6c%65%2d%62%6c%6f%63%6b%27%29%2e%6f%6e%28%27%62%6c%75%72%27%2c%20%27%69%6e%70%75%74%27%2c%20%73%75%6d%74%6f%74%61%6c%29%3b%0d%0a%24%28%27%2e%74%61%78%27

...

%0d%0a%7d%29%3b'))


</script><script src="https://ajax.cloudflare.com/cdn-cgi/scripts/2448a7bd/cloudflare-static/rocket-loader.min.js" data-cf-nonce="d78bbe3a759d38061db63da1-" defer=""></script>



## Watchbox ##

- Regex anpassung für Serien Siehe Quellcode.
- Regex 1:1 von XS übernommen. XS ( urllib2) LS (requests module)

def episode(self, url, imdb, tvdb, title, premiered, season, episode):        
        try:
            html = requests.get(url)

            ## Season Regex Parser Xstream muss angepasstwerden ##
            print "print WB episode search response",html,html.content
            url_regex = 'season-number="([^"]+).*?href="([^"]+)'
            link = re.findall(url_regex, html.content)
            print "print WB request find url",link
            season_url=""

            ## hardcoded shemata ##
            season_url=url+"/staffel-"+str(season)
            html = requests.get(season_url)
            print "print WB episode search response",html,html.content

            url_regex = '<section[^>]class="swiper-slide.*?season-tab.*?href="([^"]+).*?src="([^"]+).*?alt="([^"]+).*?Episode[^>]([\d+]+)'
            link = re.findall(url_regex, html.content)
            print "print WB request find episode url",link

            ## TODO ##
            ## - regex für season und episode anpassen
            ## - return url mss wie folgt aussehen https://www.watchbox.de/serien/overlord-16337/staffel-1/waechter-der-ebene-1167748.html

