Hello friends of the forum, I've been trying to mount this live TV signal through kodi but I still can not get it to capture the "pbs" and automatically change me when looking for the signal, I leave the regex code that still it does not work.
Thanks in advance

<item>
<title>[COLOR deepskyblue] Multimedios[/COLOR]</title>
<link>$doregex[GetPageUrl]</link>
<regex>
<name>GetPageUrl</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m,url='https://www.multimedios.cr/video/costa-rica/v42'):
headers = {'User-Agent': 'Mozilla/5.0','Referer': 'https://content.uplynk.com/player5/4aimxb7IgTdrsbz8JjDSHhsc.html'}
source = requests.get(url, headers=headers)
PlayURL = r'https?://.*?\.uplynk\.com/(?P<path>ext/[0-9a-f]{32}/(?P<external_id>[^/?&]+)|(?P<id>[0-9a-f]{32}))\.(?:m3u8|json)(?:.*?\bpbs=(?P<session_id>[^&]+))?']]></expres>
<page></page>
<cookieJar></cookieJar>
</regex>
<thumbnail></thumbnail>
<fanart></fanart>
</item>