Skip to content

Commit

Permalink
Set a user-agent (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelarnauts authored Jun 25, 2021
1 parent 82fea94 commit ac082ea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions resources/lib/kodiutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ def play(stream, license_key=None, title=None, art_dict=None, info_dict=None, pr
else:
play_item.setProperty('inputstreamaddon', 'inputstream.adaptive')
play_item.setProperty('inputstream.adaptive.manifest_type', 'mpd')
play_item.setProperty('inputstream.adaptive.stream_headers', 'user-agent=Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.101 Safari/537.36')
play_item.setMimeType('application/dash+xml')
play_item.setContentLookup(False)

Expand Down

0 comments on commit ac082ea

Please sign in to comment.