Vinay W Posted May 2, 2020 Posted May 2, 2020 (edited) Just Watch - Alfred Workflow Alfred workflow to easily find where to stream your movies/tv-shows. Based on an unofficial JustWatch API. ⚛ Features Find where to stream your favourite movies and tv shows in an instant. No more logging into each of Netflix, Prime Video et al to check where a movie or tv-show is available. Search by region. Default region: AU (see instructions below to setup your region) Quick look - to enlarge movie posters or preview listing urls. ✅ Install Download and open the workflow file using Alfred. Get the latest release from here : https://github.com/vinaywadhwa/justwatch-alfred/releases P.S.: You need to buy the Powerpack to use this workflow. 🛠 Setup: Set your Country Code in the workflow variables. Default country code/locale : AU ..and that's it. Start discovering right away! 👬 Contribution Report issues Open pull request with improvements Spread the word Reach out with any feedback PS: Thanks to @deanishe for the workflow libs and thumbnail loading ideas. Edited May 2, 2020 by Vinay W credits Southgirl 1
lari Posted May 2, 2020 Posted May 2, 2020 The packal links to github and alfredforum point to the wrong workflow. Vinay W 1
lari Posted May 2, 2020 Posted May 2, 2020 Getting this error as there is some dependancy missing. [17:11:44.368] Logging Started... [17:11:46.700] Just Watch (Unofficial)[Script Filter] Queuing argument 'fr' [17:11:46.817] Just Watch (Unofficial)[Script Filter] Script with argv '(null)' finished [17:11:46.820] ERROR: Just Watch (Unofficial)[Script Filter] Code 1: Traceback (most recent call last): File "main.py", line 3, in <module> from lib.justwatch import JustWatch File "/Users/lari/Dropbox/AlfredApp/Alfred.alfredpreferences/workflows/user.workflow.75D5FD04-C1A0-4EE1-ACAC-EF1030704443/lib/justwatch/__init__.py", line 1, in <module> from .justwatchapi import JustWatch File "/Users/lari/Dropbox/AlfredApp/Alfred.alfredpreferences/workflows/user.workflow.75D5FD04-C1A0-4EE1-ACAC-EF1030704443/lib/justwatch/justwatchapi.py", line 3, in <module> import requests ImportError: No module named requests Vinay W 1
edbro Posted May 2, 2020 Posted May 2, 2020 (edited) When I try to search for a streaming option it will just resolve to a standard web search. It starts out like it's working in that after typing "justwatch" it shows the proper icon and hint "find streaming options". Edited May 2, 2020 by edbro Vinay W 1
Vinay W Posted May 2, 2020 Author Posted May 2, 2020 Hey guys - Thanks for trying the workflow. Sorry for the error. Could you give the latest version a try and see if it works now? I tried fixing the dependencies. Get the latest release from here (1.0.1, as of now) - https://github.com/vinaywadhwa/justwatch-alfred/releases
edbro Posted May 2, 2020 Posted May 2, 2020 Same behavior. It resolves to a regular web search. Vinay W 1
Vinay W Posted May 2, 2020 Author Posted May 2, 2020 9 minutes ago, edbro said: Same behavior. It resolves to a regular web search. Hey, i guess your problem is something else. Could you help me with the error logs? In case you don't know, this is how you can see the logs - https://www.alfredapp.com/help/workflows/utilities/debug/ Can copy paste here, if you can.
Bemawr Posted May 2, 2020 Posted May 2, 2020 I am having the same issue of the standard search popping up. Here are the logs. [14:43:17.661] Logging Started... [14:43:24.865] JustWatch - Alfred[Script Filter] Queuing argument 'Family Guy' [14:43:25.687] JustWatch - Alfred[Script Filter] Script with argv '(null)' finished [14:43:25.691] ERROR: JustWatch - Alfred[Script Filter] Code 1: 14:43:25 connectionpool.py:941 DEBUG Starting new HTTPS connection (1): apis.justwatch.com:443 Traceback (most recent call last): File "main.py", line 124, in <module> just_watch = JustWatch(country=constants.LOCALE) File "/Users/brianmartin/Dropbox/Alfred.alfredpreferences/workflows/user.workflow.1FBC544C-9CBE-4400-B483-A22BEB7B78BF/lib/justwatch/justwatchapi.py", line 18, in __init__ self.locale = self.set_locale() File "/Users/brianmartin/Dropbox/Alfred.alfredpreferences/workflows/user.workflow.1FBC544C-9CBE-4400-B483-A22BEB7B78BF/lib/justwatch/justwatchapi.py", line 35, in set_locale r = self.requests.get(api_url, headers=HEADER) File "/Users/brianmartin/Dropbox/Alfred.alfredpreferences/workflows/user.workflow.1FBC544C-9CBE-4400-B483-A22BEB7B78BF/lib/justwatch/requests/sessions.py", line 543, in get return self.request('GET', url, **kwargs) File "/Users/brianmartin/Dropbox/Alfred.alfredpreferences/workflows/user.workflow.1FBC544C-9CBE-4400-B483-A22BEB7B78BF/lib/justwatch/requests/sessions.py", line 530, in request resp = self.send(prep, **send_kwargs) File "/Users/brianmartin/Dropbox/Alfred.alfredpreferences/workflows/user.workflow.1FBC544C-9CBE-4400-B483-A22BEB7B78BF/lib/justwatch/requests/sessions.py", line 643, in send r = adapter.send(request, **kwargs) File "/Users/brianmartin/Dropbox/Alfred.alfredpreferences/workflows/user.workflow.1FBC544C-9CBE-4400-B483-A22BEB7B78BF/lib/justwatch/requests/adapters.py", line 449, in send timeout=timeout File "/Users/brianmartin/Dropbox/Alfred.alfredpreferences/workflows/user.workflow.1FBC544C-9CBE-4400-B483-A22BEB7B78BF/lib/justwatch/requests/urllib3/connectionpool.py", line 677, in urlopen chunked=chunked, File "/Users/brianmartin/Dropbox/Alfred.alfredpreferences/workflows/user.workflow.1FBC544C-9CBE-4400-B483-A22BEB7B78BF/lib/justwatch/requests/urllib3/connectionpool.py", line 381, in _make_request self._validate_conn(conn) File "/Users/brianmartin/Dropbox/Alfred.alfredpreferences/workflows/user.workflow.1FBC544C-9CBE-4400-B483-A22BEB7B78BF/lib/justwatch/requests/urllib3/connectionpool.py", line 976, in _validate_conn conn.connect() File "/Users/brianmartin/Dropbox/Alfred.alfredpreferences/workflows/user.workflow.1FBC544C-9CBE-4400-B483-A22BEB7B78BF/lib/justwatch/requests/urllib3/connection.py", line 385, in connect cert = self.sock.getpeercert() File "/Users/brianmartin/Dropbox/Alfred.alfredpreferences/workflows/user.workflow.1FBC544C-9CBE-4400-B483-A22BEB7B78BF/lib/justwatch/requests/urllib3/contrib/pyopenssl.py", line 381, in getpeercert "subjectAltName": get_subj_alt_name(x509), File "/Users/brianmartin/Dropbox/Alfred.alfredpreferences/workflows/user.workflow.1FBC544C-9CBE-4400-B483-A22BEB7B78BF/lib/justwatch/requests/urllib3/contrib/pyopenssl.py", line 252, in get_subj_alt_name for name in map(_dnsname_to_stdlib, ext.get_values_for_type(x509.DNSName)) File "/Users/brianmartin/Dropbox/Alfred.alfredpreferences/workflows/user.workflow.1FBC544C-9CBE-4400-B483-A22BEB7B78BF/lib/justwatch/requests/urllib3/contrib/pyopenssl.py", line 200, in _dnsname_to_stdlib name = idna_encode(name) File "/Users/brianmartin/Dropbox/Alfred.alfredpreferences/workflows/user.workflow.1FBC544C-9CBE-4400-B483-A22BEB7B78BF/lib/justwatch/requests/urllib3/contrib/pyopenssl.py", line 185, in idna_encode import idna ImportError: No module named idna Vinay W 1
Vinay W Posted May 2, 2020 Author Posted May 2, 2020 @shadyabhi Great. Glad you like it. @Bemawr I guess i missed some other dependency. Still trying to wrap my head around packaging alfred workflows. Noob Alert 🙂 Did you try deleting and reinstalling the new version? That might fix it, since its working for some people? Let me know how that goes. I'll try to figure it out. Maybe @deanishe can help speed things up. Lets see. Watch this space.
deanishe Posted May 2, 2020 Posted May 2, 2020 (edited) 2 hours ago, edbro said: it will just resolve to a standard web search. This is not a useful description of an issue: that's what Alfred does whenever a workflow fails. Please always post at least the output from Alfred's debugger. Edited May 2, 2020 by deanishe
Vinay W Posted May 2, 2020 Author Posted May 2, 2020 (edited) @lari @Bemawr @edbro A new release is out. Hopefully, this shall fix it all. Please get the latest release (1.0.2) from here https://github.com/vinaywadhwa/justwatch-alfred/releases and see if it works for you? Again, thanks a ton for letting me know about the problems. You just might have saved many other users a lot of time and frustration. Edited May 2, 2020 by Vinay W
deanishe Posted May 2, 2020 Posted May 2, 2020 @Vinay W I don't know if this is useful, but Alfred-Workflow has its own lightweight version of requests that you could probably use instead of bundling several megabytes of libraries. Vinay W 1
Vinay W Posted May 2, 2020 Author Posted May 2, 2020 4 minutes ago, deanishe said: @Vinay W I don't know if this is useful, but Alfred-Workflow has its own lightweight version of requests that you could probably use instead of bundling several megabytes of libraries. I learnt that while researching the forums while building this workflow. Pretty cool. Couldn't use it because i was not using the requests library myself. Its a dependency for a 3rd party library this workflow uses. Didn't want to go through the trouble of rewriting the library itself. Also, the total size of my workflow is 1MB which seemed reasonable. Would consider using this lightweight version in the next one. Thanks!
Vinay W Posted May 2, 2020 Author Posted May 2, 2020 8 minutes ago, edbro said: 1.0.2 works beautifully. Thank you for this. Awesome!
Bemawr Posted May 2, 2020 Posted May 2, 2020 1.0.2 works great! Nice work this looks great! Vinay W 1
Vinay W Posted May 2, 2020 Author Posted May 2, 2020 5 minutes ago, Bemawr said: 1.0.2 works great! Nice work this looks great! Looks like we solved it. Coool. Thanks!
Vinay W Posted May 4, 2020 Author Posted May 4, 2020 2 minutes ago, Southgirl said: Works like a charm, thanks! Glad you like it! Feel free to spread the word 🙂
Bemawr Posted May 6, 2020 Posted May 6, 2020 Four updates in 2 days you are an animal! I haven't kept up on this but I use to update my workflows with Packcal updater but I think that has sort of gone by the wayside. Is there a way to build automatic update into your workflow? I know OneUpdater is a thing but I've only ever used it for the Download Video workflow. Vinay W 1
Vinay W Posted May 6, 2020 Author Posted May 6, 2020 (edited) @Bemawr Got some suggestions from the community. Trying to make the most of quarantine time 🙂 Auto-Update is one of the things i added in the 4 updates 🙂 .. So you need to manually update one .. last .. time ! and then it'll auto update forever. Edited May 6, 2020 by Vinay W Bemawr 1
Bemawr Posted May 6, 2020 Posted May 6, 2020 Great job with all of this so far! Way beyond the NOOB status! Vinay W 1
edbro Posted May 10, 2020 Posted May 10, 2020 I sometimes get the following error: ( btw, I renamed the keyword) [09:46:59.488] JustWatch - Alfred[Script Filter] Queuing argument 'unbel' [09:46:59.955] JustWatch - Alfred[Script Filter] Queuing argument 'unbeli' [09:47:00.774] JustWatch - Alfred[Script Filter] Script with argv '(null)' finished [09:47:00.778] ERROR: JustWatch - Alfred[Script Filter] Code 1: 09:47:00 workflow.py:1695 DEBUG loading cached data: /Users/eds/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/com.vwap.justwatch/__workflow_latest_version.cpickle . 09:47:00 workflow.py:2061 DEBUG ---------- JustWatch - Alfred (1.0.4) ---------- 09:47:00 workflow.py:1468 DEBUG reading settings from /Users/eds/Library/Application Support/Alfred/Workflow Data/com.vwap.justwatch/settings.json 09:47:00 workflow.py:2343 DEBUG update check not due 09:47:00 connectionpool.py:941 DEBUG Starting new HTTPS connection (1): apis.justwatch.com:443 09:47:00 connectionpool.py:442 DEBUG https://apis.justwatch.com:443 "GET /content/locales/state HTTP/1.1" 200 None 09:47:00 connectionpool.py:442 DEBUG https://apis.justwatch.com:443 "GET /content/providers/locale/en_US HTTP/1.1" 200 None 09:47:00 connectionpool.py:442 DEBUG https://apis.justwatch.com:443 "POST /content/titles/en_US/popular HTTP/1.1" 200 None 09:47:00 workflow.py:2080 ERROR 'original_release_year' Traceback (most recent call last): File "/Users/eds/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.52877B56-0137-4595-B8B0-0478E05268F4/workflow/workflow.py", line 2073, in run func(self) File "main.py", line 127, in main media_items = MediaItems(just_watch, sys.argv[len(sys.argv) - 1], providers).get_alfred_json_list() File "/Users/eds/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.52877B56-0137-4595-B8B0-0478E05268F4/media_items.py", line 14, in __init__ media_item = MediaItem(media_item, providers) File "/Users/eds/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.52877B56-0137-4595-B8B0-0478E05268F4/media_item.py", line 22, in __init__ self.parse(media_item_data) File "/Users/eds/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.52877B56-0137-4595-B8B0-0478E05268F4/media_item.py", line 29, in parse self.original_release_year = media_item['original_release_year'] KeyError: 'original_release_year' 09:47:00 workflow.py:2103 DEBUG ---------- finished in 0.651s ---------- [09:47:00.783] JustWatch - Alfred[Script Filter] {"items": [{"valid": false, "subtitle": "'original_release_year'", "icon": {"path": "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertStopIcon.icns"}, "title": "Error in workflow 'JustWatch - Alfred'"}]} [09:47:01.079] JustWatch - Alfred[Script Filter] Queuing argument 'unbelieva' [09:47:01.676] JustWatch - Alfred[Script Filter] Queuing argument 'unbelievab' [09:47:02.468] JustWatch - Alfred[Script Filter] Script with argv '(null)' finished [09:47:02.484] ERROR: JustWatch - Alfred[Script Filter] Code 1: 09:47:01 workflow.py:1695 DEBUG loading cached data: /Users/eds/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/com.vwap.justwatch/__workflow_latest_version.cpickle . 09:47:01 workflow.py:2061 DEBUG ---------- JustWatch - Alfred (1.0.4) ---------- 09:47:01 workflow.py:1468 DEBUG reading settings from /Users/eds/Library/Application Support/Alfred/Workflow Data/com.vwap.justwatch/settings.json 09:47:01 workflow.py:2343 DEBUG update check not due 09:47:01 connectionpool.py:941 DEBUG Starting new HTTPS connection (1): apis.justwatch.com:443 09:47:02 connectionpool.py:442 DEBUG https://apis.justwatch.com:443 "GET /content/locales/state HTTP/1.1" 200 None 09:47:02 connectionpool.py:442 DEBUG https://apis.justwatch.com:443 "GET /content/providers/locale/en_US HTTP/1.1" 200 None 09:47:02 connectionpool.py:442 DEBUG https://apis.justwatch.com:443 "POST /content/titles/en_US/popular HTTP/1.1" 200 None 09:47:02 workflow.py:2080 ERROR 'original_release_year' Traceback (most recent call last): File "/Users/eds/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.52877B56-0137-4595-B8B0-0478E05268F4/workflow/workflow.py", line 2073, in run func(self) File "main.py", line 127, in main media_items = MediaItems(just_watch, sys.argv[len(sys.argv) - 1], providers).get_alfred_json_list() File "/Users/eds/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.52877B56-0137-4595-B8B0-0478E05268F4/media_items.py", line 14, in __init__ media_item = MediaItem(media_item, providers) File "/Users/eds/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.52877B56-0137-4595-B8B0-0478E05268F4/media_item.py", line 22, in __init__ self.parse(media_item_data) File "/Users/eds/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.52877B56-0137-4595-B8B0-0478E05268F4/media_item.py", line 29, in parse self.original_release_year = media_item['original_release_year'] KeyError: 'original_release_year' 09:47:02 workflow.py:2103 DEBUG ---------- finished in 0.628s ---------- [09:47:02.487] JustWatch - Alfred[Script Filter] {"items": [{"valid": false, "subtitle": "'original_release_year'", "icon": {"path": "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertStopIcon.icns"}, "title": "Error in workflow 'JustWatch - Alfred'"}]} [09:47:02.547] JustWatch - Alfred[Script Filter] Queuing argument 'unbelievable' [09:47:03.337] JustWatch - Alfred[Script Filter] Script with argv '(null)' finished [09:47:03.360] ERROR: JustWatch - Alfred[Script Filter] Code 1: 09:47:02 workflow.py:1695 DEBUG loading cached data: /Users/eds/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/com.vwap.justwatch/__workflow_latest_version.cpickle . 09:47:02 workflow.py:2061 DEBUG ---------- JustWatch - Alfred (1.0.4) ---------- 09:47:02 workflow.py:1468 DEBUG reading settings from /Users/eds/Library/Application Support/Alfred/Workflow Data/com.vwap.justwatch/settings.json 09:47:02 workflow.py:2343 DEBUG update check not due 09:47:02 connectionpool.py:941 DEBUG Starting new HTTPS connection (1): apis.justwatch.com:443 09:47:02 connectionpool.py:442 DEBUG https://apis.justwatch.com:443 "GET /content/locales/state HTTP/1.1" 200 None 09:47:03 connectionpool.py:442 DEBUG https://apis.justwatch.com:443 "GET /content/providers/locale/en_US HTTP/1.1" 200 None 09:47:03 connectionpool.py:442 DEBUG https://apis.justwatch.com:443 "POST /content/titles/en_US/popular HTTP/1.1" 200 None 09:47:03 workflow.py:2080 ERROR 'original_release_year' Traceback (most recent call last): File "/Users/eds/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.52877B56-0137-4595-B8B0-0478E05268F4/workflow/workflow.py", line 2073, in run func(self) File "main.py", line 127, in main media_items = MediaItems(just_watch, sys.argv[len(sys.argv) - 1], providers).get_alfred_json_list() File "/Users/eds/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.52877B56-0137-4595-B8B0-0478E05268F4/media_items.py", line 14, in __init__ media_item = MediaItem(media_item, providers) File "/Users/eds/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.52877B56-0137-4595-B8B0-0478E05268F4/media_item.py", line 22, in __init__ self.parse(media_item_data) File "/Users/eds/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.52877B56-0137-4595-B8B0-0478E05268F4/media_item.py", line 29, in parse self.original_release_year = media_item['original_release_year'] KeyError: 'original_release_year' 09:47:03 workflow.py:2103 DEBUG ---------- finished in 0.628s ---------- [09:47:03.363] JustWatch - Alfred[Script Filter] {"items": [{"valid": false, "subtitle": "'original_release_year'", "icon": {"path": "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertStopIcon.icns"}, "title": "Error in workflow 'JustWatch - Alfred'"}]}
Vinay W Posted May 10, 2020 Author Posted May 10, 2020 1 hour ago, edbro said: I sometimes get the following error: ( btw, I renamed the keyword) [09:46:59.488] JustWatch - Alfred[Script Filter] Queuing argument 'unbel' [09:46:59.955] JustWatch - Alfred[Script Filter] Queuing argument 'unbeli' [09:47:00.774] JustWatch - Alfred[Script Filter] Script with argv '(null)' finished [09:47:00.778] ERROR: JustWatch - Alfred[Script Filter] Code 1: 09:47:00 workflow.py:1695 DEBUG loading cached data: /Users/eds/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/com.vwap.justwatch/__workflow_latest_version.cpickle . 09:47:00 workflow.py:2061 DEBUG ---------- JustWatch - Alfred (1.0.4) ---------- 09:47:00 workflow.py:1468 DEBUG reading settings from /Users/eds/Library/Application Support/Alfred/Workflow Data/com.vwap.justwatch/settings.json 09:47:00 workflow.py:2343 DEBUG update check not due 09:47:00 connectionpool.py:941 DEBUG Starting new HTTPS connection (1): apis.justwatch.com:443 09:47:00 connectionpool.py:442 DEBUG https://apis.justwatch.com:443 "GET /content/locales/state HTTP/1.1" 200 None 09:47:00 connectionpool.py:442 DEBUG https://apis.justwatch.com:443 "GET /content/providers/locale/en_US HTTP/1.1" 200 None 09:47:00 connectionpool.py:442 DEBUG https://apis.justwatch.com:443 "POST /content/titles/en_US/popular HTTP/1.1" 200 None 09:47:00 workflow.py:2080 ERROR 'original_release_year' Traceback (most recent call last): File "/Users/eds/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.52877B56-0137-4595-B8B0-0478E05268F4/workflow/workflow.py", line 2073, in run func(self) File "main.py", line 127, in main media_items = MediaItems(just_watch, sys.argv[len(sys.argv) - 1], providers).get_alfred_json_list() File "/Users/eds/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.52877B56-0137-4595-B8B0-0478E05268F4/media_items.py", line 14, in __init__ media_item = MediaItem(media_item, providers) File "/Users/eds/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.52877B56-0137-4595-B8B0-0478E05268F4/media_item.py", line 22, in __init__ self.parse(media_item_data) File "/Users/eds/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.52877B56-0137-4595-B8B0-0478E05268F4/media_item.py", line 29, in parse self.original_release_year = media_item['original_release_year'] KeyError: 'original_release_year' 09:47:00 workflow.py:2103 DEBUG ---------- finished in 0.651s ---------- [09:47:00.783] JustWatch - Alfred[Script Filter] {"items": [{"valid": false, "subtitle": "'original_release_year'", "icon": {"path": "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertStopIcon.icns"}, "title": "Error in workflow 'JustWatch - Alfred'"}]} [09:47:01.079] JustWatch - Alfred[Script Filter] Queuing argument 'unbelieva' [09:47:01.676] JustWatch - Alfred[Script Filter] Queuing argument 'unbelievab' [09:47:02.468] JustWatch - Alfred[Script Filter] Script with argv '(null)' finished [09:47:02.484] ERROR: JustWatch - Alfred[Script Filter] Code 1: 09:47:01 workflow.py:1695 DEBUG loading cached data: /Users/eds/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/com.vwap.justwatch/__workflow_latest_version.cpickle . 09:47:01 workflow.py:2061 DEBUG ---------- JustWatch - Alfred (1.0.4) ---------- 09:47:01 workflow.py:1468 DEBUG reading settings from /Users/eds/Library/Application Support/Alfred/Workflow Data/com.vwap.justwatch/settings.json 09:47:01 workflow.py:2343 DEBUG update check not due 09:47:01 connectionpool.py:941 DEBUG Starting new HTTPS connection (1): apis.justwatch.com:443 09:47:02 connectionpool.py:442 DEBUG https://apis.justwatch.com:443 "GET /content/locales/state HTTP/1.1" 200 None 09:47:02 connectionpool.py:442 DEBUG https://apis.justwatch.com:443 "GET /content/providers/locale/en_US HTTP/1.1" 200 None 09:47:02 connectionpool.py:442 DEBUG https://apis.justwatch.com:443 "POST /content/titles/en_US/popular HTTP/1.1" 200 None 09:47:02 workflow.py:2080 ERROR 'original_release_year' Traceback (most recent call last): File "/Users/eds/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.52877B56-0137-4595-B8B0-0478E05268F4/workflow/workflow.py", line 2073, in run func(self) File "main.py", line 127, in main media_items = MediaItems(just_watch, sys.argv[len(sys.argv) - 1], providers).get_alfred_json_list() File "/Users/eds/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.52877B56-0137-4595-B8B0-0478E05268F4/media_items.py", line 14, in __init__ media_item = MediaItem(media_item, providers) File "/Users/eds/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.52877B56-0137-4595-B8B0-0478E05268F4/media_item.py", line 22, in __init__ self.parse(media_item_data) File "/Users/eds/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.52877B56-0137-4595-B8B0-0478E05268F4/media_item.py", line 29, in parse self.original_release_year = media_item['original_release_year'] KeyError: 'original_release_year' 09:47:02 workflow.py:2103 DEBUG ---------- finished in 0.628s ---------- [09:47:02.487] JustWatch - Alfred[Script Filter] {"items": [{"valid": false, "subtitle": "'original_release_year'", "icon": {"path": "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertStopIcon.icns"}, "title": "Error in workflow 'JustWatch - Alfred'"}]} [09:47:02.547] JustWatch - Alfred[Script Filter] Queuing argument 'unbelievable' [09:47:03.337] JustWatch - Alfred[Script Filter] Script with argv '(null)' finished [09:47:03.360] ERROR: JustWatch - Alfred[Script Filter] Code 1: 09:47:02 workflow.py:1695 DEBUG loading cached data: /Users/eds/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/com.vwap.justwatch/__workflow_latest_version.cpickle . 09:47:02 workflow.py:2061 DEBUG ---------- JustWatch - Alfred (1.0.4) ---------- 09:47:02 workflow.py:1468 DEBUG reading settings from /Users/eds/Library/Application Support/Alfred/Workflow Data/com.vwap.justwatch/settings.json 09:47:02 workflow.py:2343 DEBUG update check not due 09:47:02 connectionpool.py:941 DEBUG Starting new HTTPS connection (1): apis.justwatch.com:443 09:47:02 connectionpool.py:442 DEBUG https://apis.justwatch.com:443 "GET /content/locales/state HTTP/1.1" 200 None 09:47:03 connectionpool.py:442 DEBUG https://apis.justwatch.com:443 "GET /content/providers/locale/en_US HTTP/1.1" 200 None 09:47:03 connectionpool.py:442 DEBUG https://apis.justwatch.com:443 "POST /content/titles/en_US/popular HTTP/1.1" 200 None 09:47:03 workflow.py:2080 ERROR 'original_release_year' Traceback (most recent call last): File "/Users/eds/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.52877B56-0137-4595-B8B0-0478E05268F4/workflow/workflow.py", line 2073, in run func(self) File "main.py", line 127, in main media_items = MediaItems(just_watch, sys.argv[len(sys.argv) - 1], providers).get_alfred_json_list() File "/Users/eds/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.52877B56-0137-4595-B8B0-0478E05268F4/media_items.py", line 14, in __init__ media_item = MediaItem(media_item, providers) File "/Users/eds/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.52877B56-0137-4595-B8B0-0478E05268F4/media_item.py", line 22, in __init__ self.parse(media_item_data) File "/Users/eds/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.52877B56-0137-4595-B8B0-0478E05268F4/media_item.py", line 29, in parse self.original_release_year = media_item['original_release_year'] KeyError: 'original_release_year' 09:47:03 workflow.py:2103 DEBUG ---------- finished in 0.628s ---------- [09:47:03.363] JustWatch - Alfred[Script Filter] {"items": [{"valid": false, "subtitle": "'original_release_year'", "icon": {"path": "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertStopIcon.icns"}, "title": "Error in workflow 'JustWatch - Alfred'"}]} Seems like the API the workflow uses is glitching sometimes. Are you able to consistently reproduce it for a specific movie/tv-show name? It fails 💯 percent of the times for "unbelievable" for you?
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