Skip to content

Commit

Permalink
FileMoon: add a delay to accomodate Aniwave proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeZeDev authored Mar 3, 2024
1 parent 07c3258 commit 9022259
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/web/mjs/videostreams/FileMoon.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ export default class FileMoon {

async getPlaylist() {
const script = `
new Promise(resolve => {
resolve(window.videop.hls.url);
new Promise((resolve, reject) => {
setTimeout(() => {
resolve(window.videop.hls.url);
}, 3000);
});
`;
const request = new Request(this._uri);
Expand Down

0 comments on commit 9022259

Please sign in to comment.