diff options
author | Andrew Dolgov <[email protected]> | 2022-01-13 13:59:41 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2022-01-13 13:59:41 +0300 |
commit | 420782418d18ec922944d0bdf6bf5edb74be26e3 (patch) | |
tree | 3b8aef752ad4076c9d20adf95c7322b28e2ba0be | |
parent | 304845f3807cc1021de1f29a35e2e3c370ff9882 (diff) | |
parent | 4a4928ea254ff31034c50751c50a52c725166866 (diff) |
Merge branch 'master' of git.tt-rss.org:fox/tt-rss
-rwxr-xr-x | plugins/af_readability/init.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/af_readability/init.php b/plugins/af_readability/init.php index a13f2a5b2..cf753ee6b 100755 --- a/plugins/af_readability/init.php +++ b/plugins/af_readability/init.php @@ -233,8 +233,13 @@ class Af_Readability extends Plugin { } if ($entry->hasAttribute("src")) { + if ($entry->hasAttribute("data-src")) { + $src = $entry->getAttribute("data-src"); + } else { + $src = $entry->getAttribute("src"); + } $entry->setAttribute("src", - UrlHelper::rewrite_relative(UrlHelper::$fetch_effective_url, $entry->getAttribute("src"))); + UrlHelper::rewrite_relative(UrlHelper::$fetch_effective_url, $src)); } } |