From 81317c4f30203019299ae661ef5061ce4ca43974 Mon Sep 17 00:00:00 2001 From: sudacode Date: Fri, 6 Sep 2024 12:32:09 -0700 Subject: [PATCH] fix urllib.parse not imported --- VERSION | 2 +- server.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 6e8bf73..17e51c3 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.1.0 +0.1.1 diff --git a/server.py b/server.py index 94512db..010299d 100755 --- a/server.py +++ b/server.py @@ -3,6 +3,7 @@ import logging import os import socket import time +from urllib import parse from flask import Flask, jsonify, request from sqlalchemy import Column, DateTime, Integer, String, create_engine, exc @@ -128,7 +129,7 @@ def add_video(): def handle_request(): video_url = request.args.get("url") if video_url: - video_url = urllib.parse.unquote(video_url) # Decode the URL + video_url = parse.unquote(video_url) # Decode the URL logging.info(f"Received URL: {video_url}") # Create the command to send to mpv