diff --git a/src/you_get/extractors/iwara.py b/src/you_get/extractors/iwara.py index 1f737c12..2a3649b3 100644 --- a/src/you_get/extractors/iwara.py +++ b/src/you_get/extractors/iwara.py @@ -1,10 +1,6 @@ #!/usr/bin/env python __all__ = ['iwara_download'] from ..common import * -from ..common import print_more_compatible as print -from ..extractor import VideoExtractor -from ..util import log -from .. import json_output headers = { 'DNT': '1', 'Accept-Encoding': 'gzip, deflate, sdch, br', @@ -13,28 +9,26 @@ headers = { 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.75 Safari/537.36', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8', 'Cache-Control': 'max-age=0', - 'Referer': 'http://www.dilidili.com/', + 'Connection': 'keep-alive', 'Save-Data': 'on', + 'Cookie':'has_js=1;show_adult=1', } - - def iwara_download(url, output_dir='.', merge=True, info_only=False, **kwargs): global headers video_hash=match1(url, r'http://ecchi.iwara.tv/videos/(\w+)') - html = get_html(url) + html = get_content(url,headers=headers) title = r1(r'