Jump to content

JustWatch - Alfred Workflow


Recommended Posts

Posted (edited)

Just Watch - Alfred Workflow

Alfred workflow to easily find where to stream your movies/tv-shows. Based on an unofficial JustWatch API.

 

Just Watch - Alfred | Demo

 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

 

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 Twitter Contact

 

 

PS: Thanks to @deanishe for the workflow libs and thumbnail loading ideas. 

Edited by Vinay W
credits
Posted

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

 

Posted (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". 

 

Screen Shot 2020-05-02 at 11.30.21 AM.jpg

Edited by edbro
Posted

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

Posted

 

@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. 

Posted (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 by deanishe
Posted
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! 

Posted

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. 

Posted (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 by Vinay W
Posted

I sometimes get the following error: ( btw, I renamed the keyword)

1402714041_ScreenShot2020-05-10at9_45_10AM.jpg.fcae4f85db74cff48d3ce8fb88ebfac6.jpg

 

[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'"}]}

 

Posted
1 hour ago, edbro said:

I sometimes get the following error: ( btw, I renamed the keyword)

1402714041_ScreenShot2020-05-10at9_45_10AM.jpg.fcae4f85db74cff48d3ce8fb88ebfac6.jpg

 


[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? 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...