Changeset 938 for trunk/Modules/News/Import/Vismo.php
- Timestamp:
- Jul 30, 2022, 12:10:48 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/News/Import/Vismo.php
r887 r938 3 3 class NewsSourceVismo extends NewsSource 4 4 { 5 5 6 function Import(): string 6 7 { 7 8 $Output = parent::Import(); 8 $Content = file_get_contents ($this->URL);9 $Content = file_get_contents_curl($this->URL); 9 10 10 11 $BlockStart = '<h2 class="cvi text-to-speech">Přehled dokumentů</h2>'; … … 26 27 $NewsItem->Link = GetUrlBase($this->URL).html_entity_decode(GetTextBetween($Item, '<a href="', '">')); 27 28 $NewsItem->Title = html_entity_decode(GetTextBetween($Item, '', '</a>')); 28 $ NewsItem->Date = GetTextBetween($Item, '<span>(', ')</span>');29 $NewsItem->Date = HumanDateToTime($ NewsItem->Date);29 $Date = GetTextBetween($Item, '<span>(', ')</span>'); 30 $NewsItem->Date = HumanDateToTime($Date); 30 31 $NewsItem->Category = $this->Category; 31 32 if (strpos($Item, '<div>') !== false)
Note:
See TracChangeset
for help on using the changeset viewer.