Skip to content

Commit febde03

Browse files
committed
- fixed extractor
1 parent c48962f commit febde03

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

hqporner_api/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ def search_videos(self, query: str, pages: int = 5, videos_concurrency: int = No
344344
"""
345345
query = query.replace(" ", "+")
346346
url = f"{root_url}?q={query}"
347-
page_urls = build_page_urls(pagination=Pagination.QUERY, base=url, pages=pages, start_page=0)
347+
page_urls = build_page_urls(pagination=Pagination.QUERY, base=url, pages=pages, start_page=1)
348348
videos_concurrency = videos_concurrency or self.core.config.videos_concurrency
349349
pages_concurrency = pages_concurrency or self.core.config.pages_concurrency
350350
yield from self.iterator(page_urls=page_urls, videos_concurrency=videos_concurrency,

hqporner_api/modules/consts.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,5 @@
3333
}
3434

3535
def extractor_html(content: str):
36-
return (f"{root_url}hdporn/{m}" for m in PATTERN_VIDEOS_ON_SITE.findall(content))
36+
video_urls = [f"{root_url}hdporn/{m}" for m in PATTERN_VIDEOS_ON_SITE.findall(content)]
37+
return video_urls

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 = "hqporner_api"
7-
version = "1.8"
7+
version = "1.9"
88
description = "A Python API for the Porn Site HQPorner.com"
99
readme = "README.md"
1010
requires-python = ">=3.6"

0 commit comments

Comments
 (0)