Skip to content

Commit e8e0a76

Browse files
committed
MediaWarp v0.1.1
1 parent 40f1b4f commit e8e0a76

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

docs/UpdateLog.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,10 @@
7171
- 2025.3.29: v0.1.0
7272
- 添加 Jellyfin 支持
7373
- 添加 crx 美化功能(支持 Emby 和 Jellyfin)
74-
- 调整某些常量命名,更符合 go-lang 命名
74+
- 调整某些常量命名,更符合 go-lang 命名
75+
- 2025.6.2: v0.1.1
76+
- 更新上游依赖
77+
- 提高对 EmbyServer beta 版本的兼容性
78+
- HTTPStrm 添加获取最终 URL 获取功能,减少客户端重定向次数
79+
- 提高对 Afusekt 客户端的兼容性 [#37](https://github.com/Akimio521/MediaWarp/issues/37)
80+
- 优化 responseModifyCreater 函数,可以捕捉内层函数的 panic 信息

internal/config/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
)
77

88
var (
9-
appVersion string = "v0.1.0"
9+
appVersion string = "v0.1.1"
1010
commitHash string = "Unkown"
1111
buildDate string = "Unkown"
1212
)

internal/handler/utils.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,9 +220,13 @@ func getFinalURL(rawURL string, ua string) (string, error) {
220220
if err != nil {
221221
return "", ErrInvalidLocationHeader
222222
}
223-
224-
// 处理相对路径重定向
225223
currentURL = location.String()
224+
if strings.HasPrefix(currentURL, "/302/?pickcode=") {
225+
fullURL := fmt.Sprintf("%s://%s%s", req.URL.Scheme, req.URL.Host, location)
226+
logging.Debugf("拼接完整 URL:%s -> %s", currentURL, fullURL)
227+
currentURL = fullURL
228+
}
229+
226230
continue
227231
}
228232

0 commit comments

Comments
 (0)