From f6987e08a38a120f4c9a81a1b303181b79aa0ede Mon Sep 17 00:00:00 2001 From: girst Date: Thu, 22 Oct 2020 20:01:53 +0200 Subject: [PATCH] fix / 500 errors m( --- app/youtube/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/youtube/__init__.py b/app/youtube/__init__.py index b325af7..902b8c9 100644 --- a/app/youtube/__init__.py +++ b/app/youtube/__init__.py @@ -156,7 +156,7 @@ def plain_user_or_video(something): # short-urls. so we check if it's a channel by querying the RSS feed (this # shoudn't be rate-limited); if that fails, check if it looks like a video # id; or finally give up. - if '.' not in feed_id and channel_exists(something): + if '.' not in something and channel_exists(something): # periods are not valid in usernames, vanity urls or ucids, but common # in urls that get crawled by bots (e.g. index.php). failing early # reduces the amount of invalid channel names getting looked up. -- 2.39.3