simonbs Posted January 13, 2013 Share Posted January 13, 2013 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. cbudjan, Domenic, Weaselboy and 6 others 9 Link to comment
hollowm4n Posted January 13, 2013 Share Posted January 13, 2013 Hey, It's not working here. I am not getting any results: Cheers Link to comment
Jono Posted January 13, 2013 Share Posted January 13, 2013 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? Link to comment
simonbs Posted January 13, 2013 Author Share Posted January 13, 2013 Hey, It's not working here. I am not getting any results: 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 1 Link to comment
GamerChase Posted January 13, 2013 Share Posted January 13, 2013 Maybe it self-destructed because of Rebecca Black? Just kidding. Seriously though, props, if it works. Haven't tried it yet. Vero 1 Link to comment
Jono Posted January 13, 2013 Share Posted January 13, 2013 That's it! Perfect, thanks Link to comment
simonbs Posted January 13, 2013 Author Share Posted January 13, 2013 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 I'm glad to hear that it works! Link to comment
GamerChase Posted January 13, 2013 Share Posted January 13, 2013 It works. Nicely done. Link to comment
palobo Posted January 13, 2013 Share Posted January 13, 2013 Nice workflow mate. I'm looking for all python ones to dissect and improve mine Link to comment
simonbs Posted January 13, 2013 Author Share Posted January 13, 2013 Nice workflow mate. I'm looking for all python ones to dissect and improve mine I'm glad you liked it. Dissect it all you want Link to comment
simonbs Posted January 13, 2013 Author Share Posted January 13, 2013 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? MorseCode 1 Link to comment
viticci Posted January 13, 2013 Share Posted January 13, 2013 Very nice. I think the YouTube feeds would be a good idea. Link to comment
Jono Posted January 14, 2013 Share Posted January 14, 2013 Yea, it would be good to show them as kind of fallback searches before you typed in your own search. Link to comment
simonbs Posted January 14, 2013 Author Share Posted January 14, 2013 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. Link to comment
Jono Posted January 14, 2013 Share Posted January 14, 2013 Thanks, working great here Link to comment
MorseCode Posted January 14, 2013 Share Posted January 14, 2013 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. Link to comment
viticci Posted January 14, 2013 Share Posted January 14, 2013 Yup, working well here as well. Idea: channels? Link to comment
Weaselboy Posted January 14, 2013 Share Posted January 14, 2013 Working perfectly here. Thanks Simon Link to comment
simonbs Posted January 14, 2013 Author Share Posted January 14, 2013 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 1 Link to comment
Florian Posted January 14, 2013 Share Posted January 14, 2013 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. Link to comment
simonbs Posted January 14, 2013 Author Share Posted January 14, 2013 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. Link to comment
Florian Posted January 14, 2013 Share Posted January 14, 2013 So much responsiveness! Amazing, thanks! Link to comment
simonbs Posted January 15, 2013 Author Share Posted January 15, 2013 Is this on GitHub? It sure is! https://github.com/simonbs/alfred-youtube-workflow Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now