v0.6.19: Lower min_acceptable_length to 10000 bytes - Some sites like anilife.live have smaller pages (~40k) - Prevents valid content from being rejected as 'short'
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
title: "애니 다운로더"
|
title: "애니 다운로더"
|
||||||
version: "0.6.18"
|
version: "0.6.19"
|
||||||
package_name: "anime_downloader"
|
package_name: "anime_downloader"
|
||||||
developer: "projectdx"
|
developer: "projectdx"
|
||||||
description: "anime downloader"
|
description: "anime downloader"
|
||||||
|
|||||||
@@ -339,8 +339,8 @@ async def fetch_with_browser(url: str, timeout: int = 30) -> Dict[str, Any]:
|
|||||||
poll_elapsed = time.time() - poll_start
|
poll_elapsed = time.time() - poll_start
|
||||||
total_elapsed = time.time() - start_time
|
total_elapsed = time.time() - start_time
|
||||||
|
|
||||||
# 최소 길이 임계값 조정 (50000 -> ohli24는 보통 100k 정도)
|
# 최소 길이 임계값 (사이트마다 페이지 크기가 다름)
|
||||||
min_acceptable_length = 50000
|
min_acceptable_length = 10000
|
||||||
|
|
||||||
if html_content and len(html_content) > min_acceptable_length:
|
if html_content and len(html_content) > min_acceptable_length:
|
||||||
result.update({
|
result.update({
|
||||||
|
|||||||
Reference in New Issue
Block a user