###########################################
#     GIVE CREDIT WHERE CREDIT IS DUE     #
#                                         #
#          T4ILS AND JETJET               #
###########################################

import json, sys, os
import xbmc, xbmcgui
import urllib.parse

def play_simple_stream(title, url):
    """
    Play a simple stream URL with a given title using xbmc.Player.
    This avoids all resources.lib/plugin routing and advanced extractor logic.
    """
    liz = xbmcgui.ListItem(title, path=url)
    liz.setInfo('video', {'title': title})
    liz.setProperty('IsPlayable', 'true')
    xbmc.Player().play(url, liz)

# Only play_simple_stream is available for import. The rest of the file is intentionally left blank.
