fix mit, add redliclibros, nai010 bookshop

pull/94/head^2
eric 2024-11-22 14:33:33 -05:00
parent 03e71be2df
commit 37a5486abe
2 changed files with 5 additions and 1 deletions

View File

@ -85,6 +85,7 @@ STOREPROVIDERS = [
'manchesteruniversitypress.co.uk',
'mitpress.mit.edu',
'munishop.muni.cz',
'nai010.com',
'nomos-shop.de',
'palgrave.com',
'placedeslibraires.fr',

View File

@ -138,6 +138,7 @@ CMPPROVIDERS = [
'omp.ub.rub.de',
'penerbit.brin.go.id',
'press.uni.lodz.pl',
'redliclibros.com',
'Scholars Portal',
'teiresias-supplements.mcgill.ca',
'textbooks.open.tudelft.nl',
@ -938,9 +939,11 @@ def harvest_muse(ebook):
def harvest_mitpress(ebook):
def selector(doc):
return doc.select('a.book-pdfLink[href]')
def chap_selector(doc):
return doc.select('a.section-pdfLink[href]')
return harvest_stapled_generic(ebook, None, chap_selector, strip_covers=0)
return harvest_stapled_generic(ebook, selector, chap_selector, strip_covers=0)
def harvest_ios(ebook):