make sure cmp is not just chapters
parent
5439ad3ba3
commit
fc2204a0fd
|
@ -489,6 +489,9 @@ def harvest_fahce(ebook):
|
||||||
|
|
||||||
def harvest_cmp(ebook):
|
def harvest_cmp(ebook):
|
||||||
def selector(doc):
|
def selector(doc):
|
||||||
|
objs = doc.select('.tab-content a.cmp_download_link[href]')
|
||||||
|
if (len({obj['href'] for obj in objs})) > 1:
|
||||||
|
return []
|
||||||
return doc.select('a.cmp_download_link[href]')
|
return doc.select('a.cmp_download_link[href]')
|
||||||
def dl(url):
|
def dl(url):
|
||||||
return url.replace('view', 'download') + '?inline=1'
|
return url.replace('view', 'download') + '?inline=1'
|
||||||
|
|
Loading…
Reference in New Issue