Changed to deal with somebody putting in the mobile url for fanfiction.net... ie <http://m.fanfiction.net/s/11> will get changed to <http://www.fanfiction.net/s/11>

This commit is contained in:
wsuetholz
2010-11-12 21:51:46 -06:00
parent c77498e6ea
commit dbec6c95b2
+7 -1
View File
@@ -86,7 +86,13 @@ class FFNet(FanfictionSiteAdapter):
logging.debug('self.path=%s' % self.path)
logging.debug('self.storyId=%s, chapter=%s' % (self.storyId, chapter))
if self.host is not None and self.host == "m.fanfiction.net":
self.host = "www.fanfiction.net"
logging.debug('self.host=%s' % self.host)
self.url = "http://" + self.host + "/" + self.path
logging.debug('self.url=%s' % self.url)
logging.debug('self.storyId=%s' % self.storyId)
if not self.appEngine:
self.opener = u2.build_opener(u2.HTTPCookieProcessor())
else: