Skip to content

Commit aafab0d

Browse files
committed
- 1.4.5
1 parent 8f3953b commit aafab0d

4 files changed

Lines changed: 12 additions & 6 deletions

File tree

README/Changelog.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,7 @@
1010
- fixed tests
1111

1212
# 1.3
13-
- bringing the project back
13+
- bringing the project back
14+
15+
# 1.4.5
16+
- Added searching support

missav_api/missav_api.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import hashlib
88
from typing import Optional
99
from base_api import BaseCore
10-
from bs4 import BeautifulSoup
1110
from urllib.parse import quote
1211
from functools import cached_property
1312
from base_api.base import setup_logger
@@ -169,10 +168,10 @@ def search(self, query: str, video_count: int = 50, max_workers: int = 20):
169168
body = {
170169
"searchQuery": query,
171170
"count": video_count,
172-
"cascadeCreate": True, # same default as the JS client
171+
"cascadeCreate": True,
173172
"returnProperties": return_properties,
174173
}
175-
# remove Nones so we don’t send empty keys
174+
176175
body = {k: v for k, v in body.items() if v is not None}
177176
data = _post(path=path, json_body=body, timeout=9, core=self.core)
178177
videos = data.get("recomms", [])

missav_api/tests/test_all.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,8 @@ def test_video_attributes():
1111
assert isinstance(video.video_code, str)
1212
assert isinstance(video.thumbnail, str)
1313

14-
# Downloading won't be tested anymore
14+
def test_search():
15+
search = client.search("stepdaughter", video_count=10)
16+
for video in search:
17+
assert isinstance(video.title, str)
18+

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "missAV_api"
7-
version = "1.4.4"
7+
version = "1.4.5"
88
description = "A Python API for the Porn Site missav.ws"
99
readme = "README.md"
1010
requires-python = ">=3.6"

0 commit comments

Comments
 (0)