Fix bug for pyinstaller

This commit is contained in:
Lovi 2024-12-01 00:18:07 +01:00
parent bc94b86fc3
commit 6d06a3421f
3 changed files with 29 additions and 28 deletions

View File

@ -9,7 +9,7 @@ from fake_useragent import UserAgent
# Variable # Variable
ua = UserAgent() ua = UserAgent(use_external_data=True)
def extract_versions(user_agent): def extract_versions(user_agent):

View File

@ -441,7 +441,8 @@ class OsSummary():
console.print(f"[cyan]Path[white]: [red]ffmpeg [bold yellow]'{ffmpeg_path}'[/bold yellow][white], [red]ffprobe '[bold yellow]{ffprobe_path}'[/bold yellow]") console.print(f"[cyan]Path[white]: [red]ffmpeg [bold yellow]'{ffmpeg_path}'[/bold yellow][white], [red]ffprobe '[bold yellow]{ffprobe_path}'[/bold yellow]")
console.print(f"[cyan]Exe versions[white]: [bold red]ffmpeg {ffmpeg_version}, ffprobe {ffprobe_version}[/bold red]") console.print(f"[cyan]Exe versions[white]: [bold red]ffmpeg {ffmpeg_version}, ffprobe {ffprobe_version}[/bold red]")
# Check if requirements.txt exists, if not download it # Check if requirements.txt exists, if not on pyinstaller
if not getattr(sys, 'frozen', False):
requirements_file = 'requirements.txt' requirements_file = 'requirements.txt'
if not os.path.exists(requirements_file): if not os.path.exists(requirements_file):
await self.download_requirements( await self.download_requirements(

View File

@ -7,7 +7,7 @@ psutil
unidecode unidecode
jsbeautifier jsbeautifier
pathvalidate pathvalidate
fake-useragent fake-useragent=1.1.3
qbittorrent-api qbittorrent-api
python-qbittorrent python-qbittorrent
googlesearch-python googlesearch-python