Changeset 65 for trunk/Modules/Meet/Import/Eso.php
- Timestamp:
- Apr 19, 2022, 10:25:41 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Meet/Import/Eso.php
r63 r65 26 26 27 27 $MeetItem->Name = trim(GetTextBetween($Item, '<h3 class="panel-title tucne">', '/')); 28 $ MeetItem->Gender = trim(GetTextBetween($Item, ' ', '</h3'));29 if (strpos($ MeetItem->Gender, 'partnerku') !== false) $MeetItem->Gender = Gender::Male;30 else if (strpos($ MeetItem->Gender, 'partnera') !== false) $MeetItem->Gender = Gender::Female;28 $Gender = trim(GetTextBetween($Item, ' ', '</h3')); 29 if (strpos($Gender, 'partnerku') !== false) $MeetItem->Gender = Gender::Male; 30 else if (strpos($Gender, 'partnera') !== false) $MeetItem->Gender = Gender::Female; 31 31 else $MeetItem->Gender = Gender::Undefined; 32 32 $Small = GetTextBetween($Item, '<small>', '</small>'); … … 36 36 $Small = substr($Small, strpos($Small, '/') + 1); 37 37 } 38 $ MeetItem->Time = trim($Small);39 $MeetItem->Time = HumanDateToTime($ MeetItem->Time);38 $Time = trim($Small); 39 $MeetItem->Time = HumanDateToTime($Time); 40 40 $MeetItem->Message = trim(GetTextBetween($Item, '<p class="lead">', '</p>')); 41 41 $MeetItem->Age = GetAgeFromText($MeetItem->Message); … … 55 55 } 56 56 } 57
Note:
See TracChangeset
for help on using the changeset viewer.