Skip to content

Commit

Permalink
update #777: add s_tag and date_d param value
Browse files Browse the repository at this point in the history
  • Loading branch information
Nandaka committed Aug 27, 2020
1 parent 5a8e489 commit 814a455
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions PixivHelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -729,6 +729,7 @@ def generate_search_tag_url(tags, page, title_caption, wild_card, oldest_first,
print_and_log(None, "Using Title Match (s_tc)")
elif wild_card:
# partial match
search_mode = '&s_mode=s_tag'
print_and_log(None, "Using Partial Match (s_tag)")
else:
search_mode = '&s_mode=s_tag_full'
Expand All @@ -746,15 +747,16 @@ def generate_search_tag_url(tags, page, title_caption, wild_card, oldest_first,
type_data = "all"
type_mode = f"&type={type_data}"

# 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
url = f"{root_url}/{tags}?word={tags}{date_param}{page_param}{search_mode}{bookmark_limit_premium}{type_mode}"

if r18mode:
url = url + '&mode=r18'

if oldest_first:
url = url + '&order=date'
# else:
# url = url + '&order=date_d'
else:
url = url + '&order=date_d'

# encode to ascii
# url = url.encode('iso_8859_1')
Expand Down

0 comments on commit 814a455

Please sign in to comment.