Prepare viz.com
@@ -18,47 +18,10 @@ class VizCom(Provider, Std):
return self._get_name('/chapters/([^/]+)')
def get_chapters(self):
- return self._elements('.o_products .chapter-text > a')
+ pass
def get_files(self):
- volume_id = self.re.search('/chapter/[^/]+/(\d+)', self.chapter)
- params = [
- 'device%5Fid=3',
- # 'page={}',
- 'manga%5Fid={}'.format(volume_id.groups()[0]),
- 'loadermax=1',
- ]
-
- uri = '{}/manga/get_manga_url?'.format(self.domain)
- uri += '&'.join(params)
-
- n = 0
- _img_index = 0
- while n < 299: # FIXME!
-
- _img_index += 1
- page_url = '{}&page={}'.format(uri, n)
-
- parser = self.html_fromstring(page_url, 'ImageLoader')
-
- if not len(parser):
- break
-
- # TODO!
- # t = MultiThreads()
- #
- # for i in parser:
- # img_url = i.get('url')
- # if ~img_url.find('blankpage.jpg'):
- # break
- # # see manga.py:280
- # t.addThread(download_one_file, (img_url,))
- # # safe_downloader(img_url, path.join(temp_root_path, 'img_{:0>3}.jpg'.format(_img_index)))
- # t.startAll()
-
- n += 2
-
- return [-1]
+ pass
def get_cover(self):
pass
@@ -67,5 +30,8 @@ class VizCom(Provider, Std):
# todo meta
pass
+ def prepare_cookies(self):
+ pass
+
main = VizCom
