vitor Posted September 11, 2014 Share Posted September 11, 2014 (edited) This workflow is officially deprecated in favour of MediaThorn. It was released to the public domain, so I leave the record here if anyone is interested. You can still find the old source on Github. Type rt and a query, to get results. If more than one movie matches, you’ll see a list. Press ↩ on a movie on the list, to get further details (these will appear by default, if your initial query has only one result). Edited October 2, 2017 by vitor Markdown > BBCode Link to comment
vdesabou Posted September 11, 2014 Share Posted September 11, 2014 Hi Vitor, Nice workflow, thanks! I’ve been using this for a while without issues. While you do not need to worry about an API key, that means results may be a tad slower (particularly since Alfred does that whole thing where it fires the script filter for every keystroke, and you’re sometimes forced to see results for stuff that were relevant only for the first keys you pressed, like an animal). One possible way is to use the logic implemented in this workflow (I'm not the author) http://www.alfredforum.com/topic/4636-libgen-search-and-download-pdfs-and-ebooks-from-the-library-genesis-project/#entry28261 It requires the user to type a period (.) after the query in order to initiate the search. Just a thought Link to comment
vitor Posted September 12, 2014 Author Share Posted September 12, 2014 It requires the user to type a period (.) after the query in order to initiate the search. Ingenious solution, I like the thinking. Not sure I’ll implement it, though, since it is a bit less intuitive (I’m betting even I would would sometimes forget to do it). This is really something that should’ve already been addressed. Workflow developers have been asking for (and suggesting) solutions to this for a long time, in a variety of different posts, and still we have nothing. Link to comment
rice.shawn Posted September 12, 2014 Share Posted September 12, 2014 Wow. The Rotten Tomatoes API does really appear to suck. Good workaround. Link to comment
frankspin Posted September 14, 2014 Share Posted September 14, 2014 Wow. The Rotten Tomatoes API does really appear to suck. Good workaround. Was I reading currently you have to apply for a key, then make an asset request? I know RT is owned by a larger company now, but that is just silly. Link to comment
m021478 Posted September 28, 2014 Share Posted September 28, 2014 I can't seem to get this script to work. Regardless of the name of the movie I search for, it always says it can't find any results. I went ahead and signed up as a developer and got a Rotten Tomatoes API key, but I don't know (if) or where I am suppose to plug it in??? Any suggestions would be greatly appreciated... Thanks! Link to comment
vitor Posted September 28, 2014 Author Share Posted September 28, 2014 (edited) You’re not supposed to plug the API key anywhere, m021478, that’s the whole point of this workflow, explained in the first post. If you have an API key, there are other workflows you can use it on — it’ll likely get you the results faster. If you still want to use this one, open the debugger, run it, and post the output. On another note, when registering for the API, which application name and url did you give? Edited September 28, 2014 by Vítor Link to comment
vitor Posted October 15, 2014 Author Share Posted October 15, 2014 Updated to new Rotten Tomatoes website structure. Link to comment
vitor Posted October 23, 2014 Author Share Posted October 23, 2014 Updated with fixes for new structural differences. Link to comment
xilopaint Posted December 28, 2014 Share Posted December 28, 2014 (edited) Workflow does not work for me. In a search for the query "monsters" I get this error: Quote Starting debug for 'RottenMovies' [ERROR: alfred.workflow.input.scriptfilter] Code 0: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/gems/2.0.0/gems/nokogiri-1.5.6/lib/nokogiri/xml/node_set.rb:216:in `attr': undefined method `attribute' for nil:NilClass (NoMethodError) from ./rottenmovies.rb:37:in `block in <main>' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/gems/2.0.0/gems/nokogiri-1.5.6/lib/nokogiri/xml/node_set.rb:239:in `block in each' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/gems/2.0.0/gems/nokogiri-1.5.6/lib/nokogiri/xml/node_set.rb:238:in `upto' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/gems/2.0.0/gems/nokogiri-1.5.6/lib/nokogiri/xml/node_set.rb:238:in `each' from ./rottenmovies.rb:28:in `<main>' [ERROR: alfred.workflow.input.scriptfilter] Code 0: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/gems/2.0.0/gems/nokogiri-1.5.6/lib/nokogiri/xml/node_set.rb:216:in `attr': undefined method `attribute' for nil:NilClass (NoMethodError) from ./rottenmovies.rb:37:in `block in <main>' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/gems/2.0.0/gems/nokogiri-1.5.6/lib/nokogiri/xml/node_set.rb:239:in `block in each' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/gems/2.0.0/gems/nokogiri-1.5.6/lib/nokogiri/xml/node_set.rb:238:in `upto' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/gems/2.0.0/gems/nokogiri-1.5.6/lib/nokogiri/xml/node_set.rb:238:in `each' from ./rottenmovies.rb:28:in `<main>' Edited January 2, 2020 by xilopaint Link to comment
vitor Posted December 28, 2014 Author Share Posted December 28, 2014 The issue is nokogiri. There has been trouble with it since Mavericks. Stack Overflow has a bunch of solutions, and you’ll likely need homebrew. Also check nokogiri’s website.This is something I’d like to be easier to solve from the workflow’s side. Link to comment
ianbeerent Posted August 31, 2016 Share Posted August 31, 2016 (edited) Hey, thanks for making this workflow! Seems really cool! (I say seems, because...) The workflow is not returning any errors (in debugger), however it is also not returning any results. Do you have any suggestions for troubleshooting? Appreciate your help in advance. Thank you! Edited August 31, 2016 by ianbeerent Link to comment
vitor Posted September 2, 2016 Author Share Posted September 2, 2016 I haven’t used this workflow in a while. Last time it was updated was with an external contribution/fix. As I say in the top post, I can’t even use the API and this needs to use scraping. Instead, I highly recommend Movie and TV Show Search, which works great. Fixes to this workflow will continue to be accepted on Github, for those that for some reason prefer it over alternatives. Link to comment
vitor Posted October 10, 2016 Author Share Posted October 10, 2016 I’m officially deprecating this workflow. You can still find the old source on Github. I continue to recommend Movie and TV Show Search. Link to comment
vitor Posted July 28, 2017 Author Share Posted July 28, 2017 Movie and TV Show Search, my old recommendation, has stopped working due to issues outside the developer’s control. As such, my new recommendation is MediaThorn. 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