Skip to content

Commit

Permalink
[artstation] add 'pro-first' option (#3273)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Nov 23, 2022
1 parent 5a17e15 commit b1ad6f2
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
11 changes: 11 additions & 0 deletions docs/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -885,6 +885,17 @@ Description
Try to follow external URLs of embedded players.


extractor.artstation.search.pro-first
-------------------------------------
Type
``bool``
Default
``true``
Description
Enable the "Show Studio and Pro member artwork first" checkbox
when retrieving search results.


extractor.aryion.recursive
--------------------------
Type
Expand Down
3 changes: 2 additions & 1 deletion docs/gallery-dl.conf
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@

"artstation":
{
"external": false
"external": false,
"pro-first": true
},
"aryion":
{
Expand Down
3 changes: 2 additions & 1 deletion gallery_dl/extractor/artstation.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,8 @@ def projects(self):
"page" : None,
"per_page" : 50,
"sorting" : self.sorting,
"pro_first" : "1",
"pro_first" : ("1" if self.config("pro-first", True) else
"0"),
"filters" : filters,
"additional_fields": (),
}
Expand Down

0 comments on commit b1ad6f2

Please sign in to comment.