From 92e3f7d93c850d053090a5bd7f655c9901131529 Mon Sep 17 00:00:00 2001 From: Rafostar <40623528+Rafostar@users.noreply.github.com> Date: Sun, 11 Apr 2021 15:44:08 +0200 Subject: [PATCH] YT: move info ready debug message before signal emit Otherwise it will appear in wrong order in debug output and be misleading --- src/youtube.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/youtube.js b/src/youtube.js index b9785528..f0c97085 100644 --- a/src/youtube.js +++ b/src/youtube.js @@ -286,11 +286,11 @@ var YouTubeClient = GObject.registerClass({ } this.lastInfo = info; + debug('video info is ready to use'); + this.emit('info-resolved', true); this.downloadingVideoId = null; - debug('video info is ready to use'); - return resolve(info); }