Files
youtube-dl/check_status.py

25 lines
788 B
Python

import sys
import os
# FF 경로 설정
sys.path.append('/Volumes/WD/Users/Work/python/flaskfarm')
from framework import F
from gds_dviewer.logic import LogicExplorer
def check():
try:
logic = LogicExplorer(None) # 인스턴스 생성 (싱글톤 패턴일 경우 기존 인스턴스 접근 필요할 수도)
# 실제로는 LogicExplorer.instance 같은 게 있는지 확인 필요
# 하지만 gds_dviewer는 보통 P.logic에 저장됨.
# P instance 가져오기
from gds_dviewer.plugin import P
indexer = P.logic.explorer.indexer
print(f"Is Running: {indexer.is_running}")
print(f"Progress: {indexer.progress}")
except Exception as e:
print(f"Error: {e}")
if __name__ == "__main__":
check()