Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add QT Url support for freetube protocol #3119

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1026,7 +1026,15 @@ function runApp() {
}

function baseUrl(arg) {
return arg.replace('freetube://', '')
let newArg = arg.replace('freetube://', '')
// add support for authority free url
.replace('freetube:', '')

// fix for QT Url
ChunkyProgrammer marked this conversation as resolved.
Show resolved Hide resolved
if (newArg.startsWith('https') && !newArg.charAt(5) !== ':') {
ChunkyProgrammer marked this conversation as resolved.
Show resolved Hide resolved
newArg = 'https:' + newArg.substring(5)
}
return newArg
}

function getLinkUrl(argv) {
Expand Down