Skip to content

Commit

Permalink
Merge pull request #2798 from InfinityPacer/feature/module
Browse files Browse the repository at this point in the history
  • Loading branch information
jxxghp authored Oct 1, 2024
2 parents 0da914b + 9dc603b commit f8149af
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/modules/qbittorrent/qbittorrent.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ class Qbittorrent:

def __init__(self, host: str = None, port: int = None,
username: str = None, password: str = None,
category: bool = False, sequentail: bool = False, force_resume: bool = False,
category: bool = False, sequentail: bool = False,
force_resume: bool = False, first_last_piece=False,
**kwargs):
"""
若不设置参数,则创建配置文件设置的下载器
Expand All @@ -40,6 +41,7 @@ def __init__(self, host: str = None, port: int = None,
self._category = category
self._sequentail = sequentail
self._force_resume = force_resume
self._first_last_piece = first_last_piece
if self._host and self._port:
self.qbc = self.__login_qbittorrent()

Expand Down Expand Up @@ -284,6 +286,7 @@ def add_torrent(self,
tags=tags,
use_auto_torrent_management=is_auto,
is_sequential_download=self._sequentail,
is_first_last_piece_priority=self._first_last_piece,
cookie=cookie,
category=category,
**kwargs)
Expand Down

0 comments on commit f8149af

Please sign in to comment.