Skip to content

Commit

Permalink
fix huya ratio #220
Browse files Browse the repository at this point in the history
  • Loading branch information
xjbeta committed Feb 25, 2024
1 parent a3f1589 commit 6b6f9c5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion IINA+/Utils/VideoDecoder/Huya.swift
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,11 @@ struct HuyaStream: Unmarshaling {
}

var us = urls.map {
$0.replacingOccurrences(of: "&ratio=0", with: "&ratio=\(rate)")
if rate != 0 {
$0.replacingOccurrences(of: "&ratio=0", with: "&ratio=\(rate)")
} else {
$0.replacingOccurrences(of: "&ratio=0", with: "")
}
}

var s = Stream(url: us.removeFirst())
Expand Down

0 comments on commit 6b6f9c5

Please sign in to comment.