fix urllib.parse not imported
All checks were successful
Build Docker Image / build (push) Successful in 56s
All checks were successful
Build Docker Image / build (push) Successful in 56s
This commit is contained in:
parent
4b4e11054e
commit
81317c4f30
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user