Skip to content

Commit

Permalink
Look for google_skyfire to extract vimeo master json
Browse files Browse the repository at this point in the history
  • Loading branch information
AmirRezaM75 committed Dec 8, 2022
1 parent 246e12a commit 48b0207
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion App/Vimeo/VimeoRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function get($vimeoId)

preg_match('/"streams":(\[{.+?}\])/', $content, $streams);

preg_match('/"akfire_interconnect_quic":({.+?})/', $content, $cdns);
preg_match('/"(?:google_skyfire|akfire_interconnect_quic)":({.+?})/', $content, $cdns);

$vimeo = new VideoDTO();
return $vimeo->setMasterURL(json_decode($cdns[1], true)['url'])
Expand Down

0 comments on commit 48b0207

Please sign in to comment.