Skip to content

Country initialization throws error. Used to work fine before #49

@Yatish84

Description

@Yatish84

Hi,

The below no longer works for me. It throws an error.

Can someone help me here?

just_watch = JustWatch(country='id')

  File "D:\Netflix\2020-10-20\Indonesia\JW_ID_1900_2012.py", line 6, in <module>
    just_watch = JustWatch(country='id')

  File "C:\Users\john\Anaconda3\lib\site-packages\justwatch\justwatchapi.py", line 18, in __init__
    self.locale = self.set_locale()

  File "C:\Users\john\Anaconda3\lib\site-packages\justwatch\justwatchapi.py", line 45, in set_locale
    if result['iso_3166_2'] == self.country or \

TypeError: string indices must be integers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions