[Teefury] Fix occasional problem (#2974)
This commit is contained in:
parent
0de1694371
commit
edbafc6144
@ -19,7 +19,8 @@ class TeefuryBridge extends BridgeAbstract
|
|||||||
$titletext = $element->find('p', 0)->innertext;
|
$titletext = $element->find('p', 0)->innertext;
|
||||||
$title = trim(explode('<br>', $titletext)[0]);
|
$title = trim(explode('<br>', $titletext)[0]);
|
||||||
$today = date('m/d/Y');
|
$today = date('m/d/Y');
|
||||||
$uri = self::URI . $element->find('div.js-odad-link', 1)->attr['data-link'];
|
$shirtinfo = $element->find('div[data-link*="odad-tee-mens"]', 0);
|
||||||
|
$uri = self::URI . $shirtinfo->attr['data-link'];
|
||||||
$item = [];
|
$item = [];
|
||||||
$item['uri'] = $uri;
|
$item['uri'] = $uri;
|
||||||
$item['title'] = $title;
|
$item['title'] = $title;
|
||||||
@ -29,7 +30,7 @@ class TeefuryBridge extends BridgeAbstract
|
|||||||
. '<br><a href="'
|
. '<br><a href="'
|
||||||
. $uri
|
. $uri
|
||||||
. '"><img src="'
|
. '"><img src="'
|
||||||
. $element->find('div.js-odad-link', 1)->find('img', 0)->attr['src']
|
. $shirtinfo->find('img', 0)->attr['src']
|
||||||
. '" /></a>';
|
. '" /></a>';
|
||||||
|
|
||||||
$this->items[] = $item;
|
$this->items[] = $item;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user