v0.6.11: Add curl_cffi auto-install and fix URL check
This commit is contained in:
@@ -81,7 +81,10 @@
|
|||||||
|
|
||||||
## 📝 변경 이력 (Changelog)
|
## 📝 변경 이력 (Changelog)
|
||||||
|
|
||||||
### v0.6.10 (2026-01-07)
|
### v0.6.11 (2026-01-07)
|
||||||
|
- **Docker 환경 최적화**:
|
||||||
|
- `curl_cffi` 라이브러리 부재 시 자동 설치(pip install) 루틴 추가
|
||||||
|
- URL 추출 실패 시 GDM 위임 중단 및 에러 처리 강화
|
||||||
- **Ohli24 GDM 연동 버그 수정**:
|
- **Ohli24 GDM 연동 버그 수정**:
|
||||||
- `LogicOhli24.add` 메서드의 인덴트 오류 및 문법 오류 해결
|
- `LogicOhli24.add` 메서드의 인덴트 오류 및 문법 오류 해결
|
||||||
- 다운로드 완료 시 Ohli24 DB 자동 업데이트 로직 안정화
|
- 다운로드 완료 시 Ohli24 DB 자동 업데이트 로직 안정화
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
title: "애니 다운로더"
|
title: "애니 다운로더"
|
||||||
version: "0.6.10"
|
version: "0.6.11"
|
||||||
package_name: "anime_downloader"
|
package_name: "anime_downloader"
|
||||||
developer: "projectdx"
|
developer: "projectdx"
|
||||||
description: "anime downloader"
|
description: "anime downloader"
|
||||||
|
|||||||
@@ -2259,6 +2259,9 @@ class LogicOhli24(AnimeModuleBase):
|
|||||||
logger.debug(f"Calling entity.prepare_extra() for {episode_info.get('_id')}")
|
logger.debug(f"Calling entity.prepare_extra() for {episode_info.get('_id')}")
|
||||||
entity.prepare_extra()
|
entity.prepare_extra()
|
||||||
logger.debug(f"entity.prepare_extra() done. URL found: {entity.url is not None}")
|
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:
|
except Exception as e:
|
||||||
logger.error(f"Failed to extract video info: {e}")
|
logger.error(f"Failed to extract video info: {e}")
|
||||||
# 추출 실패 시 기존 방식(전체 큐)으로 넘기거나 에러 반환
|
# 추출 실패 시 기존 방식(전체 큐)으로 넘기거나 에러 반환
|
||||||
|
|||||||
13
setup.py
13
setup.py
@@ -114,6 +114,19 @@ from plugin import *
|
|||||||
import os
|
import os
|
||||||
import traceback
|
import traceback
|
||||||
from flask import render_template
|
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):
|
class LogicLog(PluginModuleBase):
|
||||||
def __init__(self, P):
|
def __init__(self, P):
|
||||||
|
|||||||
Reference in New Issue
Block a user