Skip to content

Commit

Permalink
Fixed request data format to get a valid response from Netflix again
Browse files Browse the repository at this point in the history
  • Loading branch information
xLAva committed Mar 7, 2019
1 parent 277499e commit e64b7cd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions resources/lib/KodiHelper.py
Expand Up @@ -386,6 +386,7 @@ def build_main_menu_listing(self, video_list_ids, user_list_order, actions,
xbmcplugin.endOfDirectory(self.plugin_handle)

# (re)select the previously selected main menu entry
preselected_list_item = None
idx = 1
for item in preselect_items:
idx += 1
Expand Down
9 changes: 5 additions & 4 deletions resources/lib/NetflixSession.py
Expand Up @@ -1680,10 +1680,11 @@ def _path_request(self, paths):
'Accept': 'application/json, text/javascript, */*',
}

data = json.dumps({
'paths': paths,
'authURL': self.user_data['authURL']
})
data = ""
for path in paths:
data = data + 'path=' + json.dumps(path) + '&'

data = data + 'authURL=' + self.user_data['authURL']

params = {
'model': self.user_data['gpsModel']
Expand Down

0 comments on commit e64b7cd

Please sign in to comment.