Skip to content

Commit

Permalink
chore: remove unused and non-standard tag #ZEN-TOTAL-DURATION (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonocasey authored Jan 21, 2021
1 parent 8f69b45 commit fb3b629
Show file tree
Hide file tree
Showing 12 changed files with 0 additions and 23 deletions.
12 changes: 0 additions & 12 deletions src/parse-stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,18 +174,6 @@ export default class ParseStream extends Stream {
this.trigger('data', event);
return;
}
match = (/^#ZEN-TOTAL-DURATION:?([0-9.]*)?/).exec(newLine);
if (match) {
event = {
type: 'tag',
tagType: 'totalduration'
};
if (match[1]) {
event.duration = parseInt(match[1], 10);
}
this.trigger('data', event);
return;
}
match = (/^#EXT-X-VERSION:?([0-9.]*)?/).exec(newLine);
if (match) {
event = {
Expand Down
1 change: 0 additions & 1 deletion test/fixtures/integration/absoluteUris.m3u8
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@ https://example.com/00002.ts
//example.com/00003.ts
#EXTINF:10,
http://example.com/00004.ts
#ZEN-TOTAL-DURATION:57.9911
#EXT-X-ENDLIST
1 change: 0 additions & 1 deletion test/fixtures/integration/domainUris.m3u8
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@
/00003.ts
#EXTINF:10,
/00004.ts
#ZEN-TOTAL-DURATION:57.9911
#EXT-X-ENDLIST
1 change: 0 additions & 1 deletion test/fixtures/integration/emptyPlaylistType.m3u8
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@
/test/ts-files/zencoder/haze/Haze_Mantel_President_encoded_1200-00005.ts
#EXTINF:8,
/test/ts-files/zencoder/haze/Haze_Mantel_President_encoded_1200-00006.ts
#ZEN-TOTAL-DURATION:57.9911
#EXT-X-ENDLIST
1 change: 0 additions & 1 deletion test/fixtures/integration/event.m3u8
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@
/test/ts-files/zencoder/haze/Haze_Mantel_President_encoded_1200-00005.ts
#EXTINF:8,
/test/ts-files/zencoder/haze/Haze_Mantel_President_encoded_1200-00006.ts
#ZEN-TOTAL-DURATION:57.9911
#EXT-X-ENDLIST
1 change: 0 additions & 1 deletion test/fixtures/integration/invalidPlaylistType.m3u8
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@
/test/ts-files/zencoder/haze/Haze_Mantel_President_encoded_1200-00005.ts
#EXTINF:8,
/test/ts-files/zencoder/haze/Haze_Mantel_President_encoded_1200-00006.ts
#ZEN-TOTAL-DURATION:57.9911
#EXT-X-ENDLIST
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#EXTM3U
#ZEN-TOTAL-DURATION:50
#EXT-X-TARGETDURATION:-10
#EXTINF:10,
/test/ts-files/zencoder/gogo/00001.ts
Expand Down
1 change: 0 additions & 1 deletion test/fixtures/integration/manifestExtXEndlistEarly.m3u8
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#EXTM3U
#ZEN-TOTAL-DURATION:50
#EXT-X-TARGETDURATION:10
#EXTINF:10,
/test/ts-files/zencoder/gogo/00001.ts
Expand Down
1 change: 0 additions & 1 deletion test/fixtures/integration/manifestNoExtM3u.m3u8
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#ZEN-TOTAL-DURATION:10
#EXT-X-TARGETDURATION:10
#EXTINF:10,
/test/ts-files/zencoder/gogo/00001.ts
Expand Down
1 change: 0 additions & 1 deletion test/fixtures/integration/media.m3u8
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@ media-00002.ts
media-00003.ts
#EXTINF:10,
media-00004.ts
#ZEN-TOTAL-DURATION:57.9911
#EXT-X-ENDLIST
1 change: 0 additions & 1 deletion test/fixtures/integration/whiteSpace.m3u8
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@ http://example.com/00001.ts
//example.com/00003.ts
#EXTINF:10,
http://example.com/00004.ts
#ZEN-TOTAL-DURATION:57.9911
#EXT-X-ENDLIST
1 change: 0 additions & 1 deletion test/fixtures/integration/zeroDuration.m3u8
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@

#EXTINF:0,
http://example.com/00001.ts
#ZEN-TOTAL-DURATION:57.9911
#EXT-X-ENDLIST

0 comments on commit fb3b629

Please sign in to comment.