fix urllib.parse not imported
All checks were successful
Build Docker Image / build (push) Successful in 56s

This commit is contained in:
sudacode 2024-09-06 12:32:09 -07:00
parent 4b4e11054e
commit 81317c4f30
2 changed files with 3 additions and 2 deletions

View File

@ -1 +1 @@
0.1.0 0.1.1

View File

@ -3,6 +3,7 @@ import logging
import os import os
import socket import socket
import time import time
from urllib import parse
from flask import Flask, jsonify, request from flask import Flask, jsonify, request
from sqlalchemy import Column, DateTime, Integer, String, create_engine, exc from sqlalchemy import Column, DateTime, Integer, String, create_engine, exc
@ -128,7 +129,7 @@ def add_video():
def handle_request(): def handle_request():
video_url = request.args.get("url") video_url = request.args.get("url")
if video_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}") logging.info(f"Received URL: {video_url}")
# Create the command to send to mpv # Create the command to send to mpv