Skip to content

Commit

Permalink
video param changes for product object query (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
The-Winnster authored Jan 30, 2025
1 parent 6da8ea9 commit 038c92c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/keepa/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,7 @@ def query(
days: Optional[int] = None,
only_live_offers: Optional[bool] = None,
raw: bool = False,
videos: bool = False,
) -> List[Dict[str, Any]]:
"""Perform a product query of a list, array, or single ASIN.
Expand Down Expand Up @@ -632,6 +633,15 @@ def query(
When ``True``, return the raw request response. This is
only available in the non-async class.
videos : bool, optional
Token Cost: No extra token cost
Boolean value (0 = false, 1 = true). If specified and set to 1, the
videos metadata will be provided when available. Using this
parameter does not trigger an update to the videos data; it only
gives access to our existing data if available. If you need
up-to-date data, you have to use the offers parameter.
Returns
-------
list
Expand Down Expand Up @@ -889,6 +899,7 @@ def query(
days=days,
only_live_offers=only_live_offers,
raw=raw,
videos=videos,
)
idx += nrequest
if raw:
Expand Down Expand Up @@ -973,6 +984,7 @@ def _product_query(self, items, product_code_is_asin=True, **kwargs):
kwargs["history"] = int(kwargs["history"])
kwargs["rating"] = int(kwargs["rating"])
kwargs["buybox"] = int(kwargs["buybox"])
kwargs["videos"] = int(kwargs["videos"])

if kwargs["update"] is None:
del kwargs["update"]
Expand Down

0 comments on commit 038c92c

Please sign in to comment.