Skip to content
This repository has been archived by the owner on Jul 10, 2022. It is now read-only.

Commit

Permalink
Hichannel m3u8 url change
Browse files Browse the repository at this point in the history
  • Loading branch information
GoneTone committed Jun 9, 2021
1 parent 344be33 commit 7799ffc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GoneTone/HichannelApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function m3u8Url() {
$parser = new ParserFacade();
$parserM3u8Url = $parser->parse(new TextStream($m3u8Data));

return $parseUrl["scheme"] . "://" . $parseUrl["host"] . str_replace("index.m3u8", $parserM3u8Url["EXT-X-STREAM-INF"][0]["uri"], $parseUrl["path"]);
return $parseUrl["scheme"] . "://" . $parseUrl["host"] . str_replace("playlist.m3u8", $parserM3u8Url["EXT-X-STREAM-INF"][0]["uri"], $parseUrl["path"]);
} catch (Exception $e) {
throw new Exception($e->getMessage());
}
Expand Down

0 comments on commit 7799ffc

Please # to comment.