View Single Post
Old 03-20-2023, 12:26 PM   #8229
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 7,027
Karma: 4604637
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New Test Version Posted

2023-03-20
- Changes to wattpad API mapping chapter URLs to story URLs.

Quote:
Originally Posted by jan2544213 View Post
Im currently encountering the "no valid url found" with wattpad stories.
Example:https://www.wattpad.com/814913365-wh...7the-vision%27

However, if I get story from urls from webpage, it will generate a different URL for the same story(ex:https://www.wattpad.com/story/181493861-the-vision) and this url works.
Wattpad is a complicated site that uses json API URLs and doesn't include the story ID in the chapter URLs. The first URL above is to a specific chapter, while the second is the story URL.

The API call the adapter uses to map a given chapter URL to the story ID/URL wasn't working anymore, looks like the API has changed.

The wattpad adapter is unusual(unique?) in that it does a network hit to map chapter URLs to the story URL much earlier in the process. To the point, I don't generally allow networks reqs there.

But I didn't write that adapter, and it is existing behavior, so I will (try to) fix it.
JimmXinu is online now   Reply With Quote