Skip to content

Commit

Permalink
disable obsolete dash test
Browse files Browse the repository at this point in the history
  • Loading branch information
ikreymer committed Nov 19, 2024
1 parent 62f97b1 commit a43e55f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rewrite/dsruleset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ const RANGE_RULES = [
];

export function hasRangeAsQuery(url: string) {
if (!url) {
return null;
}
for (const rule of RANGE_RULES) {
const { contains, start, end } = rule;
if (url.match(contains)) {
Expand Down
2 changes: 2 additions & 0 deletions test/rewriteVideo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ const test4 = ytplayer.config.args.dash = "0"; ytplayer.config.args.dashmpd = ""
t.is(result, expected, result);
});

/*
test("FB rewrite JS", async (t) => {
const content = `\
<script>
Expand All @@ -228,6 +229,7 @@ const test1 = {"__nodash__url": "foo", {"some__nodash__": "a", "data__nodash__fo
});
t.is(result, expected);
});
*/

test("Twitter rewrite json", async (t) => {
const content = {
Expand Down

0 comments on commit a43e55f

Please sign in to comment.