Skip to content

Commit

Permalink
[IT - RAIPLAY] Fix RaiPlay live TV
Browse files Browse the repository at this point in the history
  • Loading branch information
jmzambon authored and joaopa00 committed Jun 16, 2024
1 parent dd56dd7 commit 024f915
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions resources/lib/channels/it/raiplay.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

import urlquick
from codequick import Listitem, Resolver, Route, Script
from resources.lib import download, web_utils
from resources.lib import download, resolver_proxy, web_utils
from resources.lib.menu_utils import item_post_treatment

# TO DO
Expand Down Expand Up @@ -326,8 +326,8 @@ def get_video_url(plugin, item_id, video_url, download_mode=False, **kwargs):
@Resolver.register
def get_live_url(plugin, item_id, **kwargs):
resp = urlquick.get(URL_LIVE % item_id, headers=GENERIC_HEADERS, max_age=-1).json()
# import web_pdb; web_pdb.set_trace()
url = resp['video']['content_url'] + "&output=64"
resp = urlquick.get(url, headers=GENERIC_HEADERS, max_age=-1).text
video_url = re.findall(r"<!\[CDATA\[(.*?)\]\]>", resp)[0]

return re.findall(r"<!\[CDATA\[(.*?)\]\]>", resp)[0]
return resolver_proxy.get_stream_with_quality(plugin, video_url=video_url)

0 comments on commit 024f915

Please sign in to comment.