v0.6.11: Add curl_cffi auto-install and fix URL check

This commit is contained in:
2026-01-07 15:27:04 +09:00
parent c532ffaef8
commit e026247cbf
4 changed files with 21 additions and 2 deletions

View File

@@ -81,7 +81,10 @@
## 📝 변경 이력 (Changelog)
### v0.6.10 (2026-01-07)
### v0.6.11 (2026-01-07)
- **Docker 환경 최적화**:
- `curl_cffi` 라이브러리 부재 시 자동 설치(pip install) 루틴 추가
- URL 추출 실패 시 GDM 위임 중단 및 에러 처리 강화
- **Ohli24 GDM 연동 버그 수정**:
- `LogicOhli24.add` 메서드의 인덴트 오류 및 문법 오류 해결
- 다운로드 완료 시 Ohli24 DB 자동 업데이트 로직 안정화

View File

@@ -1,5 +1,5 @@
title: "애니 다운로더"
version: "0.6.10"
version: "0.6.11"
package_name: "anime_downloader"
developer: "projectdx"
description: "anime downloader"

View File

@@ -2259,6 +2259,9 @@ class LogicOhli24(AnimeModuleBase):
logger.debug(f"Calling entity.prepare_extra() for {episode_info.get('_id')}")
entity.prepare_extra()
logger.debug(f"entity.prepare_extra() done. URL found: {entity.url is not None}")
if not entity.url:
logger.error(f"Failed to extract video URL for {episode_info.get('_id')}")
return "extract_failed"
except Exception as e:
logger.error(f"Failed to extract video info: {e}")
# 추출 실패 시 기존 방식(전체 큐)으로 넘기거나 에러 반환

View File

@@ -114,6 +114,19 @@ from plugin import *
import os
import traceback
from flask import render_template
import subprocess
import sys
# curl_cffi 자동 설치 루틴
try:
import curl_cffi
except ImportError:
try:
P.logger.info("curl_cffi not found. Attempting to install...")
subprocess.check_call([sys.executable, "-m", "pip", "install", "curl-cffi"])
P.logger.info("curl_cffi installed successfully.")
except Exception as e:
P.logger.error(f"Failed to install curl_cffi: {e}")
class LogicLog(PluginModuleBase):
def __init__(self, P):