simonbs

YouTube workflow

50 posts in this topic

Hi,

Just wanted to share the workflow I just created with other Alfred 2.0 beta testers. I hope that this is the right place to do so.

The workflow allows the user to search YouTube and have the results returned to Alfred and then choose a video to watch. Just type youtube followed by the query. For example, the below will search for Rebecca Black videos.

 

youtube rebecca black

 

You can downloaded the latest version here and the source code is available at GitHub.
Sk%C3%A6rmbillede%202013-01-13%20kl.%201

Share this post


Link to post

This looks cool, but unfortunately doesn't work for me. If I type in a search (even the same search as your example) no results are shown.

 

Any ideas what I could try?

 

Share this post


Link to post
Hey,

 

It's not working here.

I am not getting any results:

 

Schermafbeelding%202013-01-13%20om%2021.

 

Cheers

 

 

This looks cool, but unfortunately doesn't work for me. If I type in a search (even the same search as your example) no results are shown.

 

Any ideas what I could try?

 

 

I think this is because you don't have the gdata module for Python installed. I have rewritten parts of the workflow to pull the JSON feed from Google directly and not use the gdata module. Instead, the urllib and json modules are used and I bet you have these installed  :)

 

Could you try to download the workflow again from this link and reinstall it? Maybe you have to delete the previous and install the new. I don't know if Alfred will overwrite previous installations of a workflow. Please let me hear if it works  :)

hollowm4n likes this

Share this post


Link to post
Maybe it self-destructed because of Rebecca Black? Just kidding. ;) Seriously though, props, if it works. Haven't tried it yet.

 

Haha, could be it  ;)

 

That's it! Perfect, thanks  :D

 

 

I'm glad to hear that it works!  :)

Share this post


Link to post

I have just added the standard YouTube video feeds but I have not uploaded the workflow yet as I can't really figure out if it's worth including or if it's just too much unnecessary fucntionality. Maybe you guys can help me figure out?  :)

 

I have added the following eight standard feeds. Googles "Most linked" standard feed seems to be broken at the moment. It doesn't return any items and therefore I haven't included it.

 

What do you say? Is there any interest for adding this?

Sk%C3%A6rmbillede%202013-01-13%20kl.%202

MorseCode likes this

Share this post


Link to post

I just added eight standard feeds. It can be downloaded here  :)

 

The commands for the standard feeds are quite long but they are just meant to show up when typing "youtube" and then let you choose from the list.

Share this post


Link to post
I just added eight standard feeds. It can be downloaded here :)

The commands for the standard feeds are quite long but they are just meant to show up when typing "youtube" and then let you choose from the list.

Sorry, meant to follow the topic and just ended up dong a repost. Will delete when I get to my Mac.

Share this post


Link to post
Yup, working well here as well. Idea: channels?

 

Good idea. Let's do that. Do you have an idea for the keyword? Maybe just "channel"?

 

 

Working perfectly here. Thanks Simon

 

Great! :-)

Weaselboy likes this

Share this post


Link to post

Hey guys,

great work ;)

 

When I look for youtube videos, one the things I look at the most is the number of views, would it be easy for you to add that to the subtitle? 

 

Cheers.

Share this post


Link to post
Hey guys,

great work ;)

 

When I look for youtube videos, one the things I look at the most is the number of views, would it be easy for you to add that to the subtitle? 

 

Cheers.

 

 

Yup, working well here as well. Idea: channels?

 

There you go, both of you :)

 

I have added the "channel" keyword for showing a users YouTube videos and a configuration in top of youtube.py to show the view count in the subtitle. I can't really figure out if the view count should be enabled by default. Personally, I like to keep it simple.

 

You can download the updated workflow here.

Share this post


Link to post

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