Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add HTTP(S) proxy support #42

Merged
merged 5 commits into from
Sep 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
202 changes: 162 additions & 40 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "mpv-handler"
version = "0.3.4"
edition = "2021"
authors = ["Akatsuki Rui <[email protected]>"]
description = "Play website videos and songs with mpv & youtube-dl"
description = "Play website videos and songs with mpv & yt-dlp"
license = "MIT"
readme = "README.md"
homepage = "https://github.com/akiirui/mpv-handler"
Expand All @@ -13,7 +13,7 @@ repository = "https://github.com/akiirui/mpv-handler"

[dependencies]
base64 = "0.21"
dirs = "4.0"
dirs = "5.0"
serde = { version = "1.0", features = ["derive"] }
thiserror = "1.0"
toml = "0.5"
toml = "0.7"
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,16 @@ mpv = "/usr/bin/mpv"
ytdl = "/usr/bin/yt-dlp"

# Optional, Type: String
# The path of youtube-dl binary
# The path of yt-dlp binary
# Default value:
# - Linux: yt-dlp
# - Windows: yt-dlp.exe

proxy = "http://example.com:8080"

# Optional, Type: String
# The proxy server address

# For Windows users:
# The path can be "C:\\folder\\some.exe" or "C:/folder/some.exe"
```
Expand Down
7 changes: 6 additions & 1 deletion README.zh-Hans.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,16 @@ mpv = "/usr/bin/mpv"
ytdl = "/usr/bin/yt-dlp"

# 可选,类型:字符串
# youtube-dl 可执行文件的路径
# yt-dlp 可执行文件的路径
# 默认值:
# - Linux: yt-dlp
# - Windows: yt-dlp.exe

proxy = "http://example.com:8080"

# 可选,类型:字符串
# 代理服务器的地址

# 对于 Windows 用户:
# 路径格式可以是 "C:\\folder\\some.exe",也可以是 "C:/folder/some.exe"
```
Expand Down
7 changes: 6 additions & 1 deletion README.zh-Hant.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,16 @@ mpv = "/usr/bin/mpv"
ytdl = "/usr/bin/yt-dlp"

# 可選,類型:字符串
# youtube-dl 可執行文件的路徑
# yt-dlp 可執行文件的路徑
# 默認值:
# - Linux: yt-dlp
# - Windows: yt-dlp.exe

proxy = "http://example.com:8080"

# 可選,類型:字符串
# 代理服務器的地址

# 對於 Windows 用戶:
# 路徑格式可以是 "C:\\folder\\some.exe",也可以是 "C:/folder/some.exe"
```
Expand Down
Loading