Update drive_downloader.py

This commit is contained in:
Yuvi9587
2025-08-03 09:11:27 -07:00
parent e9be13c4e3
commit 4ee750c5d4

View File

@@ -7,8 +7,6 @@ import base64
import time
from urllib.parse import urlparse, urlunparse, parse_qs, urlencode
# --- Third-Party Library Imports ---
# Make sure to install these: pip install requests pycryptodome gdown
import requests
try:
@@ -23,11 +21,8 @@ try:
except ImportError:
GDRIVE_AVAILABLE = False
# --- Constants ---
MEGA_API_URL = "https://g.api.mega.co.nz"
# --- Helper Functions (Original and New) ---
def _get_filename_from_headers(headers):
"""
Extracts a filename from the Content-Disposition header.