Skip to content

Commit 9626706

Browse files
authored
Merge pull request #161 from 31December99/0.12.x
0.12.0
2 parents ad54ed2 + 95aeca1 commit 9626706

12 files changed

Lines changed: 217 additions & 195 deletions

File tree

common/command.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ def __init__(self):
8888
search_group.add_argument("-d", "--description", type=str, help="By description")
8989
search_group.add_argument("-bd", "--bdinfo", type=str, help="Show BDInfo")
9090
search_group.add_argument("-m", "--mediainfo", type=str, help="Show MediaInfo")
91+
search_group.add_argument("-int", "--internal", action="store_true", help="Internal Release")
92+
search_group.add_argument("-mod", "--moderation", action="store_true", help="In moderation")
93+
9194

9295
# /////////////////////////
9396
# Filter Options
@@ -123,7 +126,7 @@ def __init__(self):
123126
special_group.add_argument("-str", "--stream", action="store_true", help="Stream")
124127
special_group.add_argument("-sd", "--standard", action="store_true", help="SD")
125128
special_group.add_argument("-hs", "--highspeed", action="store_true", help="Highspeed")
126-
special_group.add_argument("-int", "--internal", action="store_true", help="Internal")
129+
special_group.add_argument("-inter", "--intern_r", action="store_true", help="Internal Release")
127130
special_group.add_argument("-pr", "--prelease", action="store_true", help="Personal")
128131

129132
# /////////////////////////
@@ -159,4 +162,4 @@ def __init__(self):
159162
if self.args.force.lower() not in valid_categories:
160163
self.args.force = None
161164
print("Invalid -force category")
162-
exit()
165+
exit()

common/settings.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
user_sign_file = "sign_list.json"
2525
bane_file = "ban_list.json"
2626

27-
version = "0.11.11"
27+
version = "0.12.0"
2828

2929
if os.name == "nt":
3030
WATCHER_DESTINATION_PATH: Path = Path(
@@ -112,6 +112,8 @@ class TorrentClientConfig(BaseModel):
112112
SHARED_RTORR_PATH: str | None = None
113113
TORRENT_CLIENT: str | None = None
114114
TAG: str | None = None
115+
CATEGORY_MOVIE: str | None = None
116+
CATEGORY_TV: str | None = None
115117

116118

117119
class UserPreferences(BaseModel):
@@ -452,7 +454,7 @@ def set_default_torrent_client_config(cls, v):
452454
section[field] = Validate.integer(value=section[field], field_name=field)
453455

454456
if field in ['QBIT_PASS', 'TRASM_PASS', 'RTORR_PASS', 'QBIT_USER', 'TRASM_USER', 'RTORR_USER',
455-
'TORRENT_CLIENT', 'TAG', 'RTORR_HOST']:
457+
'TORRENT_CLIENT', 'TAG', 'CATEGORY_MOVIE','CATEGORY_TV', 'RTORR_HOST']:
456458
section[field] = Validate.string(value=section[field], field_name=field)
457459

458460
if field in ['SHARED_TRASM_PATH', 'SHARED_QBIT_PATH', 'SHARED_RTORR_PATH']:
@@ -622,7 +624,9 @@ def create_default_json_file(path: Path):
622624
"RTORR_PORT": "9091",
623625
"SHARED_RTORR_PATH": "no_path",
624626
"TORRENT_CLIENT": "qbittorrent",
625-
"TAG": "ADDED TORRENTS"
627+
"TAG": "ADDED TORRENTS",
628+
"CATEGORY_MOVIE": "movie",
629+
"CATEGORY_TV": "tv"
626630
},
627631
"user_preferences": {
628632
"PTSCREENS_PRIORITY": 0,

0 commit comments

Comments
 (0)