mirror of
https://github.com/Arrowar/StreamingCommunity.git
synced 2025-06-06 19:45:24 +00:00
Fix bug for pyinstaller
This commit is contained in:
parent
bc94b86fc3
commit
6d06a3421f
@ -9,7 +9,7 @@ from fake_useragent import UserAgent
|
||||
|
||||
|
||||
# Variable
|
||||
ua = UserAgent()
|
||||
ua = UserAgent(use_external_data=True)
|
||||
|
||||
|
||||
def extract_versions(user_agent):
|
||||
|
@ -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]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'
|
||||
if not os.path.exists(requirements_file):
|
||||
await self.download_requirements(
|
||||
|
@ -7,7 +7,7 @@ psutil
|
||||
unidecode
|
||||
jsbeautifier
|
||||
pathvalidate
|
||||
fake-useragent
|
||||
fake-useragent=1.1.3
|
||||
qbittorrent-api
|
||||
python-qbittorrent
|
||||
googlesearch-python
|
Loading…
x
Reference in New Issue
Block a user