From 7a00630533afc3be3c647874e4c919401cf32bed Mon Sep 17 00:00:00 2001 From: ghost Date: Sun, 17 Sep 2023 01:25:01 +0300 Subject: [PATCH] fix variable name --- src/crontab/import/feed.php | 2 +- src/public/api/push.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/crontab/import/feed.php b/src/crontab/import/feed.php index 02385aa..a1c657e 100644 --- a/src/crontab/import/feed.php +++ b/src/crontab/import/feed.php @@ -572,7 +572,7 @@ try foreach ($remoteMagnet->xs as $xs) { - if ($url = Yggverse\Parser\Url::parse($tr)) + if ($url = Yggverse\Parser\Url::parse($xs)) { $db->initMagnetToExactSourceId( $localMagnet->magnetId, diff --git a/src/public/api/push.php b/src/public/api/push.php index 2f71673..ad63354 100644 --- a/src/public/api/push.php +++ b/src/public/api/push.php @@ -513,7 +513,7 @@ else foreach ($remote->tr as $tr) { - if ($url = Yggverse\Parser\Url::parse($xs)) + if ($url = Yggverse\Parser\Url::parse($tr)) { $db->initMagnetToAddressTrackerId( $local->magnetId, @@ -532,7 +532,7 @@ else foreach ($remote->as as $as) { - if ($url = Yggverse\Parser\Url::parse($xs)) + if ($url = Yggverse\Parser\Url::parse($as)) { $db->initMagnetToAcceptableSourceId( $local->magnetId,