restoring changes
This commit is contained in:
1 parent
06b5016b90
commit
d1cda2a104
3 files changed
+3
-14
No files matched your search
+2
-8
@@ -2,7 +2,6 @@
|
|||||||
import qbittorrentapi
|
import qbittorrentapi
|
||||||
import pushover
|
import pushover
|
||||||
from json import load
|
from json import load
|
||||||
from json import dump
|
|
||||||
from qlist import *
|
from qlist import *
|
||||||
from qlogging import *
|
from qlogging import *
|
||||||
from qprocess import *
|
from qprocess import *
|
||||||
@@ -63,21 +62,16 @@ class Qbt:
|
|||||||
self.tl.info('Connected.')
|
self.tl.info('Connected.')
|
||||||
except qbittorrentapi.APIError as e:
|
except qbittorrentapi.APIError as e:
|
||||||
self.tl.exception(e)
|
self.tl.exception(e)
|
||||||
self.poc.send_message(e, title="qbit-maid API ERROR")
|
self.po.send_message(e, title="qbit-maid API ERROR")
|
||||||
self.torrentlist = {}
|
# self.torrentlist = {}
|
||||||
# Pulling all torrent data
|
# Pulling all torrent data
|
||||||
self.torrentlist = self.qbt_client.torrents_info()
|
self.torrentlist = self.qbt_client.torrents_info()
|
||||||
self.d = dump
|
|
||||||
self.l = load
|
|
||||||
writetor(self)
|
|
||||||
#Main process block
|
#Main process block
|
||||||
#debugpremecal(self)
|
|
||||||
if self.use_log:
|
if self.use_log:
|
||||||
listqbitapiinfo(self)
|
listqbitapiinfo(self)
|
||||||
listfirsttor(self)
|
listfirsttor(self)
|
||||||
buildtorlist(self)
|
buildtorlist(self)
|
||||||
processcounts(self)
|
processcounts(self)
|
||||||
#tordeletetags(self)
|
|
||||||
if self.use_log:
|
if self.use_log:
|
||||||
torrentcount(self)
|
torrentcount(self)
|
||||||
torprocessor(self)
|
torprocessor(self)
|
||||||
|
|||||||
+1
-5
@@ -51,11 +51,7 @@ def writetor(self, filepath='./torrentinfo.json'):
|
|||||||
"""Write all torrent data to a file.
|
"""Write all torrent data to a file.
|
||||||
Useful for development of new features.
|
Useful for development of new features.
|
||||||
"""
|
"""
|
||||||
json_init = self.l(self.torrentlist)
|
pass
|
||||||
print(json_init)
|
|
||||||
# json_object = self.d(self.torrentlist, indent=4)
|
|
||||||
# with open(filepath, 'w') as fp:
|
|
||||||
# fp.write(json_object)
|
|
||||||
|
|
||||||
def listfirsttor(self, index=0):
|
def listfirsttor(self, index=0):
|
||||||
"""Only lists the first torrent"""
|
"""Only lists the first torrent"""
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
[AttrDict({'added_on': 1658247354, 'amount_left': 0, 'auto_tmm': True, 'availability': -1, 'category': 'radarr', 'completed': 13223581134, 'completion_on': 1658249178, 'content_path': '/downloads/general/radarr/F9-The Fast Saga (2021) 1080p hdr10 10bit hevc-d3g/F9-The Fast Saga (2021) 1080p BluRay HDR10 10Bit DDP5.1 H265-d3g.mkv', 'dl_limit': -1, 'dlspeed': 0, 'download_path': '/downloads/incomplete/', 'downloaded': 13228390284, 'downloaded_session': 0, 'eta': 8640000, 'f_l_piece_prio': False, 'force_start': False, 'hash': '3810b1d131e6a3a27a6f12417f7ea1614ccce83b', 'infohash_v1': '3810b1d131e6a3a27a6f12417f7ea1614ccce83b', 'infohash_v2': '', 'last_activity': 1658397120, 'magnet_uri': 'magnet:?xt=urn:btih:3810b1d131e6a3a27a6f12417f7ea1614ccce83b&dn=F9-The%20Fast%20Saga%20(2021)%201080p%20hdr10%2010bit%20hevc-d3g&tr=https%3a%2f%2flocalhost.stackoverflow.tech%2f317332f1c125bc9c1b9b14fb8e054908%2fannounce&tr=https%3a%2f%2frouting.bgp.technology%2f317332f1c125bc9c1b9b14fb8e054908%2fannounce&tr=https%3a%2f%2fssl.empirehost.me%2f317332f1c125bc9c1b9b14fb8e054908%2fannounce', 'max_ratio': -1, 'max_seeding_time': -1, 'name': 'F9-The Fast Saga (2021) 1080p hdr10 10bit hevc-d3g', 'num_complete': 58, 'num_incomplete': 0, 'num_leechs': 0, 'num_seeds': 0, 'priority': 0, 'progress': 1, 'ratio': 0.07492359355308541, 'ratio_limit': -2, 'save_path': '/downloads/general/radarr', 'seeding_time': 1764295, 'seeding_time_limit': -2, 'seen_complete': 1659953417, 'seq_dl': False, 'size': 13223581134, 'state': 'stalledUP', 'super_seeding': False, 'tags': 'ipt', 'time_active': 1766119, 'total_size': 13223581134, 'tracker': 'https://localhost.stackoverflow.tech/317332f1c125bc9c1b9b14fb8e054908/announce', 'trackers_count': 3, 'up_limit': -1, 'uploaded': 991118537, 'uploaded_session': 0, 'upspeed': 0}), AttrDict({'added_on': 1659826938, 'amount_left': 0, 'auto_tmm': True, 'availability': -1, 'category': 'radarr', 'completed': 11750532078, 'completion_on': 1659827104, 'content_path': '/downloads/general/radarr/Elvis.2022.1080p.WEB-DL.DD5.1.x264-EVO/Elvis.2022.1080p.WEB-DL.DD5.1.x264-EVO.mkv', 'dl_limit': -1, 'dlspeed': 0, 'download_path': '/downloads/incomplete/', 'downloaded': 11775897964, 'downloaded_session': 0, 'eta': 8640000, 'f_l_piece_prio': False, 'force_start': False, 'hash': '53178680bd1f9660ee2fb58349713627e3c9584d', 'infohash_v1': '53178680bd1f9660ee2fb58349713627e3c9584d', 'infohash_v2': '', 'last_activity': 1660018550, 'magnet_uri': 'magnet:?xt=urn:btih:53178680bd1f9660ee2fb58349713627e3c9584d&dn=Elvis.2022.1080p.WEB-DL.DD5.1.x264-EVO&tr=https%3a%2f%2frouting.bgp.technology%2f317332f1c125bc9c1b9b14fb8e054908%2fannounce&tr=https%3a%2f%2flocalhost.stackoverflow.tech%2f317332f1c125bc9c1b9b14fb8e054908%2fannounce&tr=https%3a%2f%2fssl.empirehost.me%2f317332f1c125bc9c1b9b14fb8e054908%2fannounce', 'max_ratio': -1, 'max_seeding_time': -1, 'name': 'Elvis.2022.1080p.WEB-DL.DD5.1.x264-EVO', 'num_complete': 4482, 'num_incomplete': 53, 'num_leechs': 7, 'num_seeds': 0, 'priority': 0, 'progress': 1, 'ratio': 1.0964317814634217, 'ratio_limit': -2, 'save_path': '/downloads/general/radarr', 'seeding_time': 190373, 'seeding_time_limit': -2, 'seen_complete': 1660018548, 'seq_dl': False, 'size': 11750532078, 'state': 'stalledUP', 'super_seeding': False, 'tags': '', 'time_active': 190538, 'total_size': 11750532078, 'tracker': 'https://routing.bgp.technology/317332f1c125bc9c1b9b14fb8e054908/announce', 'trackers_count': 3, 'up_limit': -1, 'uploaded': 12911468783, 'uploaded_session': 2413667539, 'upspeed': 0}), AttrDict({'added_on': 1657991986, 'amount_left': 0, 'auto_tmm': True, 'availability': -1, 'category': 'radarr', 'completed': 3579602014, 'completion_on': 1657992047, 'content_path': '/downloads/general/radarr/The.Boss.Baby.2017.1080p.WEB-DL.H264.AC3-EVO', 'dl_limit': -1, 'dlspeed': 0, 'download_path': '/downloads/incomplete/', 'downloaded': 3632921691, 'downloaded_session': 0, 'eta': 8640000, 'f_l_piece_prio': False, 'force_start': False, 'hash': '1e9690ea075c56aa533bffd27c9089ac1ecc6751', 'infohash_v1': '1e9690ea075c56aa533bffd27c9089ac1ecc6751', 'infohash_v2': '', 'last_activity': 1657992047, 'magnet_uri': 'magnet:?xt=urn:btih:1e9690ea075c56aa533bffd27c9089ac1ecc6751&dn=The.Boss.Baby.2017.1080p.WEB-DL.H264.AC3-EVO&tr=https%3a%2f%2fssl.empirehost.me%2f317332f1c125bc9c1b9b14fb8e054908%2fannounce&tr=https%3a%2f%2flocalhost.stackoverflow.tech%2f317332f1c125bc9c1b9b14fb8e054908%2fannounce&tr=https%3a%2f%2frouting.bgp.technology%2f317332f1c125bc9c1b9b14fb8e054908%2fannounce', 'max_ratio': -1, 'max_seeding_time': -1, 'name': 'The.Boss.Baby.2017.1080p.WEB-DL.H264.AC3-EVO', 'num_complete': 57, 'num_incomplete': 4, 'num_leechs': 0, 'num_seeds': 0, 'priority': 0, 'progress': 1, 'ratio': 0, 'ratio_limit': -2, 'save_path': '/downloads/general/radarr', 'seeding_time': 2021432, 'seeding_time_limit': -2, 'seen_complete': 1657992047, 'seq_dl': False, 'size': 3579602014, 'state': 'stalledUP', 'super_seeding': False, 'tags': 'ipt', 'time_active': 2021493, 'Line truncated
|
|
||||||
Reference in new issue
Block a user