diff --git a/.env.example b/.env.example index c5a4da2..9db676a 100644 --- a/.env.example +++ b/.env.example @@ -2,4 +2,4 @@ OQEE_USERNAME=your_username OQEE_PASSWORD=your_password API_KEY=your_api_key_here API_URL=https://example.com/get-cached-keys -OUTPUT_DIR=./download \ No newline at end of file +OUTPUT_DIR=./downloads \ No newline at end of file diff --git a/.gitignore b/.gitignore index b6218b5..7672e82 100644 --- a/.gitignore +++ b/.gitignore @@ -11,7 +11,6 @@ __pycache__/ build/ develop-eggs/ dist/ -downloads/ eggs/ .eggs/ lib/ @@ -222,4 +221,4 @@ video/ dev_test/ widevine/ info.md -/download +# /downloads diff --git a/README.fr.md b/README.fr.md index a7c59ea..208dca4 100644 --- a/README.fr.md +++ b/README.fr.md @@ -48,7 +48,7 @@ OQEE_PASSWORD=votre_mot_de_passe Optionnellement, vous pouvez définir les variables d'environnement suivantes dans le fichier `.env` : ```bash -OUTPUT_DIR=./telechargements +OUTPUT_DIR=./downloads API_KEY=votre_cle_api_ici API_URL=https://example.com/get-cached-keys ``` @@ -87,7 +87,7 @@ options: --password PASSWORD Mot de passe Oqee pour l'authentification --key KEY Clé DRM pour le déchiffrement (peut être spécifiée plusieurs fois) --output-dir OUTPUT_DIR - Répertoire de sortie pour les fichiers téléchargés (par défaut: ./download) + Répertoire de sortie pour les fichiers téléchargés (par défaut: ./downloads) --widevine-device WIDEVINE_DEVICE Chemin vers le CDM Widevine (par défaut: ./widevine/device.wvd) --log-level {DEBUG,INFO,WARNING,ERROR,CRITICAL} diff --git a/README.md b/README.md index b3dcc35..42cfcac 100644 --- a/README.md +++ b/README.md @@ -87,7 +87,7 @@ options: --password PASSWORD Oqee password for authentication --key KEY DRM key for decryption (can be specified multiple times) --output-dir OUTPUT_DIR - Output directory for downloaded files (default: ./download) + Output directory for downloaded files (default: ./downloads) --widevine-device WIDEVINE_DEVICE Path to Widevine device file (default: ./widevine/device.wvd) --log-level {DEBUG,INFO,WARNING,ERROR,CRITICAL} diff --git a/download/.gitkeep b/downloads/.gitkeep similarity index 100% rename from download/.gitkeep rename to downloads/.gitkeep diff --git a/main.py b/main.py index 382df73..5ed64c0 100644 --- a/main.py +++ b/main.py @@ -76,8 +76,8 @@ def parse_arguments(): parser.add_argument( "--output-dir", type=str, - default="./download", - help="Output directory for downloaded files (default: ./download)", + default="./downloads", + help="Output directory for downloaded files (default: ./downloads)", ) parser.add_argument( "--widevine-device", @@ -207,7 +207,7 @@ if __name__ == "__main__": keys = [] output_dir = os.getenv("OUTPUT_DIR") or ( - args.output_dir if cli_mode else "./download" + args.output_dir if cli_mode else "./downloads" ) start_tick_user = int(