Python
N_m3u8DL-RE
ffmpeg
合并
mp4解密
沙卡包装机
Hola-代理(可选)
Windscribe-代理(可选)
有效的 Widevine CDM(不包括在内,所以不要询问)
提示
建议 Windows 用户在 Windows 终端中使用 Powershell 7 以获得最佳体验
/utils/wvd/
文件夹并将 .wvd 文件或 private_key 和 client_id blob 放入其中pip install -r requirements.txt
提示
克隆主分支以始终保持最新状态:
git clone https://github.com/stabbedbybrick/freevine.git freevine
ModuleNotFoundError:没有名为...的模块
您还没有安装必要的软件包。运行pip install -r requirements.txt
“未找到所需的密钥和客户端 ID”
内容是加密的,需要解密模块。这是由用户决定的,不是本项目提供的。
连接错误:400/403/404
您很可能受到该服务的地理封锁。使用 VPN 或尝试代理选项。
可以为需要它的服务设置带有凭据的用户配置文件:
freevine . py profile - - username "USERNAME" - - password "PASSWORD" - - service "SERVICE"
笔记
设置用户配置文件将在服务文件夹中创建一个 profile.yaml,该文件夹将存储凭据以及缓存的身份验证和刷新令牌
如果服务需要 cookie,您可以使用浏览器扩展将 cookie 下载为 .txt 文件格式:
火狐:https://addons.mozilla.org/addon/export-cookies-txt
Chrome:https://chrome.google.com/webstore/detail/gdocmgbfkjnnpapoeobnolbbkoibbcif
将其命名为cookies.txt
并将其放置在 service 文件夹中
使用--proxy
选项时,您可以提供一个代理或使用国家/地区代码(美国、英国、SE 等)请求代理。
为了请求代理,需要 Hola-proxy 和/或 Windscribe-proxy。从发布页面下载可执行文件并将其重命名为“hola-proxy”或“windscribe-proxy”。将其放置在与其他所需工具相同的位置。建议使用系统路径。确保在配置文件中指定要使用的代理。
freevine.py --proxy US
freevine.py --proxy "01.234.56.789:10"
笔记
代理仅影响 API 和许可证请求,不影响下载
可用命令:
Commands :
clear - cache Delete download cache
file Read commands from a text file
get Download series or movies
profile Create a profile with user credentials
search Search one or multiple services for titles
service - info Print information about each streaming service
get
命令的可用参数:
- - proxy TEXT Request or specify a proxy server
- - threads TEXT Concurrent download fragments
- - format TEXT Specify file format
- - muxer TEXT Select muxer
- - no - mux Choose to not mux files
- - save - name TEXT Name of saved file
- - save - dir TEXT Save directory
- - sub - only Download only subtitles
- - sub - no - mux Choose to not mux subtitles
- - sub - no - fix Leave subtitles untouched
- - use - shaka - packager Use shaka - packager to decrypt
- - add - command TEXT Add extra command to N_m3u8DL - RE
- - slowdown INTEGER Add sleep ( in seconds ) between downloads
- - no - cache Ignore download cache
- - append - id Append video id to filename
- fn , - - force - numbering Force add numbering to episodes
- e , - - episode TEXT Download episode ( s )
- s , - - season TEXT Download complete season
- c , - - complete Download complete series
- m , - - movie Download movie
- t , - - titles List all titles
- i , - - info Print title info
- sv , - - select - video TEXT Select video stream
- sa , - - select - audio TEXT Select audio stream
- dv , - - drop - video TEXT Drop video stream
- da , - - drop - audio TEXT Drop audio stream
- ss , - - select - subtitle TEXT Select subtitle
- ds , - - drop - subtitle TEXT Drop subtitle
示例:
freevine . py get - - help ( READ THIS !)
freevine . py get - - titles URL
freevine . py get - - movie URL
freevine . py get - - info - - episode S01E01 URL
freevine . py get - - sub - only - - episode S01E01 URL
freevine . py get - - episode S01E01 URL
freevine . py get - - episode "name of episode" URL
freevine . py get - - episode EPISODE_URL
freevine . py get - - episode S01E01 - S01E10 URL
freevine . py get - - episode S01E01 , S03E12 , S05E03 URL
freevine . py get - - season S01 , S03 , S05 URL
freevine . py get - - select - video res = 720 - - season S01 URL
freevine . py get - - select - audio name = English - - episode S01E01 URL
freevine . py service - info
freevine . py service - info "iplayer"
freevine . py profile - - help
freevine . py profile - - username "username" - - password "password" - - service "service"
freevine . py search - - help
freevine . py search iplayer "KEYWORDS"
freevine . py clear - cache
高级曲目选择:
# Select multiple tracks from id, codec, channel etc.
freevine . py get - - select - video id = "7|8" : for = best2
freevine . py get - - select - audio codecs = "ec-3|mp4a" : for = best2
freevine . py get - - select - audio lang = "ja|en" : for = best2
# Select best video with duration longer than 1 hour 20 minutes 30 seconds
freevine . py get - - select - video plistDurMin = "1h20m30s" : for = best
# Select all subs containing "English"
freevine . py get - - select - subtitle name = "English" : for = all
# Select best track based on role (only available in pre-release build of N_m3u8DL-RE)
freevine . py get - - select - audio role = "main" : for = best
freevine . py get - - select - audio role = "descriptive" : for = best
提示
请参阅“N_m3u8DL-RE --morehelp select-video/audio/subtitle”了解可能的选择模式