aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/Wallabag/CoreBundle/Helper/ContentProxy.php11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/Wallabag/CoreBundle/Helper/ContentProxy.php b/src/Wallabag/CoreBundle/Helper/ContentProxy.php
index 3024fdc5..bfaa1976 100644
--- a/src/Wallabag/CoreBundle/Helper/ContentProxy.php
+++ b/src/Wallabag/CoreBundle/Helper/ContentProxy.php
@@ -45,14 +45,7 @@ class ContentProxy
45 } 45 }
46 46
47 if ((empty($content) || false === $this->validateContent($content)) && false === $disableContentUpdate) { 47 if ((empty($content) || false === $this->validateContent($content)) && false === $disableContentUpdate) {
48 try { 48 $fetchedContent = $this->graby->fetchContent($url);
49 $fetchedContent = $this->graby->fetchContent($url);
50 } catch (\Exception $e) {
51 $this->logger->error('Error while trying to fetch content from URL.', [
52 'entry_url' => $url,
53 'error_msg' => $e->getMessage(),
54 ]);
55 }
56 49
57 // when content is imported, we have information in $content 50 // when content is imported, we have information in $content
58 // in case fetching content goes bad, we'll keep the imported information instead of overriding them 51 // in case fetching content goes bad, we'll keep the imported information instead of overriding them
@@ -73,7 +66,7 @@ class ContentProxy
73 * Will fall back to OpenGraph data if available. 66 * Will fall back to OpenGraph data if available.
74 * 67 *
75 * @param Entry $entry Entry to stock 68 * @param Entry $entry Entry to stock
76 * @param array $content Array with at least title and URL 69 * @param array $content Array with at least title, url & html
77 */ 70 */
78 private function stockEntry(Entry $entry, array $content) 71 private function stockEntry(Entry $entry, array $content)
79 { 72 {