Skip to content

Commit

Permalink
Insert back inputstream helper
Browse files Browse the repository at this point in the history
  • Loading branch information
bateast committed Sep 1, 2024
1 parent 103a84d commit 656df30
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion resources/lib/utils/gui.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Helpers for Kodi GUI."""

from xbmcgui import ListItem
import inputstreamhelper


def create_list_item(item_data: dict, is_folder: bool = False) -> ListItem:
Expand Down Expand Up @@ -40,8 +41,11 @@ def create_play_item(stream_info: dict, inputstream_addon: str) -> ListItem:
play_item.setContentLookup(False)
play_item.setMimeType(stream_info["mime_type"])

play_item.setProperty("inputstream", inputstream_addon)
is_helper = inputstreamhelper.Helper(stream_info['manifest_type'],
drm = stream_info["license_type"])
play_item.setProperty("inputstream", is_helper.inputstream_addon)
# play_item.setProperty("inputstream.adaptive.play_timeshift_buffer", "true")
play_item.setProperty("inputstream.adaptive.manifest_type", stream_info['manifest_type'])
# play_item.setProperty("inputstream.adaptive.manifest_config", '{"timeshift_bufferlimit":14400}')
play_item.setProperty("inputstream.adaptive.license_type", stream_info["license_type"])
play_item.setProperty("inputstream.adaptive.license_key", stream_info["license_key"])
Expand Down

0 comments on commit 656df30

Please sign in to comment.