xilopaint Posted September 12, 2017 Share Posted September 12, 2017 (edited) Thank you! Could you update the binary so that others can benefit from the changes more easily? Edited September 12, 2017 by xilopaint Link to comment
xilopaint Posted September 13, 2017 Share Posted September 13, 2017 (edited) 23 hours ago, deanishe said: I've pushed an updated version to the develop branch with GOOGLE_PLACES_LOCATION and GOOGLE_PLACES_RADIUS options in the workflow configuration sheet. You must set both for it to work, and the location must be in decimal format, e.g. 51.450833,7.013056, and the radius is in metres. Hey deanishe, I have built the workflow from the source folder, as the binary file was not updated by you in GitHub, and can't see these options in the configuration sheet. Edited September 13, 2017 by xilopaint Link to comment
deanishe Posted September 13, 2017 Author Share Posted September 13, 2017 I'll look into it. The updated URLs are present, however, so if you add the variables yourself, it should work. Link to comment
xilopaint Posted September 13, 2017 Share Posted September 13, 2017 48 minutes ago, deanishe said: I'll look into it. The updated URLs are present, however, so if you add the variables yourself, it should work. It didn't work. I'm getting the same results. Link to comment
xilopaint Posted September 14, 2017 Share Posted September 14, 2017 Never mind! I just realized the results were unchanged because they were cached. I cleared the cache and now I have nearby results! Thanks again, deanishe! Link to comment
deanishe Posted September 14, 2017 Author Share Posted September 14, 2017 Oh right, yeah. I forgot to mention that, which is pretty dumb of me, as I had to clear the cache many times while testing it… Glad it's working. Link to comment
xilopaint Posted September 14, 2017 Share Posted September 14, 2017 Portuguese and Brazilian Portuguese codes are wrong in youtube.json. The correct codes are pt-PT and pt-BR and not pt and br. Link to comment
deanishe Posted September 14, 2017 Author Share Posted September 14, 2017 (edited) They're country codes, not language codes. Edited September 14, 2017 by deanishe Link to comment
xilopaint Posted September 14, 2017 Share Posted September 14, 2017 3 minutes ago, deanishe said: They're country codes, not language codes. The hl parameter specifies the web interface language (host language). If you don't use pt-BR in your youtube.json you will not have Brazilian Portuguese results. Link to comment
deanishe Posted September 14, 2017 Author Share Posted September 14, 2017 Right. I thought you were talking about the UID. You're right. The language codes are wrong, and I'm certain there are more such errors. I will fix them eventually, but as noted, I haven't nailed down the format yet, so I'm not going to spend a few hours checking language vs country codes when it's likely that I might be redoing the whole lot anyway. Link to comment
deanishe Posted September 14, 2017 Author Share Posted September 14, 2017 (edited) In that vein: do you know a search phrase I can use to check whether I'm getting Brazilian results vs Portuguese ones? I can hardly tell Portuguese from Spanish, let alone the difference between dialects. Edited September 14, 2017 by deanishe Link to comment
xilopaint Posted September 14, 2017 Share Posted September 14, 2017 (edited) 7 hours ago, deanishe said: In that vein: do you know a search phrase I can use to check whether I'm getting Brazilian results vs Portuguese ones? I can hardly tell Portuguese from Spanish, let alone the difference between dialects. Can it be a word? If you try canalizador you will have mostly plumber related videos in pt-PT results and mostly random results in pt-BR. If you type the letter v, PT-pt results will display a hip hop Portuguese singer in the first result: But not in pt-BR in which a trending Brazilian song (a terrible one) is displayed in first place: Edited September 14, 2017 by xilopaint deanishe 1 Link to comment
deanishe Posted September 14, 2017 Author Share Posted September 14, 2017 (edited) Thanks very much! Velozes e furiosos 8. Lol. Does that title sound as stupid in Portuguese as it does in English? Edited September 14, 2017 by deanishe Link to comment
xilopaint Posted September 14, 2017 Share Posted September 14, 2017 (edited) Yes it does. Btw, it's a case in which the translation was made literally. In most cases the "translation" for the Brazilian market gives some really stupid titles to the movies. "The Hangover", for example, was translated as "If you drink, don't get marry". "Lost in Translation" was translated as something like "Matches and Mismatches" (the idiot was literally lost in translation). They have to "translate" even a title that is a character's name like "Annie Hall", "translated" in Brazil as "Neurotic fiance, nervous bride". A ~tech related~ case is "Fear Dot Com", translated to Brazil as "Fear Dot Com Br" (yes, as it were not enough ridiculous adding the "Br", the genius forgot to include one more "Dot" to make "Dot Com Dot Br"). So I think you don't have much to complain about the English movie titles. lol Edited September 14, 2017 by xilopaint deanishe 1 Link to comment
deanishe Posted September 15, 2017 Author Share Posted September 15, 2017 17 hours ago, xilopaint said: A ~tech related~ case is "Fear Dot Com", translated to Brazil as "Fear Dot Com Br" (yes, as it were not enough ridiculous adding the "Br", the genius forgot to include one more "Dot" to make "Dot Com Dot Br"). Haha! The Germans do that a lot, too. Almost none of them realise Mission: Impossible is based on a TV show, 'cos it was called "Take over, Cobra" here. And, there are about ten shows called "<name of main character> für alle Fälle". What a creative bunch they are. xilopaint 1 Link to comment
xilopaint Posted December 14, 2017 Share Posted December 14, 2017 Hey @deanishe, just here to say thank you for the great enhancements in the last Searchio! 2.0 pre-release! The info.plist rewriting mechanism works like magic! Link to comment
deanishe Posted December 14, 2017 Author Share Posted December 14, 2017 I'm having some issues with text encoding, though. How do non-ASCII results look for you (in different search engines)? Link to comment
xilopaint Posted December 15, 2017 Share Posted December 15, 2017 I'm having issues with Google engines and Amazon. Wikipédia and DuckDuckGo are ok. deanishe 1 Link to comment
deanishe Posted December 16, 2017 Author Share Posted December 16, 2017 (edited) 5 hours ago, xilopaint said: I'm having issues with Google engines and Amazon Thanks. I'd already fixed Google, but I wondered how many other engines might be affected. Turns out Amazon is also fixed. The code in the repo has eliminated this bug but I haven't built a new release yet. Also, I've fixed your Brazilian vs Portuguese thing with YouTube (as far as it can be fixed). Edited December 16, 2017 by deanishe xilopaint 1 Link to comment
mikedvzo Posted May 3, 2018 Share Posted May 3, 2018 Looks like Google Maps now requires a API. Is there a way to add an API to the workflow? 12:57:19 search.go:181: querying "Google Maps (English)" for "sprat " ... 12:57:19 search.go:133: response={ "error_message" : "This service requires an API key.", "predictions" : [], "status" : "REQUEST_DENIED" Link to comment
deanishe Posted May 3, 2018 Author Share Posted May 3, 2018 Download the v2 beta and set GOOGLE_PLACES_API_KEY in the workflow's settings sheet. Link to comment
Blake Posted August 4, 2018 Share Posted August 4, 2018 (edited) I just wanted to encourage you to officially support Amazon Smile searches, deanishe. I love using Searchio for Amazon searches, but 3 out of 4 times I forgot to switch to the Smile version of the product page before placing the order, so for most orders, the charity of my choice did not receive any money, which is not great. It took me a bit to figure out how to manually add Smile support by changing the right json file. I first tried editing "./Alfred.alfredpreferences/workflows/user.workflow.9B99D5C0-6A24-4093-99C6-88AE3F131D9C/lib/searchio/engines/amazon.json", but that did not have any effect. Here is what you need to do to make the Amazon searches for your country yield the smile versions of the product pages (in Searchio v2.0.0-rc1): - Create the Amazon search for your country from within Searchio - Go to ~/Library/Application Support/Alfred 3/Workflow Data/net.deanishe.alfred-searchio/searches/ and open the amazon json file with your country code in a text editor (e.g., BBEdit) - Now change the "www" in the "search_url" parameter to "smile" (so that the whole line looks something like: "search_url": "https://smile.amazon.com/gp/search?ie=UTF8&keywords={query}"), and then save the file I hope this helps others who come to this thread looking for a way to make Searchio do Smile searches. And again, if you could officially support Smile searches, deanishe, that would be awesome, because having to manually edit a json file might be a bit too much for novice users. Edited August 4, 2018 by Blake Link to comment
xilopaint Posted August 30, 2018 Share Posted August 30, 2018 On 12/15/2017 at 3:41 PM, xilopaint said: I'm having issues with Google engines and Amazon. Wikipedia and DuckDuckGo are ok. Any news here? Link to comment
deanishe Posted August 30, 2018 Author Share Posted August 30, 2018 17 hours ago, xilopaint said: Any news here? Umm, it looks like something I've fixed but haven't released: If you can build the workflow from the develop branch, it should work as expected. Beyond that, I'll try to release a new RC at the weekend. There are a few fixes/enhancements in develop and Niki has started posting duplicates of his own issues on the Searchio! repo. nikivi and xilopaint 1 1 Link to comment
xilopaint Posted August 31, 2018 Share Posted August 31, 2018 hahahaha thank you for bringing those issues to my attention. deanishe vs. nikvi discussions are on top of my geek humor ranking. dfay 1 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