From 215ae68b56bfb6e3917e8d423c541577d5852a82 Mon Sep 17 00:00:00 2001 From: Hiers <47784553+Hiers@users.noreply.github.com> Date: Sun, 28 Feb 2021 21:37:18 +0000 Subject: [PATCH] Changed command line input to only allows youtube video links. (#1073) * Changed command line input to only allows youtube video links. * Changed URL logic in renderer/App.js instead of making restriction in index.js. --- src/renderer/App.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/renderer/App.js b/src/renderer/App.js index 2795d8c4..2eab0c06 100644 --- a/src/renderer/App.js +++ b/src/renderer/App.js @@ -289,16 +289,6 @@ export default Vue.extend({ v.$router.push({ path: `/watch/${result}` }) - } else { - v.$router.push({ - path: `/search/${encodeURIComponent(url)}`, - query: { - sortBy: v.searchSettings.sortBy, - time: v.searchSettings.time, - type: v.searchSettings.type, - duration: v.searchSettings.duration - } - }) } }) }