From 9eeb77073f9445ea5e663a1d945cac37fd704c28 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 25 Sep 2022 05:10:32 +0200 Subject: [PATCH 1/2] fix prev commit --- files/classes/streamers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/classes/streamers.py b/files/classes/streamers.py index 5754817855..a98ce13ad2 100644 --- a/files/classes/streamers.py +++ b/files/classes/streamers.py @@ -1,6 +1,6 @@ from files.helpers.const import SITE -if SITE == 'pcmemes.net': +if SITE == 'pcmemes.net' or True: from sqlalchemy import * from files.__main__ import Base From ae3b81bb82d8b5a8b0c59fc7243be3fb74789239 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 25 Sep 2022 05:11:18 +0200 Subject: [PATCH 2/2] fix --- files/routes/static.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/static.py b/files/routes/static.py index 9e695dcdb0..fc4da54c93 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -451,7 +451,7 @@ if SITE == 'pcmemes.net' or True: db.close() for x in streamers: 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 if '"videoDetails":{"videoId"' in 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})") 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 if '"videoDetails":{"videoId"' in txt: t = live_thumb_regex.search(txt)