File tree 2 files changed +9
-9
lines changed
2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -745,7 +745,7 @@ def getSearchTagPage(self,
745
745
member_id = None ,
746
746
sort_order = 'date_d' ,
747
747
start_page = 1 ,
748
- include_bookmark_data = False ,
748
+ use_bookmark_data = False ,
749
749
bookmark_count = 0 ,
750
750
type_mode = "a" ,
751
751
r18mode = False ) -> Tuple [PixivTags , str ]:
@@ -795,7 +795,7 @@ def getSearchTagPage(self,
795
795
result .parseTags (response_page , tags , current_page )
796
796
797
797
# parse additional information
798
- if include_bookmark_data :
798
+ if use_bookmark_data :
799
799
idx = 0
800
800
print ("Retrieving bookmark information..." , end = ' ' )
801
801
for image in result .itemList :
Original file line number Diff line number Diff line change @@ -775,7 +775,7 @@ def generate_search_tag_url(tags,
775
775
member_id = None ,
776
776
r18mode = False ,
777
777
blt = 0 ,
778
- type_data = "a" ):
778
+ type_mode = "a" ):
779
779
url = ""
780
780
date_param = ""
781
781
page_param = ""
@@ -807,13 +807,13 @@ def generate_search_tag_url(tags,
807
807
if blt is not None and blt > 0 :
808
808
bookmark_limit_premium = f'&blt={ blt } '
809
809
810
- if type_data == "i" :
811
- type_data = "illust_and_ugoira"
812
- elif type_data == "m" :
813
- type_data = "manga"
810
+ if type_mode == "i" :
811
+ type_mode = "illust_and_ugoira"
812
+ elif type_mode == "m" :
813
+ type_mode = "manga"
814
814
else :
815
- type_data = "all"
816
- type_mode = f"&type={ type_data } "
815
+ type_mode = "all"
816
+ type_mode = f"&type={ type_mode } "
817
817
818
818
# https://www.pixiv.net/ajax/search/artworks/k-on?word=k-on&order=date_d&mode=all&p=1&s_mode=s_tag_full&type=all&lang=en
819
819
url = f"{ root_url } /{ tags } ?word={ tags } { date_param } { page_param } { search_mode } { bookmark_limit_premium } { type_mode } "
You can’t perform that action at this time.
0 commit comments