limedrive / qbautodelt Goto Github PK
View Code? Open in Web Editor NEWAutomatically remove torrents from qBittorrent to maintain disk space at a defined % or leave a free space amount defined by the user.
Automatically remove torrents from qBittorrent to maintain disk space at a defined % or leave a free space amount defined by the user.
INFO :: 2021-05-07 10:38:00,738 - qbAutoDelt - Disk Space at 120.2 GiB - Your allow to fill up 0.24 GiB before deleting script process,
INFO :: 2021-05-07 10:38:00,738 - qbAutoDelt - Script will recheck your disk space in - 15 - minute,
INFO :: 2021-05-07 10:53:00,908 - qbAutoDelt - Conection with qBittorrent tested OK : Qbittorrent v4.3.5, API 2.8.2,
INFO :: 2021-05-07 10:53:01,000 - qbAutoDelt - Disk Space at 117.0 GiB - Over than 3.03 GiB, deleting script start,
INFO :: 2021-05-07 10:53:04,053 - qbAutoDelt - Script delete: The Good the Bad and the Ugly (1966) Theatrical MULTi VFI 2160p 10bit 4KLight SDR BluRay AC3 5.1 x265-QTZ.mkv, 6.9 GiB free up.,
INFO :: 2021-05-07 11:08:14,246 - qbAutoDelt - Conection with qBittorrent tested OK : Qbittorrent v4.3.5, API 2.8.2,
INFO :: 2021-05-07 10:53:14,063 - qbAutoDelt - Script will recheck your disk space in - 15 - minute,
INFO :: 2021-05-07 11:08:14,331 - qbAutoDelt - Disk Space at 117.0 GiB - Over than 3.03 GiB, deleting script start,
INFO :: 2021-05-07 11:08:17,382 - qbAutoDelt - Script delete: Shadow in the Cloud (2020) MULTi VFI 2160p 10bit 4KLight DOLBY VISION HDR10+ BluRay AC3 5.1 x265-QTZ.mkv, 2.5 GiB free up.,
INFO :: 2021-05-07 11:08:27,395 - qbAutoDelt - Script delete: Wonder (2017) MULTi VFF 2160p 10bit 4KLight HDR BluRay AC3 5.1 x265-QTZ.mkv, 3.8 GiB free up.,
INFO :: 2021-05-07 11:08:37,406 - qbAutoDelt - Script will recheck your disk space in - 15 - minute
J'ai l'impression que a l'expiration de la session l'espace disque fournit par l'api ne se met plus a jour...
La session et de 60 min, et mon appel n'a pas l'air de clairement l'ouvrir
INFO :: 2021-04-23 03:14:03,221 - __main__ - Conection with qBittorrent tested OK : v4.1.7
INFO :: 2021-04-23 03:14:03,325 - __main__ - Conection with qBt Web Api tested OK : 2.2
INFO :: 2021-04-23 03:15:03,594 - __main__ - Disk Space at 27.9 GiB - Your allow to fill up 18 GiB before deleting script process
INFO :: 2021-04-23 03:15:03,595 - __main__ - Script will recheck your disk space in - 300 - seconds
Error :
Traceback (most recent call last):
File "/Users/**********/GitProject/qb-auto-delt/main.py", line 177, in <module>
if diskUsageControl():
File "/Users/**********/GitProject/qb-auto-delt/main.py", line 51, in diskUsageControl
free = round(i.server_state.free_space_on_disk / 2 ** 30)
File "/usr/local/lib/python3.9/site-packages/qbittorrentapi/_attrdict.py", line 153, in __getattr__
raise AttributeError(
AttributeError: 'SyncMainDataDictionary' instance has no attribute 'free_space_on_disk'
(work_env) ➜ qb-auto-delt git:(Lime02) ✗ /Users/**********/GitProject/qb-auto-delt/work_env/bin/python /Users/**********/GitProject/qb-auto-delt/main.py
/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py:1013: InsecureRequestWarning: Unverified HTTPS request is being made to host '.ovh'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
warnings.warn(
INFO :: 2021-04-23 03:25:16,117 - __main__ - Conection with qBittorrent tested OK : v4.1.7
INFO :: 2021-04-23 03:25:16,224 - __main__ - Conection with qBt Web Api tested OK : 2.2
/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py:1013: InsecureRequestWarning: Unverified HTTPS request is being made to host 'ovh'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
warnings.warn(
INFO :: 2021-04-23 03:26:16,717 - __main__ - Conection with qBittorrent tested OK : v4.1.7
INFO :: 2021-04-23 03:26:16,802 - __main__ - Conection with qBt Web Api tested OK : 2.2
INFO :: 2021-04-23 03:26:17,051 - __main__ - Disk Space at 27.9 GiB - Your allow to fill up 18 GiB before deleting script process
INFO :: 2021-04-23 03:26:17,052 - __main__ - Script will recheck your disk space in - 60 - seconds
/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py:1013: InsecureRequestWarning: Unverified HTTPS request is being made to host '.ovh'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
warnings.warn(
INFO :: 2021-04-23 03:28:17,530 - __main__ - Conection with qBittorrent tested OK : v4.1.7
INFO :: 2021-04-23 03:28:17,580 - __main__ - Conection with qBt Web Api tested OK : 2.2
Prob with the disk usage api, test on remote instance...
I try to fix it with timeout, but not sure thats gone work. Up to 10 min, i still get the same error.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.