From e043a008063ec72c796409f0f15be5fc6dc8f41d Mon Sep 17 00:00:00 2001 From: RblSb Date: Tue, 28 Sep 2021 22:11:01 +0300 Subject: Call setPos after items added --- res/client.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'res') diff --git a/res/client.js b/res/client.js index 8e36477..529ff48 100644 --- a/res/client.js +++ b/res/client.js @@ -2363,14 +2363,14 @@ client_Player.prototype = { currentUrl = _this.items[_this.pos].url; } this.clearItems(); - if(pos != null) { - this.videoList.setPos(pos); - } if(list.length == 0) { return; } var _g = 0; while(_g < list.length) this.addVideoItem(list[_g++],true); + if(pos != null) { + this.videoList.setPos(pos); + } var _this = this.videoList; if(currentUrl != _this.items[_this.pos].url) { this.setVideo(this.videoList.pos); -- cgit v1.2.3