Handle other url types from freetube:// protocol
Closes: #1207 The app was mistakenly only set up to handle video type urls from the freetube:// protocol. It should now be able to additionally handle playlist, search and channel type as well.
This commit is contained in:
parent
52e600dc13
commit
78324ff775
|
@ -404,14 +404,7 @@ export default Vue.extend({
|
||||||
const v = this
|
const v = this
|
||||||
electron.ipcRenderer.on('openUrl', function (event, url) {
|
electron.ipcRenderer.on('openUrl', function (event, url) {
|
||||||
if (url) {
|
if (url) {
|
||||||
v.$store.dispatch('getVideoParamsFromUrl', url).then(({ videoId, timestamp }) => {
|
v.handleYoutubeLink(url)
|
||||||
if (videoId) {
|
|
||||||
v.$router.push({
|
|
||||||
path: `/watch/${videoId}`,
|
|
||||||
query: timestamp ? { timestamp } : {}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue