Skip to content

Instantly share code, notes, and snippets.

import logging
import os
import shutil
import sys
from pathlib import Path
from typing import Any, NewType, Union, Dict, List, Set
import bencodepy # type: ignore
### ---------- SETUP ---------- ###
import requests
import os
import json
# Configuration variables
QBITTORRENT_URL = "http://localhost:8080" # Change to your qBittorrent Web UI address
USERNAME = "" # Replace with your qBittorrent username if needed
PASSWORD = "" # Replace with your qBittorrent password if needed
EXPORT_PATH = "./exported_torrents" # Directory to store the exported torrents
[2023-02-19 11:18:42,297] [plex_meta_manager.py:185] [INFO] |====================================================================================================|
[2023-02-19 11:18:42,309] [plex_meta_manager.py:186] [INFO] | |
[2023-02-19 11:18:42,310] [plex_meta_manager.py:187] [INFO] | ____ _ __ __ _ __ __ |
[2023-02-19 11:18:42,313] [plex_meta_manager.py:188] [INFO] | | _ \| | _____ __ | \/ | ___| |_ __ _ | \/ | __ _ _ __ __ _ __ _ ___ _ __ |
[2023-02-19 11:18:42,315] [plex_meta_manager.py:189] [INFO] | | |_) | |/ _ \ \/ / | |\/| |/ _ \ __/ _` | | |\/| |/ _` | '_ \ / _` |/ _` |/ _ \ '__| |
[2023-02-19 11:18:42,316] [plex_meta_manager.py:190] [INFO] | | __/| | __/> < | | | | __/ || (_| | | | | | (_| | | | | (_| | (_| | __/ | |
[2023-02-19 11:1
[2022-12-10 13:46:05,854] [qbit_manage.py:497] [INFO] |====================================================================================================|
[2022-12-10 13:46:05,857] [qbit_manage.py:498] [INFO] | _ _ _ |
[2022-12-10 13:46:05,858] [qbit_manage.py:499] [INFO] | | | (_) | |
[2022-12-10 13:46:05,859] [qbit_manage.py:500] [INFO] | __ _| |__ _| |_ _ __ ___ __ _ _ __ __ _ __ _ ___ |
[2022-12-10 13:46:05,860] [qbit_manage.py:501] [INFO] | / _` | '_ \| | __| | '_ ` _ \ / _` | '_ \ / _` |/ _` |/ _ \ |
[2022-12-10 13:46:05,861] [qbit_manage.py:502] [INFO] | | (_| | |_) | | |_ | | | | | | (_| | | | | (_| | (_| | __/ |
[2022-12-10 13:4
This file has been truncated, but you can view the full file.
[2022-12-09 01:05:39,917] [plex_meta_manager.py:176] [INFO] |====================================================================================================|
[2022-12-09 01:05:39,949] [plex_meta_manager.py:177] [INFO] | |
[2022-12-09 01:05:39,951] [plex_meta_manager.py:178] [INFO] | ____ _ __ __ _ __ __ |
[2022-12-09 01:05:39,953] [plex_meta_manager.py:179] [INFO] | | _ \| | _____ __ | \/ | ___| |_ __ _ | \/ | __ _ _ __ __ _ __ _ ___ _ __ |
[2022-12-09 01:05:39,955] [plex_meta_manager.py:180] [INFO] | | |_) | |/ _ \ \/ / | |\/| |/ _ \ __/ _` | | |\/| |/ _` | '_ \ / _` |/ _` |/ _ \ '__| |
[2022-12-09 01:05:39,956] [plex_meta_manager.py:181] [INFO] | | __/| | __/> < | | | | __/ || (_| | | | | | (_| | | | | (_| | (_| | __/ | |
[2022-12-09 01:0
This file has been truncated, but you can view the full file.
[2022-12-08 10:10:07,950] [plex_meta_manager.py:176] [INFO] |====================================================================================================|
[2022-12-08 10:10:07,985] [plex_meta_manager.py:177] [INFO] | |
[2022-12-08 10:10:07,986] [plex_meta_manager.py:178] [INFO] | ____ _ __ __ _ __ __ |
[2022-12-08 10:10:07,987] [plex_meta_manager.py:179] [INFO] | | _ \| | _____ __ | \/ | ___| |_ __ _ | \/ | __ _ _ __ __ _ __ _ ___ _ __ |
[2022-12-08 10:10:07,989] [plex_meta_manager.py:180] [INFO] | | |_) | |/ _ \ \/ / | |\/| |/ _ \ __/ _` | | |\/| |/ _` | '_ \ / _` |/ _` |/ _ \ '__| |
[2022-12-08 10:10:07,990] [plex_meta_manager.py:181] [INFO] | | __/| | __/> < | | | | __/ || (_| | | | | | (_| | | | | (_| | (_| | __/ | |
[2022-12-08 10:1