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」以了解可能的選擇模式