Skip to content

Commit

Permalink
Fix animeflix video playback
Browse files Browse the repository at this point in the history
  • Loading branch information
amarullz committed Jun 24, 2024
1 parent 6275d35 commit a6058b7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/src/main/assets/view/m.js
Original file line number Diff line number Diff line change
Expand Up @@ -6979,7 +6979,7 @@ const pb={

// Parsing Player HTML
var d=$n('div','',null,null,r.responseText);
var srcscript=d.querySelectorAll('script')[2];
var srcscript=d.querySelectorAll('script')[1];
if (!srcscript){
console.log("Player HTML Failed = "+r.responseText);
d.innerHTML='';
Expand Down Expand Up @@ -7036,10 +7036,15 @@ const pb={
LEVEL_SWITCHED:2,
ERROR:3
};
var abg=$('animebg');
/* Create dummy video tag */
var vid_tmp=$n('video','',{'id':'player'},abg,'');
console.log(iscript);
eval(iscript+`
play_data.pos[0]=[introstart&&introend?introstart:0,introstart&&introend?introend:0];
play_data.pos[1]=[outrostart&&outroend?outrostart:0,outrostart&&outroend?outroend:0];
`);
abg.removeChild(vid_tmp);
delete window.Hls;
delete window.hls;
}catch(e){
Expand Down

0 comments on commit a6058b7

Please sign in to comment.