mirror of
https://github.com/Yuvi9587/Kemono-Downloader.git
synced 2025-12-29 16:14:44 +00:00
Update drive_downloader.py
This commit is contained in:
@@ -7,8 +7,6 @@ import base64
|
|||||||
import time
|
import time
|
||||||
from urllib.parse import urlparse, urlunparse, parse_qs, urlencode
|
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
|
import requests
|
||||||
|
|
||||||
try:
|
try:
|
||||||
@@ -23,11 +21,8 @@ try:
|
|||||||
except ImportError:
|
except ImportError:
|
||||||
GDRIVE_AVAILABLE = False
|
GDRIVE_AVAILABLE = False
|
||||||
|
|
||||||
# --- Constants ---
|
|
||||||
MEGA_API_URL = "https://g.api.mega.co.nz"
|
MEGA_API_URL = "https://g.api.mega.co.nz"
|
||||||
|
|
||||||
# --- Helper Functions (Original and New) ---
|
|
||||||
|
|
||||||
def _get_filename_from_headers(headers):
|
def _get_filename_from_headers(headers):
|
||||||
"""
|
"""
|
||||||
Extracts a filename from the Content-Disposition header.
|
Extracts a filename from the Content-Disposition header.
|
||||||
|
|||||||
Reference in New Issue
Block a user