From 9c45b474dd3b35c23904ab1e2a1ba28d0ff4d867 Mon Sep 17 00:00:00 2001 From: darkelfe14728 Date: Fri, 19 Jul 2024 20:34:56 +0200 Subject: [PATCH] Correction restitution URL source --- src/Main.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Main.php b/src/Main.php index 0119ba4..73fc94c 100644 --- a/src/Main.php +++ b/src/Main.php @@ -705,7 +705,7 @@ EOF case '': if (preg_match('`^Original\s+source\s*:\s*.+href\s*=\s*"(?[^"]+)"`i', $match['value'], $matchUrl) === 1) { - $metadata->source = $matchUrl['url']; + $metadata->url = $matchUrl['url']; } elseif (preg_match('`^Exported\s+with`i', $match['value']) !== 1) { $metadata->summary = $match['value']; @@ -954,4 +954,4 @@ EOF $metaColumn->setAttribute('name', 'calibre:user_metadata:#' . $name); $metaColumn->setAttribute('content', json_encode($content)); } -} \ No newline at end of file +}