From 26d5ffe5127870968d9233d8341e6c28b10a7aa2 Mon Sep 17 00:00:00 2001 From: amarullz Date: Wed, 17 Jul 2024 01:37:52 +0700 Subject: [PATCH] Release: Nightly 5.2.9 - Fix android vidstream inject script --- app/build.gradle | 2 +- app/src/main/assets/inject/view_player.html | 19 +------------------ package-lock.json | 4 ++-- package.json | 2 +- 4 files changed, 5 insertions(+), 22 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 73bdb54f..f8dc50fc 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -11,7 +11,7 @@ android { minSdk 22 targetSdk 34 versionCode 524 - versionName "5.2.8-Nightly" + versionName "5.2.9-Nightly" // Automatic Build Version diff --git a/app/src/main/assets/inject/view_player.html b/app/src/main/assets/inject/view_player.html index 342363a5..45a86235 100644 --- a/app/src/main/assets/inject/view_player.html +++ b/app/src/main/assets/inject/view_player.html @@ -92,13 +92,11 @@ } }); function jwgetdata(){ - // console.log("ATVLOG jwpget data"); var med=null; try{ med=__JWP.getConfig().playlist[0]; }catch(ee){} - if (med){ - // console.log("ATVLOG jwpget has data"); + if (med && med.sources && med.sources[0] && med.sources[0].file){ var dat={ result:{ sources:[ @@ -115,7 +113,6 @@ }); } window.__JWMEDIA=dat; - // console.log("ATVLOG Got Data: "+JSON.stringify(dat)); $p('mediainfo',dat); } else{ @@ -166,20 +163,6 @@ setTimeout(findjw,200); } -/* -if (location.hash!='#NOPLAY'){ - findjw(); - try{ - if (!$('player')){ - parent.postMessage('player.error','*'); - } - }catch(e){} -} -else{ - __NOPLAY=true; - console.log("NOPLAY"); -} -*/ findjw(); })(); \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 08db7299..624afdea 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "animetv", - "version": "5.2.8", + "version": "5.2.9", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "animetv", - "version": "5.2.8", + "version": "5.2.9", "license": "Apache-2.0", "dependencies": { "axios": "^1.7.2", diff --git a/package.json b/package.json index 6371a396..c62bd399 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "animetv", - "version": "5.2.8", + "version": "5.2.9", "description": "AnimeTV for Desktop", "main": "electron/src/animetv.js", "scripts": {