This repository has been archived on 2023-11-11. You can view files and clone it, but cannot push or open issues or pull requests.
automated-youtube-dl/server/process/mysql.py

12 lines
333 B
Python

# from server.logging import new_db_connection
# connection = new_db_connection()
def insert_video(list_id, name, url):
cursor = connection.cursor()
cursor.execute('INSERT INTO video_lists_content (list_id, name, url) VALUES (%s,%s,%s)',
(list_id, name, url))
connection.commit()
cursor.close()