mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
b9abaebc52
commit
fd3838b84c
@ -41,7 +41,7 @@ class BusinessStandard(BasicNewsRecipe):
|
|||||||
return url + '?mode=PF'
|
return url + '?mode=PF'
|
||||||
|
|
||||||
def get_article_url(self, article):
|
def get_article_url(self, article):
|
||||||
rawarticle = article.get('origlink', None)
|
rawarticle = article.get('pheedo_origlink', None)
|
||||||
artls, sep, rsep = rawarticle.rpartition('/?')
|
artls, sep, rsep = rawarticle.rpartition('/?')
|
||||||
if artls == '':
|
if artls == '':
|
||||||
artls = rawarticle.rpartition('?')[0]
|
artls = rawarticle.rpartition('?')[0]
|
||||||
|
@ -166,7 +166,7 @@ class PRS500(DeviceConfig, DevicePlugin):
|
|||||||
try:
|
try:
|
||||||
if not dev.handle:
|
if not dev.handle:
|
||||||
dev.open()
|
dev.open()
|
||||||
if not dev.in_session:
|
if not getattr(dev, 'in_session', False):
|
||||||
dev.send_validated_command(BeginEndSession(end=False))
|
dev.send_validated_command(BeginEndSession(end=False))
|
||||||
dev.in_session = True
|
dev.in_session = True
|
||||||
res = func(*args, **kwargs)
|
res = func(*args, **kwargs)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user