Changeset 53 for trunk/Modules/Meet


Ignore:
Timestamp:
Jan 12, 2020, 3:48:17 PM (5 years ago)
Author:
chronos
Message:
  • Fixed: Removed google ads text from seznamka.cz advertiser name.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Meet/Import/Seznamka.php

    r37 r53  
    77    $Output = parent::Import();
    88    $Content = file_get_contents($this->URL);
     9    $Content = str_replace("(adsbygoogle = window.adsbygoogle || []).push({});", "", $Content);
    910    $BlockStart = '<h1>Tanec ... : Seznamka</h1>';
    1011    $BlockEnd = '<h2>Doporučujeme</h2>';
    11     //echo($Content);
    1212    $Content = GetTextBetween($Content, $BlockStart, $BlockEnd);
    1313    if ($Content == '')
     
    2828      if ($MeetItem->Gender == 'zena') $MeetItem->Gender = Gender::Female;
    2929        else if ($MeetItem->Gender == 'muz') $MeetItem->Gender = Gender::Male;
    30         else $MeetItem->Gender = Gender::Undefined;   
     30        else $MeetItem->Gender = Gender::Undefined;
    3131      $MeetItem->Name = trim(GetTextBetween($Item, '>', '</span>'));
    3232      $MeetItem->Name = trim(strip_tags($MeetItem->Name));
     
    3737      $MeetItem->Time = trim(GetTextBetween($Item, 'TOP</a> &nbsp;', '</span>'));
    3838      if ($MeetItem->Time == 'Včera') $MeetItem->Time = HumanDate(time() - 60*60*24);
    39         else if ($MeetItem->Time == 'Dnes') $MeetItem->Time = HumanDate(time());     
     39        else if ($MeetItem->Time == 'Dnes') $MeetItem->Time = HumanDate(time());
    4040      $MeetItem->Time = HumanDateToTime($MeetItem->Time);
    4141      $MeetItem->Message = trim(strip_tags(GetTextBetween($Item, '<p>', '</p>')));
Note: See TracChangeset for help on using the changeset viewer.