diff --git a/download_only.py b/download_only.py index 7b1567e..8a1353f 100644 --- a/download_only.py +++ b/download_only.py @@ -93,7 +93,7 @@ def try_lock_video(db, video_id): """ cursor.execute(query, (video_id,)) db.commit() - affected = cursor.rowcount + affected = cursor.affected_rows cursor.close() return affected == 1 @@ -104,7 +104,7 @@ def main(): # Connect to the MariaDB database using credentials from environment variables. try: db = mariadb.connect( - host=os.environ.get("DB_HOST", "mariadb"), + host=os.environ.get("DB_HOST", "192.168.0.187"), user=os.environ.get("DB_USER", "t0is"), password=os.environ.get("DB_PASS", "Silenceisgolden555"), database=os.environ.get("DB_NAME", "transcriptor"),