Skip to content

Commit

Permalink
Merge branch 'master' into fix/partially-parsing-quoted-css-attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
Nfrederiksen authored Nov 28, 2024
2 parents d4c355e + fd5cbc3 commit b19ab78
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion m3u/AttributeList.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,4 +182,4 @@ var parse = {
console.error('Handling value:', value, ' for unknown key:', key);
return value;
}
};
};
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "@eyevinn/m3u8",
"version": "0.5.6",
"description": "streaming m3u8 parser for Apple's HTTP Live Streaming protocol",
"main": "./parser.js",
"keywords": [
"name" : "m3u8",
"version" : "0.0.10",
"description" : "streaming m3u8 parser for Apple's HTTP Live Streaming protocol",
"main" : "./parser.js",
"keywords" : [
"m3u",
"m3u8",
"hls",
Expand Down
7 changes: 6 additions & 1 deletion parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,12 @@ m3uParser.prototype.parse = function parse(line) {
this.linesRead++;
return true;
}
if (['', '#EXT-X-ENDLIST'].indexOf(line) > -1) return true;
switch(['#EXT-X-ENDLIST', ''].indexOf(line)) {
case 0:
this.m3u.set('playlistType', 'VOD');
case 1:
return true;
}
if (line.indexOf('#') == 0) {
this.parseLine(line);
} else {
Expand Down

0 comments on commit b19ab78

Please sign in to comment.