console.print(f"[bold green]Searching subtitles for: {video_name}[/bold green]") console.print(f"Language: {LANG_CODES.get(lang_code, lang_code)}")
from setuptools import setup, find_packages setup( name="predestination-sub-dl", version="1.0", packages=find_packages(), install_requires=["requests", "beautifulsoup4", "rich", "click"], entry_points={ "console_scripts": [ "predsub=downloader:main", ] }, ) predestination subtitle download
all_subs = [] # Try OpenSubtitles first (hash match) console.print("[dim]Searching OpenSubtitles...[/dim]") subs_os = search_opensubs(video_file, lang_code) all_subs.extend(subs_os) console
if auto: selected = 0 else: selected = present_subtitle_choices(all_subs) if selected is None: sys.exit(0) lang_code)}") from setuptools import setup
Install globally: