mirror of
https://github.com/lampame/lampac-ukraine.git
synced 2026-06-17 12:08:54 +00:00
fix(uakino): always request ashdi vod with multivoice parameter
Ensure Ashdi VOD fetches include the `multivoice` query flag so the response contains the full stream array instead of a single variant. This restores complete track availability for downstream parsing and labeling logic.
This commit is contained in:
parent
b6a884d6e3
commit
d145313c5b
@ -288,13 +288,17 @@ namespace LME.UAKino
|
|||||||
{
|
{
|
||||||
_onLog?.Invoke($"UAKino resolve Ashdi all: {vodUrl}");
|
_onLog?.Invoke($"UAKino resolve Ashdi all: {vodUrl}");
|
||||||
|
|
||||||
|
// Для ?multivoice — Ашді повертає всі стріми в одному масиві
|
||||||
|
string fetchUrl = vodUrl;
|
||||||
|
if (!fetchUrl.Contains("multivoice"))
|
||||||
|
fetchUrl += (fetchUrl.Contains("?") ? "&" : "?") + "multivoice";
|
||||||
|
|
||||||
var headers = new List<HeadersModel>()
|
var headers = new List<HeadersModel>()
|
||||||
{
|
{
|
||||||
new HeadersModel("User-Agent", Http.UserAgent),
|
new HeadersModel("User-Agent", Http.UserAgent),
|
||||||
new HeadersModel("Referer", "https://ashdi.vip/")
|
new HeadersModel("Referer", "https://ashdi.vip/")
|
||||||
};
|
};
|
||||||
|
|
||||||
string fetchUrl = vodUrl;
|
|
||||||
if (ApnHelper.IsEnabled(_init) && string.IsNullOrWhiteSpace(_init.webcorshost))
|
if (ApnHelper.IsEnabled(_init) && string.IsNullOrWhiteSpace(_init.webcorshost))
|
||||||
fetchUrl = ApnHelper.WrapUrl(_init, fetchUrl);
|
fetchUrl = ApnHelper.WrapUrl(_init, fetchUrl);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user