View Single Post
Old 06-18-2014, 10:58 AM   #2995
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by rlh3 View Post
The "Get Story URLs from web page" appears to be broken again on Literotica. The error message says that there are "no valid story URLs on the given page."

A random author's page is attached.

http://www.literotica.com/stories/me...ge=submissions

Thanks.

PS I was the one who brought this up back in December, but unfortunately work took me away from the home computer for long enough for me to forget about it, so I never got around to testing the fix that Jimm made.
It looks like the links on the author submission page do not include the "http:" in the links.

JimmXinu: Adding the following near the start of "adapters.getClassFor" will fix this.

Code:
    if fixedurl.startswith("//"):
        fixedurl = "http:%s"%url
I think it fits in here as the method is already fixing the URL. Otherwise, it could be done in "geturls.get_urls_from_html" before the call to "adapters.getAdapter".
davidfor is offline