nomego / Lazyman.bundle

Lazyman Plex Channel
105 stars 24 forks source link

NHL JSON payload size larger than JSON.ObjectFromUrl max #58

Closed csmith1210 closed 5 years ago

csmith1210 commented 5 years ago

The plugin has been showing "Plugin Stopped Responding" for some users for the NHL games. A user on reddit tracked it down to the JSON schedule payload being larger than the default max for JSON.ObjectFromUrl. Fix is to set the max size directly in line 74 of init.py:

Line 74
- schedule = JSON.ObjectFromURL(scheduleUrl)
+ schedule = JSON.ObjectFromURL(scheduleUrl, max_size=9000000)

See here for more details. The user tried to submit a pull request but GitHub thought he was spam.

nomego commented 5 years ago

Fixed by #59