eusi 1 Posted January 9, 2014 Share Posted January 9, 2014 (edited) TwitchStreamer Summary Search Twitch.TV streams and watch in VLC or mpv (Livestreamer required) keywords: tw, twtop, twgames, optional: twbygame, twcover twtop: show top live streams on twitch.tv twgames: show top live games streamed on Twitch.tv tw: search specific live streams on twitch.tv (argument: game, channel or streamer) twbygame: search game, result leads to tw twcover: download and convert game icons/covers/posters (optional, you only have to use it once you want to download many new game covers => e.g. because you deleted your outdated cover-folder) browse philosophy: twtop or twgames for getting the most wanted streams on twitch.tv search philosophy: e.g. tw star finds streamer like "starman" and "starcraft"-games streams Details Check who is streaming on Twitch.Tv (category gaming) and watch your favorite stream via Livestreamer in VLC or mpv (no lags anymore, thanks to buffering). The main keyword is tw and the second word is the game or stream you want to watch (examples:tw voyboy or tw league of legends or also simply tw league). Alternative: Use keyword twtop to see the current TOP streams or twgames for the current TOP streamd games. Limit of streams is changable via specific workflow ($limit-variable). With "enter" you can open the stream via Livestreamer on VLC or mpv. The streamer list is sorted by number of viewers descending. The quality of the stream is "high". If you want to change it to best (e.g.), feel free to open the existing "Terminal Command" (alfred, workflow-window) and modify the Livestreamer line. Optional: If you deleted your game icons/covers/posters folder (because many of them are outdated) you should use twcover to download all the top game covers. Otherwise tw or twtop will do it, but it takes more time and downloads less covers. Screenshot: Browsing TOP STREAMS Screenshot: Browsing TOP GAME Screenshot: Searching STREAM Screenshot: Searching GAME Screenshot 5: Downloading GAME COVERS/POSTERS Screenshot 6: Watching STREAM Download Required: Livestreamer and VLC or mpv Made in/with OSX 10.9.1, livestreamer 1.7.2, VLC 2.1.2, PHP 5.3, AppleScript 2.3, Twitch-API/v3 Supports OneUpdater/AlleyOop/Monkey Patch (workflow updater) DOWNLOAD HERE Issues it takes a lil time between entries because of the twitch.tv-api P.S. I am new in Mac, Alfred and coding like this, so please have mercy on me ;-) On the other hand issues and feedback are welcome! Edited October 4, 2016 by eusi Link to post
eusi 1 Posted January 11, 2014 Author Share Posted January 11, 2014 1.3.0 Big Update (reworked the whole code) Added twtop tw searches more efficient and games as well as streams Link to post
denbrubeck 0 Posted January 11, 2014 Share Posted January 11, 2014 Works great, thank you so much! Link to post
eusi 1 Posted January 12, 2014 Author Share Posted January 12, 2014 (edited) 1.5.0 - 1.5.2 Big Update Added twgame (search games) Added twcover (download and convert game covers) fixed sort order bug, thanks to tyler and andrew already added some covers Edited January 12, 2014 by eusi Link to post
Malauch 0 Posted February 17, 2015 Share Posted February 17, 2015 It's great workflow! Now I can watch Twitch convenient without installed Flash plugin. Link to post
eusi 1 Posted March 8, 2015 Author Share Posted March 8, 2015 (edited) There is another version (1.6) of this workflow (it uses jpg instead of png) cuz some people don't get current version work since they updated OSX to Yosemite. If your version 1.52 still work, you need no update. Otherwise try 1.6: Download 1.6.0 switched cover-format from png to jpg (due to issue#1) cleaned up code Edited March 8, 2015 by eusi Link to post
Swaino 0 Posted April 5, 2015 Share Posted April 5, 2015 I signed up just to say this is awesome. Thanks! Link to post
eusi 1 Posted August 2, 2015 Author Share Posted August 2, 2015 1.7 Changed vjpg-branch to master Modified terminal command: Quits Terminal automatically Deleted twgame Added twgames (top streamed games by viewers) Added twbygame, similar to the old twgame Link to post
eusi 1 Posted September 30, 2016 Author Share Posted September 30, 2016 (edited) 1.72 Regarding twitch API changes, added client id to every request Regarding twitch API changes, changed string encoding of images Hence all game covers are renamed or replaced https://github.com/eusi/alfred2-twitch-streamer Edited October 2, 2016 by eusi Link to post
eusi 1 Posted October 1, 2016 Author Share Posted October 1, 2016 (edited) 1.73 * Livestreamer has not been updated so far regarding Twitch API changes. => Added a workaround to the workflow without requiring a livestreamer update to make it work. https://github.com/eusi/alfred2-twitch-streamer Edited October 2, 2016 by eusi Link to post
eusi 1 Posted October 2, 2016 Author Share Posted October 2, 2016 1.74 * Replaced file_get_contents() by an own created url_get_contents() that is using curl. It seems file_get_contents(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0 on the new macOS Sierra. https://github.com/eusi/alfred2-twitch-streamer Link to post
eusi 1 Posted October 3, 2016 Author Share Posted October 3, 2016 1.75 * Added OneUpdater (forum post) that allows you to update the workflow out of the box (it checks for updates automatically every 15 days and downloads/opens new versions). Changed the usage of Terminal to Run Script (no opened terminal any longer during watching stream). Thx@ vitorgalvao. https://github.com/eusi/alfred2-twitch-streamer Link to post
eusi 1 Posted October 4, 2016 Author Share Posted October 4, 2016 1.8 * Updated OneUpdater (thx@ vitorgalvao), replaced NSAppleScript by a normal RunScript(JS) that handles the latest installed Alfred (no matter if we switch to Alfred 4..5..6 in future), fixed connection issues by changing file_put_contents to curl and extending url_get_contents(). https://github.com/eusi/alfred2-twitch-streamer Link to post
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