Skip to content

Commit

Permalink
Fix source
Browse files Browse the repository at this point in the history
  The site refuses to accept the Referer header, which is a slice of the current url, so we use the main url of the site without language prefixes.
  • Loading branch information
CryZFix committed Oct 19, 2023
1 parent 44626fb commit 352e5e5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sources/multi/mtlnovel.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ class MtlnovelCrawler(Crawler):
"http://es.mtlnovel.com/",
]

def initialize(self):
self.home_url = "https://mtlnovel.com/"

def search_novel(self, query):
query = query.lower().replace(" ", "%20")
# soup = self.get_soup(search_url % query)
Expand Down

0 comments on commit 352e5e5

Please sign in to comment.