fix voice

This commit is contained in:
Mohamed jinas
2024-01-07 21:18:43 +05:00
parent 46ead16ef8
commit c8329962b7
4 changed files with 37 additions and 40 deletions

View File

@@ -1,4 +1,5 @@
<?php
namespace App\Services;
use App\Services\Feeds\VoiceFeed;
@@ -18,9 +19,10 @@ class VoiceService
$articlesitems = [];
//Looping through the articles and scraping and while scraping it creates a new instance of the scraper.
foreach ($articles as $article) {
$articlesitems[] = (new VoiceScraper)->extract("https://voice.mv".$article[1]);
$articlesitems[] = (new VoiceScraper)->extract($article["link"]);
}
return $articlesitems;
}
}
}