Corrected the URL checked
This commit is contained in:
parent
ff7e5ddee4
commit
906d31bdb3
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ class Picarto:
|
||||||
return
|
return
|
||||||
member_url = member_url['picarto_url']
|
member_url = member_url['picarto_url']
|
||||||
|
|
||||||
stream = re.search("(?<=picarto.tv/)(.*)", url).group(1)
|
stream = re.search("(?<=picarto.tv/)(.*)", member_url).group(1)
|
||||||
url = '{}/channel/{}?key={}'.format(base_url,stream,key)
|
url = '{}/channel/{}?key={}'.format(base_url,stream,key)
|
||||||
with aiohttp.ClientSession(headers={"User-Agent": "Bonfire/1.0.0"}) as s:
|
with aiohttp.ClientSession(headers={"User-Agent": "Bonfire/1.0.0"}) as s:
|
||||||
async with s.get(url) as r:
|
async with s.get(url) as r:
|
||||||
|
|
Loading…
Reference in a new issue