Skip to content

Commit

Permalink
Merge pull request #37 from gentslava/main
Browse files Browse the repository at this point in the history
[pull] master from main
  • Loading branch information
pull[bot] authored Dec 3, 2024
2 parents dbc1d6b + 7bdb4fc commit 2f8cec6
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions app.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -20627,12 +20627,13 @@
}

var Vast = /*#__PURE__*/function () {
function Vast() {
function Vast(num, test) {
_classCallCheck(this, Vast);

this.network = new create$f();
this.listener = start$8();
this.paused = false;
this.test = test;
if (loaded_data.time < Date.now() + 1000 * 60 * 60 * 1) this.load();else if (loaded_data.ad.length) setTimeout(this.start.bind(this), 100);else this.load();
}

Expand All @@ -20641,6 +20642,7 @@
value: function load() {
var _this = this;

if (this.test) return this.start();
var domain = object$2.cub_domain;
this.network.silent(Utils$2.protocol() + domain + '/api/ad/vast', function (data) {
loaded_data.time = Date.now();
Expand Down Expand Up @@ -20676,7 +20678,10 @@
value: function start() {
var _this2 = this;

var block = this.get();
var block = this.test ? {
name: '',
url: this.test
} : this.get();
stat$1('launch', block.name);
this.block = Template$1.js('ad_video_block');
this.block.find('video').remove();
Expand Down Expand Up @@ -20804,6 +20809,7 @@

var next = 0;
var imasdk;
var test = false;

function init$m() {
if (!(Platform.is('orsay') || Platform.is('netcast'))) {
Expand All @@ -20820,7 +20826,7 @@
function video(vast, num, started, ended) {
console.log('Ad', 'launch', vast ? 'vast' : 'video');
var Blok = vast ? Vast : VideoBlock;
var item = new Blok(num);
var item = new Blok(num, test);
item.listener.follow('launch', started);
item.listener.follow('ended', ended);

Expand Down Expand Up @@ -20875,7 +20881,13 @@

function show$5(data, call) {
var ac = Lampa.Activity.active();
if (ac && ac.component == 'full' && ac.id == '1966') return launch(call);
test = false;

if (ac && ac.component == 'full' && ac.id == '1966') {
test = 'https://ad.moe.video/vast?pid=11534&vpt=pre&advertCount=2&vt=vast&vl=1&deviceMode=all&rnd={RANDOM}';
return launch(call);
}

if (window.god_enabled) return launch(call);

if (!Account.hasPremium() && next < Date.now() && !(data.torrent_hash || data.youtube || data.iptv || data.continue_play) && !Personal.confirm()) {
Expand Down

0 comments on commit 2f8cec6

Please sign in to comment.