Browse Source

fix variable name

main
ghost 1 year ago
parent
commit
7a00630533
  1. 2
      src/crontab/import/feed.php
  2. 4
      src/public/api/push.php

2
src/crontab/import/feed.php

@ -572,7 +572,7 @@ try
foreach ($remoteMagnet->xs as $xs) foreach ($remoteMagnet->xs as $xs)
{ {
if ($url = Yggverse\Parser\Url::parse($tr)) if ($url = Yggverse\Parser\Url::parse($xs))
{ {
$db->initMagnetToExactSourceId( $db->initMagnetToExactSourceId(
$localMagnet->magnetId, $localMagnet->magnetId,

4
src/public/api/push.php

@ -513,7 +513,7 @@ else
foreach ($remote->tr as $tr) foreach ($remote->tr as $tr)
{ {
if ($url = Yggverse\Parser\Url::parse($xs)) if ($url = Yggverse\Parser\Url::parse($tr))
{ {
$db->initMagnetToAddressTrackerId( $db->initMagnetToAddressTrackerId(
$local->magnetId, $local->magnetId,
@ -532,7 +532,7 @@ else
foreach ($remote->as as $as) foreach ($remote->as as $as)
{ {
if ($url = Yggverse\Parser\Url::parse($xs)) if ($url = Yggverse\Parser\Url::parse($as))
{ {
$db->initMagnetToAcceptableSourceId( $db->initMagnetToAcceptableSourceId(
$local->magnetId, $local->magnetId,

Loading…
Cancel
Save