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:
Svallinn 2021-04-21 02:02:09 +01:00
parent 52e600dc13
commit 78324ff775
No known key found for this signature in database
GPG Key ID: 09FB527F34037CCA
1 changed files with 1 additions and 8 deletions

View File

@ -404,14 +404,7 @@ export default Vue.extend({
const v = this
electron.ipcRenderer.on('openUrl', function (event, url) {
if (url) {
v.$store.dispatch('getVideoParamsFromUrl', url).then(({ videoId, timestamp }) => {
if (videoId) {
v.$router.push({
path: `/watch/${videoId}`,
query: timestamp ? { timestamp } : {}
})
}
})
v.handleYoutubeLink(url)
}
})