Ignore:
Timestamp:
May 27, 2020, 8:04:56 PM (5 years ago)
Author:
chronos
Message:
  • Added: Allow to disable MeetSource in database.
  • Added: Show how many meet items were parsed and how many new added.
File:
1 edited

Legend:

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

    r37 r57  
    55  function Import()
    66  {
    7     return;   
     7    return;
    88    $Output = parent::Import();
    99    $Content = file_get_contents($this->URL);
     
    3636      $MeetItem->Height = trim(GetTextBetween($Item, "výška:", 'cm'));
    3737      $MeetItem->Message = trim(html_entity_decode(strip_tags(GetTextBetween($Item, 'data-ft="&#123;&quot;tn&quot;:&quot;K&quot;&#125;">', '</div>'))));
    38       $MeetItem->Age = GetAgeFromText($MeetItem->Message);     
     38      $MeetItem->Age = GetAgeFromText($MeetItem->Message);
    3939      $MeetItem->Height = GetHeightFromText($MeetItem->Message);
    4040      $MeetItem->Weight = GetWeightFromText($MeetItem->Message);
     
    4848      $MeetItem->Database = $this->Database;
    4949      $MeetItem->Source = $this->Id;
    50       $this->AddedCount += $MeetItem->AddIfNotExist();
     50      $this->MeetItems[] = $MeetItem;
    5151    }
    5252    return $Output;
Note: See TracChangeset for help on using the changeset viewer.