master
Aevann1 2022-09-25 05:11:18 +02:00
parent 9eeb77073f
commit ae3b81bb82
1 changed files with 2 additions and 2 deletions

View File

@ -451,7 +451,7 @@ if SITE == 'pcmemes.net' or True:
db.close() db.close()
for x in streamers: for x in streamers:
url = f'https://www.youtube.com/channel/{x}/live' url = f'https://www.youtube.com/channel/{x}/live'
req = requests.get(url, cookies={'CONSENT': 'YES+1'}, proxies=proxies) req = requests.get(url, cookies={'CONSENT': 'YES+1'})
txt = req.text txt = req.text
if '"videoDetails":{"videoId"' in txt: if '"videoDetails":{"videoId"' in txt:
t = live_thumb_regex.search(txt) t = live_thumb_regex.search(txt)
@ -499,7 +499,7 @@ if SITE == 'pcmemes.net' or True:
send_repeatable_notification(KIPPY_ID, f"@{v.username} has added a [new YouTube channel](https://www.youtube.com/channel/{streamer.id})") send_repeatable_notification(KIPPY_ID, f"@{v.username} has added a [new YouTube channel](https://www.youtube.com/channel/{streamer.id})")
url = f'https://www.youtube.com/channel/{id}/live' url = f'https://www.youtube.com/channel/{id}/live'
req = requests.get(url, cookies={'CONSENT': 'YES+1'}, proxies=proxies) req = requests.get(url, cookies={'CONSENT': 'YES+1'})
txt = req.text txt = req.text
if '"videoDetails":{"videoId"' in txt: if '"videoDetails":{"videoId"' in txt:
t = live_thumb_regex.search(txt) t = live_thumb_regex.search(txt)