View Single Post
Old 03-04-2022, 05:00 AM   #117
13xforever
Connoisseur
13xforever ought to be getting tired of karma fortunes by now.13xforever ought to be getting tired of karma fortunes by now.13xforever ought to be getting tired of karma fortunes by now.13xforever ought to be getting tired of karma fortunes by now.13xforever ought to be getting tired of karma fortunes by now.13xforever ought to be getting tired of karma fortunes by now.13xforever ought to be getting tired of karma fortunes by now.13xforever ought to be getting tired of karma fortunes by now.13xforever ought to be getting tired of karma fortunes by now.13xforever ought to be getting tired of karma fortunes by now.13xforever ought to be getting tired of karma fortunes by now.
 
13xforever's Avatar
 
Posts: 61
Karma: 1852838
Join Date: Jul 2007
Location: Russia
Device: Kobo Aura H₂O & iPad Pro 2020 12.9"
interestingly, my proposed changes still work fine (I had to remove your user agent override from 1.8.3 though)

in __init__.py:
Code:
    def set_extra_headers(self, br):
        br.set_current_header('Accept', 'text/html,application/xhtml+xml,application/xml;q=0.9,image/*,*/*;q=0.8')
        br.set_current_header('Accept-Language', 'en-US,en-UK,en;q=0.9,ja;q=0.8')
        br.set_current_header('Accept-Encoding', 'gzip')
and then later in identity: and download_cover: functions change
br = self.browser to br = self.set_extra_headers(self.browser)

also from testing, `Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Safari/605.1.15` user agent seems to be the most reliable at the moment, but yes, it's a game of cat and mouse when there's no documentation and protection can change any moment

Last edited by 13xforever; 03-04-2022 at 05:14 AM.
13xforever is offline   Reply With Quote