From 0661d46b99abcc92daea8f74483743e5471f644b Mon Sep 17 00:00:00 2001 From: TheErrorExe Date: Wed, 26 Feb 2025 14:30:57 +0100 Subject: [PATCH] fix --- revivetube.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/revivetube.py b/revivetube.py index 24cc78b..f4b4144 100644 --- a/revivetube.py +++ b/revivetube.py @@ -239,18 +239,16 @@ def watch(): if channel_response.status_code == 200: channel_data = channel_response.json() - # Abonnentenanzahl extrahieren for stat in channel_data.get("statistics", []): for count in stat.get("counts", []): if count.get("value") == "subscribers": subscriber_count = count.get("count", "Unbekannt") break - # Profilbild (PFP) extrahieren for stat in channel_data.get("statistics", []): for user_info in stat.get("user", []): if user_info.get("value") == "pfp": - channel_logo_url = user_info.get("count", "") + channel_logo_url = user_info.get("count", "").replace("https://", "http://") break except Exception as e: print(f"SuperPlayCounts API Error: {str(e)}")