]> _ Git - psq.git/commitdiff
log
authorLouis Jeckel <louis.jeckel@outlook.com>
Thu, 3 Dec 2020 12:15:42 +0000 (13:15 +0100)
committerLouis Jeckel <louis.jeckel@outlook.com>
Thu, 3 Dec 2020 12:15:42 +0000 (13:15 +0100)
app/Invokables/GetPageTitleFromUrl.php

index b615a289f916e490d9bfdae22a47b5d1773856e3..004432ccc420a8e98c15f9ccd36622f78695dc88 100644 (file)
@@ -13,14 +13,12 @@ class GetPageTitleFromUrl
 
 
         \Log::debug("get title $url");
-        if(Str::contains($url, 'prescription-quotidien')) {
-            return "PSQ";
-        }
+//        if(Str::contains($url, 'prescription-quotidien')) {
+//            return "PSQ";
+//        }
         $ch = curl_init();
         curl_setopt($ch, CURLOPT_URL, $url);
 
-
-
         $headers = [];
         $headers[] = "User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0";
         $headers[] = "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8";