mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-08 01:13:15 +00:00
[documentation] Crypto is an optional dependency
This commit is contained in:
parent
1bf540d28b
commit
06ff212d64
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
|
@ -84,7 +84,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
python-version: '3.8'
|
python-version: '3.8'
|
||||||
- name: Install Requirements
|
- name: Install Requirements
|
||||||
run: pip install pyinstaller mutagen
|
run: pip install pyinstaller mutagen Crypto
|
||||||
- name: Bump version
|
- name: Bump version
|
||||||
id: bump_version
|
id: bump_version
|
||||||
run: python devscripts/update-version.py
|
run: python devscripts/update-version.py
|
||||||
|
@ -122,7 +122,7 @@ jobs:
|
||||||
python-version: '3.4.4'
|
python-version: '3.4.4'
|
||||||
architecture: 'x86'
|
architecture: 'x86'
|
||||||
- name: Install Requirements for 32 Bit
|
- name: Install Requirements for 32 Bit
|
||||||
run: pip install pyinstaller==3.5 mutagen
|
run: pip install pyinstaller==3.5 mutagen Crypto
|
||||||
- name: Bump version
|
- name: Bump version
|
||||||
id: bump_version
|
id: bump_version
|
||||||
run: python devscripts/update-version.py
|
run: python devscripts/update-version.py
|
||||||
|
|
|
@ -102,9 +102,9 @@ ### UPDATE
|
||||||
### COMPILE
|
### COMPILE
|
||||||
|
|
||||||
**For Windows**:
|
**For Windows**:
|
||||||
To build the Windows executable, you must have pyinstaller (and optionally mutagen for embedding thumbnail in opus/ogg files)
|
To build the Windows executable, you must have pyinstaller (and optionally mutagen and Crypto)
|
||||||
|
|
||||||
python -m pip install --upgrade pyinstaller mutagen
|
python -m pip install --upgrade pyinstaller mutagen Crypto
|
||||||
|
|
||||||
Once you have all the necessary dependancies installed, just run `py devscripts\pyinst.py`. The executable will be built for the same architecture (32/64 bit) as the python used to build it. It is strongly reccomended to use python3 although python2.6+ is supported.
|
Once you have all the necessary dependancies installed, just run `py devscripts\pyinst.py`. The executable will be built for the same architecture (32/64 bit) as the python used to build it. It is strongly reccomended to use python3 although python2.6+ is supported.
|
||||||
|
|
||||||
|
|
|
@ -73,6 +73,7 @@
|
||||||
'--exclude-module=test',
|
'--exclude-module=test',
|
||||||
'--exclude-module=ytdlp_plugins',
|
'--exclude-module=ytdlp_plugins',
|
||||||
'--hidden-import=mutagen',
|
'--hidden-import=mutagen',
|
||||||
|
'--hidden-import=Crypto',
|
||||||
'youtube_dlc/__main__.py',
|
'youtube_dlc/__main__.py',
|
||||||
])
|
])
|
||||||
SetVersion('dist/youtube-dlc%s.exe' % _x86, VERSION_FILE)
|
SetVersion('dist/youtube-dlc%s.exe' % _x86, VERSION_FILE)
|
||||||
|
|
|
@ -1 +1,2 @@
|
||||||
mutagen
|
mutagen
|
||||||
|
Crypto
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -20,7 +20,7 @@
|
||||||
'**PS**: Many links in this document will not work since this is a copy of the README.md from Github',
|
'**PS**: Many links in this document will not work since this is a copy of the README.md from Github',
|
||||||
open("README.md", "r", encoding="utf-8").read()))
|
open("README.md", "r", encoding="utf-8").read()))
|
||||||
|
|
||||||
REQUIREMENTS = ['mutagen']
|
REQUIREMENTS = ['mutagen', 'Crypto']
|
||||||
|
|
||||||
|
|
||||||
if len(sys.argv) >= 2 and sys.argv[1] == 'py2exe':
|
if len(sys.argv) >= 2 and sys.argv[1] == 'py2exe':
|
||||||
|
|
|
@ -10,9 +10,9 @@
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import mutagen
|
import mutagen
|
||||||
_has_mutagen = True
|
has_mutagen = True
|
||||||
except ImportError:
|
except ImportError:
|
||||||
_has_mutagen = False
|
has_mutagen = False
|
||||||
|
|
||||||
from .ffmpeg import FFmpegPostProcessor
|
from .ffmpeg import FFmpegPostProcessor
|
||||||
|
|
||||||
|
@ -153,7 +153,7 @@ def is_webp(path):
|
||||||
success = False
|
success = False
|
||||||
|
|
||||||
elif info['ext'] in ['ogg', 'opus']:
|
elif info['ext'] in ['ogg', 'opus']:
|
||||||
if not _has_mutagen:
|
if not has_mutagen:
|
||||||
raise EmbedThumbnailPPError('module mutagen was not found. Please install using `python -m pip install mutagen`')
|
raise EmbedThumbnailPPError('module mutagen was not found. Please install using `python -m pip install mutagen`')
|
||||||
self.to_screen('Adding thumbnail to "%s"' % filename)
|
self.to_screen('Adding thumbnail to "%s"' % filename)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue