mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-26 07:44:41 +02:00
fix typo in pocket_api articl variable name
This commit is contained in:
@@ -47,7 +47,7 @@ def get_pocket_articles(api: Pocket, since=None, page=0):
|
|||||||
|
|
||||||
|
|
||||||
def link_from_article(article: dict, sources: list):
|
def link_from_article(article: dict, sources: list):
|
||||||
url: str = articl.get('resolved_url') or article['given_url']
|
url: str = article.get('resolved_url') or article['given_url']
|
||||||
broken_protocol = _BROKEN_PROTOCOL_RE.match(url)
|
broken_protocol = _BROKEN_PROTOCOL_RE.match(url)
|
||||||
if broken_protocol:
|
if broken_protocol:
|
||||||
url = url.replace(f'{broken_protocol.group(1)}:/', f'{broken_protocol.group(1)}://')
|
url = url.replace(f'{broken_protocol.group(1)}:/', f'{broken_protocol.group(1)}://')
|
||||||
|
Reference in New Issue
Block a user