diff --git a/clients.py b/clients.py index 8abdf6a..9937215 100644 --- a/clients.py +++ b/clients.py @@ -416,13 +416,13 @@ def transform_urls(article): links.append(LinkStruct( content_type="text/html", type="fulltext", - url=article.url, + url=article.remote_url if (article.is_remote and article.remote_url) else article.url, )) if article.pdfs: links.append(LinkStruct( content_type="application/pdf", type="fulltext", - url=article.pdf_url, + url=article.remote_url if (article.is_remote and article.remote_url) else article.pdf_url, )) return links