View Single Post
Old 06-05-2020, 03:49 AM   #1
hiperlink
Enthusiast
hiperlink began at the beginning.
 
Posts: 45
Karma: 10
Join Date: Dec 2010
Device: Kindle 3 Wifi only
FetchError: Not Found likely due to double slash in URL

Hi All,

I have an issue with my custom recipe for a Hungarian political magazine.

My recipe works usually fine except for some rare ocassions, when they are making the mistake of creating URLs with doulble slashes in it, for example this week:

Code:
Fetching http://www.es.hu/cikk/2020-06-05//a-het-konyvei.html
Could not fetch link http://www.es.hu/cikk/2020-06-05//a-het-konyvei.html
Traceback (most recent call last):
  File "site-packages/calibre/web/fetch/simple.py", line 520, in process_links
  File "site-packages/calibre/web/fetch/simple.py", line 279, in fetch_url
FetchError: Not Found
Now the URL ( 'http://www.es.hu/cikk/2020-06-05//a-het-konyvei.html' ) works just fine, but when we try to navigate to the "normalized" version with a single slash after the date it really is a 404 page.

How should I solve this?
Thanks in advance, for any help!
hiperlink is offline   Reply With Quote