Skip to content

Commit 2bc802e

Browse files
committed
increment the max connection duration
1 parent 4e300ae commit 2bc802e

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Embed/Adapters/Marca.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,8 @@ public function getCode () {
3131
$value = $param->getAttribute('value');
3232

3333
if (substr($value, 0, $startValueLength) === $startValue) {
34-
$value = substr($value, $startValueLength);
34+
return Viewers::videoHtml($this->getImage(), substr($value, $startValueLength));
3535
}
36-
37-
return Viewers::videoHtml($this->getImage(), $value);
3836
}
3937
}
4038
}

Embed/Url.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ private function resolve () {
5757
CURLOPT_RETURNTRANSFER => true,
5858
CURLOPT_FOLLOWLOCATION => true,
5959
CURLOPT_MAXREDIRS => 20,
60-
CURLOPT_CONNECTTIMEOUT => 5,
60+
CURLOPT_CONNECTTIMEOUT => 10,
6161
CURLOPT_TIMEOUT => 10,
6262
CURLOPT_SSL_VERIFYPEER => false,
6363
CURLOPT_SSL_VERIFYHOST => false,

0 commit comments

Comments
 (0)