Skip to content

Commit

Permalink
abema filter out some chunks
Browse files Browse the repository at this point in the history
  • Loading branch information
Last-Order committed Aug 29, 2021
1 parent d3a235e commit 56c2610
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/core/live.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,6 @@ export default class LiveDownloader extends Downloader {
});
logger.debug(`Get ${currentPlaylistChunks.length} new chunk(s).`);
const currentUndownloadedChunks = currentPlaylistChunks.map((chunk) => {
// TODO: Hot fix of Abema Live
if (chunk.url.includes("linear-abematv")) {
if (chunk.url.includes("tsad")) {
return undefined;
}
}
return {
filename: this.onChunkNaming
? this.onChunkNaming(chunk)
Expand Down
3 changes: 3 additions & 0 deletions src/core/parsers/abema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ export default class Parser {
CommonUtils.buildFullUrl(downloader.m3u8.m3u8Url, downloader.m3u8.key),
downloader.key
);
downloader.m3u8.chunks = downloader.m3u8.chunks.filter((chunk) => {
return !chunk.url.includes("/tspgsl/") && !chunk.url.includes("/tsad/");
});
return {};
}
}

0 comments on commit 56c2610

Please sign in to comment.