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.
This commit is contained in:
parent
b37fab4622
commit
215ae68b56
|
@ -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
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue