Jump to content

YouTube workflow


Recommended Posts

Hey Simonbs, would it be possible to / could you add a search for the uploads from subscriptions on youtube as well ? http://www.youtube.com/feed/subscriptions/u'>http://www.youtube.com/feed/subscriptions/u

 

Or would that be a big mess of authentification an passwords ? 

That’s definitely possible but as you mention this would require some configurations and authentication. I would like to keep this workflow very easy to use and therefore I don't think that I will include this yet. Hopefully Alfred will some day include a way to do "workflow wide" configurations from within the workflow editor. I have suggested that here. http://www.alfredforum.com/index.php?/topic/174-configurations-in-a-workflow/

Link to comment
This is a spectacular workflow, thank you!

 

I am having an odd error when attempting to access a channel where it starts double-typing each letter.  Any idea what could be causing that?

 

I have seen that before, however, I am not able to reproduce the issue. Do you have the latest version of Alfred (b79)? If not, download it from here and see if that helps. http://media.alfredapp.com/v2beta/

Link to comment
  • 4 weeks later...
  • 2 weeks later...

Just a note to those who really enjoy this workflow, since QuickLook was added to Alfred 2, you can now "preview" the videos. Once you have actual videos listed as results, if you press Shift, it will open the url to the video page in QuickLook, allowing you to watch the video without ever opening a browser. Which makes it much more useful in my opinion.

Link to comment

Just a note to those who really enjoy this workflow, since QuickLook was added to Alfred 2, you can now "preview" the videos. Once you have actual videos listed as results, if you press Shift, it will open the url to the video page in QuickLook, allowing you to watch the video without ever opening a browser. Which makes it much more useful in my opinion.

 

Woaaah!! That's magic! Really cool. Thanks for the tip  :)

Link to comment

Woaaah!! That's magic! Really cool. Thanks for the tip  :)

 

It won't work for al data but if you have the arg to a result set as a URL you can quicklook that, or, if you set the result type=file, you can quicklook the file (assuming it supports quicklook).

 

Just as a side note, you can do that anywhere with URLs. So if you just pop up Alfred and type alfredapp.com and press Shift it will quicklook the URL as well. This has been around for a while (since 1.x) but I don't think a lot of people realized it

Link to comment
  • 3 weeks later...

good workflow, and I added to the list http://www.alfredworkflow.com/#YouTube

Thanks, that's cool. Didn't know about your site. That's a great initiative. Any chance you can add my other workflows?

https://github.com/simonbs/alfred-cloudapp-workflow

https://github.com/simonbs/alfred-safari-tabs-workflow

https://github.com/simonbs/alfred-movies-workflow

https://github.com/simonbs/alfred-tweetbot-workflow

Link to comment

 

sure, so nice.

Please can you submit those workflows here:

http://www.alfredworkflow.com/submit-alfred-workflow/

and they will be listed immediately.

Link to comment
  • 2 years later...
  • 5 months later...

Hi I don't know if the Author of the workflow still receives notifications of this thread let alone even reply, but just recently used this workflow, it was working fine for around 30 mins then suddenly I did a search and it comes up with "No results found" then under it "I'm really sorry that you had to experience this.".

 

If this has happened to anyone and managed to fix it, it would be great.

I have tried removing the workflow and re-installing it but that did not seem to work.

Link to comment

Hi I don't know if the Author of the workflow still receives notifications of this thread let alone even reply, but just recently used this workflow, it was working fine for around 30 mins then suddenly I did a search and it comes up with "No results found" then under it "I'm really sorry that you had to experience this.".

 

If this has happened to anyone and managed to fix it, it would be great.

I have tried removing the workflow and re-installing it but that did not seem to work.

 

Hi Shanxs,

 

Recently YouTube changed their API. Due to the changes, the workflow no longer works. I would love to update this workflow to accomodate the changes but right now, I don't have the time. The workflow is open sourced on Github and I will be happy to merge the changes, if someone takes the time to fix it. Actually, it shouldn't be too difficult to make the changes. I recently updated one of our commercial apps to the new YouTube API.

 

Best regards,

Simon Støvring

Link to comment

Hi I greatly appreciated your workflow in the past. I tried to fix it but the problem doesn't seem to come from the YouTube API, but maybe I'm wrong. Here's my results so far.

 

If I visit a YouTube page, pause the video, and type the following code in the console, it works (the video plays):

var player = document.getElementById('movie_player');
player.startVideo();

When I type 'ytp' in the alfred bar though, the video doesn't play, and the console outputs 'Uncaught error: getPlayerState() not a function.' I checked on the API, the functions getPlayerState() and pauseVideo() are still there and are the same. The problem I found is that somehow the line 'var player = document.getElementById('movie_player');' in the Alfred workflow doesn't change the player variable. I tested this by typing 'player' in the Chrome console. It outputs a different default player object, for which of course there's no getPlayerState, etc. functions.

 

My conclusion was that... I was confused. I thought maybe the default player object already present is 'protected' and can't be overridden when Alfred executes the javascript code?

 

If you can get this action (ytp) to work, I am willing to update the rest of the workflow. 

 

Thank you very much.

Edited by alfo3311
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...