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,