Since I love FreeTube very much, I would like to use it to open automagically YT links in any kind of situation. I use Mac OS but I think can be applied to Linux and Windows as well.
ANALYSIS
I can identify 3 kinds of "open a link" situations:
CHALLENGES/PROBLEMS

Any solution/fix?
Thank you! 馃檹
Hi. Thanks that you identified the situations so closely.
1) This could probably be implemented into the freetube-redirect as well, although I did not take a single look into it yet
2) As far as I am aware, the rewrite does not handle it correctly at the moment, that is why the addon is not working. However there were already discussions over at the Matrix channel to fix it.
3) That is something that was mentioned in an older issue #474 . So thanks for bringing it up again. This should then be implemented correctly. However neither PrestoN nor I own a Apple devices, so testing for Mac is not possible for us at the moment. So any contributions from an Apple device owner are more than welcomed.
I think overall these are some good first issues for new contributors. In regards to the contribution guideline take a look here #566. I hope we can add it back soon
Thank you for the quick response! :)
1.2. Exactly what I imagined ;)
I'm your "Mac tester" then! ;)
PS
thanks to point me to the guidelines 馃檹
So in the next release, or if you want to use the automated releases that are under the actions tab, the plugin is already fixed.
So you can download that and install it and then the plugin should run again
So in the next release, or if you want to use the automated releases that are under the actions tab, the plugin is already fixed.
So you can download that and install it and then the plugin should run again
I'm sorry, I went to Actions but I don't understand what I should do... 馃
I'm more into web dev so I'm kinda lost without a compiled App to download 馃槢
maybe you mean that I've to switch the FreeTube Helper (Plugin).app ? anyway that's a compiled file as well... 馃檮
If you follow this link and click on the first build, you'll see downloadable binaries for your device.
Assuming FreeTube is installed on your machine, it should enable the freetube:// protocol to properly handle opening of links. You should be able to add freetube:// in front of any YouTube URL to have it open into FreeTube.
This is already working and enabled in the latest dev builds, so I'll go ahead and close this issue.
I don't see any build...are you sure they are public?
this is what I see:

Each commit message you see is a new build. For example, the first build in that picture is the build with the message "Update README.md"
Click on that and you'll find the download links.
I did it but links were not active, now they are, no idea what happened... 馃
Anyway I downloaded the 0.9.0 and I tested it with the Chrome extension: the FreeTube app is called but shows the same "TypeError: Cannot read property 'simpleText' of undefined" problem as before. 馃槥

That sounds like a different issue. I'd need to know what video you're trying to open that's causing that error. If FreeTube is opening properly, then it's not a problem with the extension and needs to be a new issue.
That sounds like a different issue. I'd need to know what video you're trying to open that's causing that error. If FreeTube is opening properly, then it's not a problem with the extension and needs to be a new issue.
Actually is the same error I put in my first message, but you're right it's something else: I get that error every time I open the App! I mistakenly associated the error with the video opening, but they are probably not correlated.
The behaviour I see when I click on a YT link (whatever) is:
This still needs to be fixed, so please re-open the issue. 馃檹
I found the real cause of the "TypeError: Cannot read property 'simpleText' of undefined" error and opened another issue: #622
I tried to open freetube://www.youtube.com/watch?v=WHATEVER, I get the request to choose the FreeTube app but the behaviour is the same described: app opens or gets in focus but no video loaded.
Can you confirm that when FreeTube automatically opens up that it's using v0.9.0? If I had to guess, your Mac might still be using v0.8.0 to open the link, which wouldn't have the logic in it.
Alright. This is starting to be strange.
If you have the app opened up before you click on a link, does it redirect properly? I'm curious if it's maybe a timing issue with how the app is setup. If this works then this should help narrow it down.
No, in no case the video is loaded, the app just opens or switch focus but nothing else. 馃槩 It loads the default view with recent videos.
I've tested the latest build...same. 馃憪
Same case for me as well, on macOS.
Going to re-purpose this issue since there's still a problem going on. Please know that I don't have access to a Mac and it's much harder for me to test for one, so this may be a while before I can get a proper look at it.
Could one of you please try out this build and see if this fixes the issue? I haven't tested this so it might not work, but after some reading up the change I made should have done something. Let me know if anything is different.
Could one of you please try out this build and see if this fixes the issue? I haven't tested this so it might not work, but after some reading up the change I made should have done something. Let me know if anything is different.
It looks the same behaviour to me 馃槥
FreeTube is called but nothing is loaded, the content remains the same whatever it is. I tried to play a video and see if it gets at least interrupted...nope. All I get is the switch of focus from Brave to FreeTube. 馃憪
Maybe you can make a build with some debugging output that I can send you back to analyse?
Also have the same problem with the latest build (the latest build includes all commits correct?).
I've implemented a fix for this in the linked PR. The custom protocol handling in macOS is different to Win/Linux. Those flows also changed a bit but I don't have a Win/Linux machine to test them on, so if someone could do a sanity check on those too that would be much appreciated.
I've implemented a fix for this in the linked PR. The custom protocol handling in macOS is different to Win/Linux. Those flows also changed a bit but I don't have a Win/Linux machine to test them on, so if someone could do a sanity check on those too that would be much appreciated.
waiting the build to test it! 馃槃
@cmf , can confirm that this works on my MBP 16". Good job!