adapter_storiesonlinenet: Single chapter stories slightly different. Also scifistories and finestories. Closes #867

This commit is contained in:
Jim Miller 2022-07-26 10:39:40 -05:00
parent 943bf1f36c
commit f4a7a8657e

View file

@ -465,7 +465,10 @@ class StoriesOnlineNetAdapter(BaseSiteAdapter):
def getMoreText(self, html):
try:
story_id = int(re.compile('var story_id=(\d+)').findall(html)[0])
pid = re.compile('var pid=(\d+)').findall(html)[0]
try:
pid = re.compile('var pid=(\d+)').findall(html)[0]
except:
pid = 'undefined'
ci = re.compile("var ci='([^']+)'").findall(html)[0]
tto = re.compile("var tto='([^']+)'").findall(html)[0]
url = "https://"+self.getSiteDomain()+"/res/responders/tl.php?r="+unicode(random.randint(1, 100001))