fix 500 error

pull/104/head
Aevann 2023-01-28 12:42:45 +02:00
parent 51f6c8bb0a
commit 1b786f7be7
1 changed files with 6 additions and 1 deletions

View File

@ -240,7 +240,12 @@ chud_images.extend([':#trumpjaktalking:', ':#reposthorse:'])
def handle_youtube_links(url):
html = None
params = parse_qs(urlparse(url).query, keep_blank_values=True)
id = params.get('v')[0]
id = params.get('v')
if not id: return None
id = id[0]
t = None
split = id.split('?t=')