Skip to content

Commit

Permalink
Yikes, so that worked in testing due to cashe.
Browse files Browse the repository at this point in the history
  • Loading branch information
BelleNottelling committed Dec 22, 2018
1 parent b1490ea commit 2cc540a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Provider/Youtube/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public function provide($input)
$response = $this->getHttpClient()->send($request, $options);

//But just incase it doesn't, we can fallback to the old URL.
*if (strpos($response->getBodyAsString(), 'status=fail') !== false) {
if (strpos($response->getBodyAsString(), 'status=fail') !== false) {
$video_info_url = 'http://www.youtube.com/get_video_info?&video_id=' . $input . '&asv=3&el=detailpage&hl=en_US';
$request = $this->getHttpClient()->createRequest(
'GET',
Expand Down

0 comments on commit 2cc540a

Please sign in to comment.