diff --git a/resources/recipes/boston.com.recipe b/resources/recipes/boston.com.recipe index 125cc4643f..b398d7cc1b 100644 --- a/resources/recipes/boston.com.recipe +++ b/resources/recipes/boston.com.recipe @@ -41,7 +41,7 @@ class BusinessStandard(BasicNewsRecipe): return url + '?mode=PF' def get_article_url(self, article): - rawarticle = article.get('origlink', None) + rawarticle = article.get('pheedo_origlink', None) artls, sep, rsep = rawarticle.rpartition('/?') if artls == '': artls = rawarticle.rpartition('?')[0] diff --git a/src/calibre/devices/prs500/driver.py b/src/calibre/devices/prs500/driver.py index 7c506c6bf0..8d2c4cc9d4 100644 --- a/src/calibre/devices/prs500/driver.py +++ b/src/calibre/devices/prs500/driver.py @@ -166,7 +166,7 @@ class PRS500(DeviceConfig, DevicePlugin): try: if not dev.handle: dev.open() - if not dev.in_session: + if not getattr(dev, 'in_session', False): dev.send_validated_command(BeginEndSession(end=False)) dev.in_session = True res = func(*args, **kwargs)