Skip to content

Commit

Permalink
Fix Context argv override uri creation
Browse files Browse the repository at this point in the history
- Params passed as a parameter to constructor were not being included in generated uri
  • Loading branch information
MoojMidge committed Jan 30, 2024
1 parent 8c22e40 commit be0310e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -270,20 +270,20 @@ def __init__(self,
is_plugin_invocation = uri.startswith('plugin://')
if is_plugin_invocation:
# first the path of the uri
self._uri = uri
parsed_url = urlsplit(uri)
self._path = unquote(parsed_url.path)

# after that try to get the params
if num_args > 2:
params = sys.argv[2][1:]
if params:
self._uri = '?'.join((self._uri, params))
self.parse_params(dict(parse_qsl(params)))

# then Kodi resume status
if num_args > 3 and sys.argv[3].lower() == 'resume:true':
self._params['resume'] = True

self._uri = self.create_uri(self._path, self._params)
elif num_args:
uri = sys.argv[0]
is_plugin_invocation = uri.startswith('plugin://')
Expand Down

0 comments on commit be0310e

Please sign in to comment.