diff --git a/app/Services/Scrapers/ThiladhunScraper.php b/app/Services/Scrapers/ThiladhunScraper.php index 3ef4834..554e464 100644 --- a/app/Services/Scrapers/ThiladhunScraper.php +++ b/app/Services/Scrapers/ThiladhunScraper.php @@ -4,6 +4,7 @@ namespace App\Services\Scrapers; use Goutte\Client; use Illuminate\Support\Carbon; +use Illuminate\Support\Str; class ThiladhunScraper { @@ -77,7 +78,7 @@ class ThiladhunScraper 'date' => Carbon::parse($date)->format("Y-m-d H:i:s"), 'url' => $url, 'author' => $this->author, - 'guid' => basename($url), + 'guid' => (integer) Str::before(basename($url), '?'), 'topics' => $this->topics ? : [ [ "name" => "ވަކި މަޢުލޫއެއް ނޭންގެ",