Update ThiladhunScraper.php

This commit is contained in:
2021-06-10 00:35:17 +05:00
parent 522d6caa8c
commit 720d5d5fce

View File

@@ -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" => "ވަކި މަޢުލޫއެއް ނޭންގެ",