@@ -15,6 +15,7 @@ def parse_args():
1515 parser .add_argument ("--description" , action = argparse .BooleanOptionalAction , default = False )
1616 parser .add_argument ("--tags" , action = argparse .BooleanOptionalAction , default = False )
1717
18+ parser .add_argument ("--categories" , "--category" , type = int , nargs = '+' )
1819 parser .add_argument ("--books" , action = argparse .BooleanOptionalAction , default = False )
1920 parser .add_argument ("--audiobooks" , action = argparse .BooleanOptionalAction , default = False )
2021 parser .add_argument ("--comics" , action = argparse .BooleanOptionalAction , default = False )
@@ -97,7 +98,7 @@ def mam_search():
9798 query_data = {
9899 "tor" : {
99100 "text" : " " .join (args .search_text ),
100- "browse_lang" : [1 , 44 ],
101+ "browse_lang" : [1 , 2 , 44 , 47 ],
101102 "srchIn" : {
102103 "title" : args .title ,
103104 "author" : args .author ,
@@ -109,7 +110,7 @@ def mam_search():
109110 "searchType" : "all" , # fl-VIP, fl, VIP, all
110111 "searchIn" : args .search_in ,
111112 "browseFlagsHideVsShow" : 0 ,
112- "cat" : [],
113+ "cat" : args . categories or [],
113114 "sortType" : "dateDesc" ,
114115 "startNumber" : 0 ,
115116 "minSeeders" : 0 ,
0 commit comments