mirror of
https://github.com/lampame/lampac-ukraine.git
synced 2026-04-16 09:22:21 +00:00
Compare commits
2 Commits
53608087a1
...
5e1a810ca5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5e1a810ca5 | ||
|
|
c2fbe0b3f0 |
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,6 +1,7 @@
|
|||||||
/.idea/
|
/.idea/
|
||||||
/AIDocumentation/
|
/AIDocumentation/
|
||||||
/Lampac/
|
/Lampac/
|
||||||
|
/lampac/
|
||||||
/BanderaBackend/
|
/BanderaBackend/
|
||||||
/Kinovezha/
|
/Kinovezha/
|
||||||
/.clinerules/moduls.md
|
/.clinerules/moduls.md
|
||||||
@ -8,3 +9,4 @@
|
|||||||
/.clinerules/
|
/.clinerules/
|
||||||
/.qodo/
|
/.qodo/
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
AGENTS.md
|
||||||
@ -32,6 +32,9 @@ namespace AnimeON
|
|||||||
if (!ApnHelper.IsAshdiUrl(url))
|
if (!ApnHelper.IsAshdiUrl(url))
|
||||||
return url;
|
return url;
|
||||||
|
|
||||||
|
if (!string.IsNullOrWhiteSpace(_init.webcorshost))
|
||||||
|
return url;
|
||||||
|
|
||||||
return ApnHelper.WrapUrl(_init, url);
|
return ApnHelper.WrapUrl(_init, url);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -53,7 +56,7 @@ namespace AnimeON
|
|||||||
string searchUrl = $"{_init.host}/api/anime/search?text={System.Web.HttpUtility.UrlEncode(query)}";
|
string searchUrl = $"{_init.host}/api/anime/search?text={System.Web.HttpUtility.UrlEncode(query)}";
|
||||||
|
|
||||||
_onLog($"AnimeON: using proxy {_proxyManager.CurrentProxyIp} for {searchUrl}");
|
_onLog($"AnimeON: using proxy {_proxyManager.CurrentProxyIp} for {searchUrl}");
|
||||||
string searchJson = await Http.Get(searchUrl, headers: headers, proxy: _proxyManager.Get());
|
string searchJson = await Http.Get(_init.cors(searchUrl), headers: headers, proxy: _proxyManager.Get());
|
||||||
if (string.IsNullOrEmpty(searchJson))
|
if (string.IsNullOrEmpty(searchJson))
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
@ -116,7 +119,7 @@ namespace AnimeON
|
|||||||
string fundubsUrl = $"{_init.host}/api/player/{animeId}/translations";
|
string fundubsUrl = $"{_init.host}/api/player/{animeId}/translations";
|
||||||
|
|
||||||
_onLog($"AnimeON: using proxy {_proxyManager.CurrentProxyIp} for {fundubsUrl}");
|
_onLog($"AnimeON: using proxy {_proxyManager.CurrentProxyIp} for {fundubsUrl}");
|
||||||
string fundubsJson = await Http.Get(fundubsUrl, headers: new List<HeadersModel>() { new HeadersModel("User-Agent", "Mozilla/5.0"), new HeadersModel("Referer", _init.host) }, proxy: _proxyManager.Get());
|
string fundubsJson = await Http.Get(_init.cors(fundubsUrl), headers: new List<HeadersModel>() { new HeadersModel("User-Agent", "Mozilla/5.0"), new HeadersModel("Referer", _init.host) }, proxy: _proxyManager.Get());
|
||||||
if (string.IsNullOrEmpty(fundubsJson))
|
if (string.IsNullOrEmpty(fundubsJson))
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
@ -142,7 +145,7 @@ namespace AnimeON
|
|||||||
string episodesUrl = $"{_init.host}/api/player/{animeId}/episodes?take=100&skip=-1&playerId={playerId}&translationId={fundubId}";
|
string episodesUrl = $"{_init.host}/api/player/{animeId}/episodes?take=100&skip=-1&playerId={playerId}&translationId={fundubId}";
|
||||||
|
|
||||||
_onLog($"AnimeON: using proxy {_proxyManager.CurrentProxyIp} for {episodesUrl}");
|
_onLog($"AnimeON: using proxy {_proxyManager.CurrentProxyIp} for {episodesUrl}");
|
||||||
string episodesJson = await Http.Get(episodesUrl, headers: new List<HeadersModel>() { new HeadersModel("User-Agent", "Mozilla/5.0"), new HeadersModel("Referer", _init.host) }, proxy: _proxyManager.Get());
|
string episodesJson = await Http.Get(_init.cors(episodesUrl), headers: new List<HeadersModel>() { new HeadersModel("User-Agent", "Mozilla/5.0"), new HeadersModel("Referer", _init.host) }, proxy: _proxyManager.Get());
|
||||||
if (string.IsNullOrEmpty(episodesJson))
|
if (string.IsNullOrEmpty(episodesJson))
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
@ -161,7 +164,7 @@ namespace AnimeON
|
|||||||
};
|
};
|
||||||
|
|
||||||
_onLog($"AnimeON: using proxy {_proxyManager.CurrentProxyIp} for {requestUrl}");
|
_onLog($"AnimeON: using proxy {_proxyManager.CurrentProxyIp} for {requestUrl}");
|
||||||
string html = await Http.Get(requestUrl, headers: headers, proxy: _proxyManager.Get());
|
string html = await Http.Get(_init.cors(requestUrl), headers: headers, proxy: _proxyManager.Get());
|
||||||
if (string.IsNullOrEmpty(html))
|
if (string.IsNullOrEmpty(html))
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
@ -191,7 +194,7 @@ namespace AnimeON
|
|||||||
|
|
||||||
string requestUrl = AshdiRequestUrl(url);
|
string requestUrl = AshdiRequestUrl(url);
|
||||||
_onLog($"AnimeON: using proxy {_proxyManager.CurrentProxyIp} for {requestUrl}");
|
_onLog($"AnimeON: using proxy {_proxyManager.CurrentProxyIp} for {requestUrl}");
|
||||||
string html = await Http.Get(requestUrl, headers: headers, proxy: _proxyManager.Get());
|
string html = await Http.Get(_init.cors(requestUrl), headers: headers, proxy: _proxyManager.Get());
|
||||||
if (string.IsNullOrEmpty(html))
|
if (string.IsNullOrEmpty(html))
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
@ -216,7 +219,7 @@ namespace AnimeON
|
|||||||
string url = $"{_init.host}/api/player/{episodeId}/episode";
|
string url = $"{_init.host}/api/player/{episodeId}/episode";
|
||||||
|
|
||||||
_onLog($"AnimeON: using proxy {_proxyManager.CurrentProxyIp} for {url}");
|
_onLog($"AnimeON: using proxy {_proxyManager.CurrentProxyIp} for {url}");
|
||||||
string json = await Http.Get(url, headers: new List<HeadersModel>() { new HeadersModel("User-Agent", "Mozilla/5.0"), new HeadersModel("Referer", _init.host) }, proxy: _proxyManager.Get());
|
string json = await Http.Get(_init.cors(url), headers: new List<HeadersModel>() { new HeadersModel("User-Agent", "Mozilla/5.0"), new HeadersModel("Referer", _init.host) }, proxy: _proxyManager.Get());
|
||||||
if (string.IsNullOrEmpty(json))
|
if (string.IsNullOrEmpty(json))
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
|
|||||||
@ -248,7 +248,7 @@ namespace AnimeON.Controllers
|
|||||||
{
|
{
|
||||||
string fundubsUrl = $"{init.host}/api/player/{animeId}/translations";
|
string fundubsUrl = $"{init.host}/api/player/{animeId}/translations";
|
||||||
|
|
||||||
string fundubsJson = await Http.Get(fundubsUrl, headers: new List<HeadersModel>() { new HeadersModel("User-Agent", "Mozilla/5.0"), new HeadersModel("Referer", init.host) });
|
string fundubsJson = await Http.Get(init.cors(fundubsUrl), headers: new List<HeadersModel>() { new HeadersModel("User-Agent", "Mozilla/5.0"), new HeadersModel("Referer", init.host) });
|
||||||
if (string.IsNullOrEmpty(fundubsJson))
|
if (string.IsNullOrEmpty(fundubsJson))
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
@ -273,7 +273,7 @@ namespace AnimeON.Controllers
|
|||||||
{
|
{
|
||||||
string episodesUrl = $"{init.host}/api/player/{animeId}/episodes?take=100&skip=-1&playerId={playerId}&translationId={fundubId}";
|
string episodesUrl = $"{init.host}/api/player/{animeId}/episodes?take=100&skip=-1&playerId={playerId}&translationId={fundubId}";
|
||||||
|
|
||||||
string episodesJson = await Http.Get(episodesUrl, headers: new List<HeadersModel>() { new HeadersModel("User-Agent", "Mozilla/5.0"), new HeadersModel("Referer", init.host) });
|
string episodesJson = await Http.Get(init.cors(episodesUrl), headers: new List<HeadersModel>() { new HeadersModel("User-Agent", "Mozilla/5.0"), new HeadersModel("Referer", init.host) });
|
||||||
if (string.IsNullOrEmpty(episodesJson))
|
if (string.IsNullOrEmpty(episodesJson))
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
@ -297,7 +297,7 @@ namespace AnimeON.Controllers
|
|||||||
|
|
||||||
string searchUrl = $"{init.host}/api/anime/search?text={HttpUtility.UrlEncode(query)}";
|
string searchUrl = $"{init.host}/api/anime/search?text={HttpUtility.UrlEncode(query)}";
|
||||||
|
|
||||||
string searchJson = await Http.Get(searchUrl, headers: headers);
|
string searchJson = await Http.Get(init.cors(searchUrl), headers: headers);
|
||||||
if (string.IsNullOrEmpty(searchJson))
|
if (string.IsNullOrEmpty(searchJson))
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
|
|||||||
@ -25,7 +25,7 @@ namespace AnimeON
|
|||||||
{
|
{
|
||||||
public class ModInit
|
public class ModInit
|
||||||
{
|
{
|
||||||
public static double Version => 3.4;
|
public static double Version => 3.5;
|
||||||
|
|
||||||
public static OnlinesSettings AnimeON;
|
public static OnlinesSettings AnimeON;
|
||||||
public static bool ApnHostProvided;
|
public static bool ApnHostProvided;
|
||||||
@ -159,7 +159,7 @@ namespace AnimeON
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
_disconnectTime = Connect?.IsNoiseEnabled == true
|
_disconnectTime = Connect?.IsNoiseEnabled == true
|
||||||
? DateTime.UtcNow.AddHours(Random.Shared.Next(1, 16))
|
? DateTime.UtcNow.AddHours(Random.Shared.Next(1, 4))
|
||||||
: DateTime.UtcNow;
|
: DateTime.UtcNow;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -50,7 +50,7 @@ namespace Bamboo
|
|||||||
};
|
};
|
||||||
|
|
||||||
_onLog?.Invoke($"Bamboo search: {searchUrl}");
|
_onLog?.Invoke($"Bamboo search: {searchUrl}");
|
||||||
string html = await Http.Get(searchUrl, headers: headers, proxy: _proxyManager.Get());
|
string html = await Http.Get(_init.cors(searchUrl), headers: headers, proxy: _proxyManager.Get());
|
||||||
if (string.IsNullOrEmpty(html))
|
if (string.IsNullOrEmpty(html))
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
@ -109,7 +109,7 @@ namespace Bamboo
|
|||||||
};
|
};
|
||||||
|
|
||||||
_onLog?.Invoke($"Bamboo series page: {href}");
|
_onLog?.Invoke($"Bamboo series page: {href}");
|
||||||
string html = await Http.Get(href, headers: headers, proxy: _proxyManager.Get());
|
string html = await Http.Get(_init.cors(href), headers: headers, proxy: _proxyManager.Get());
|
||||||
if (string.IsNullOrEmpty(html))
|
if (string.IsNullOrEmpty(html))
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
@ -183,7 +183,7 @@ namespace Bamboo
|
|||||||
};
|
};
|
||||||
|
|
||||||
_onLog?.Invoke($"Bamboo movie page: {href}");
|
_onLog?.Invoke($"Bamboo movie page: {href}");
|
||||||
string html = await Http.Get(href, headers: headers, proxy: _proxyManager.Get());
|
string html = await Http.Get(_init.cors(href), headers: headers, proxy: _proxyManager.Get());
|
||||||
if (string.IsNullOrEmpty(html))
|
if (string.IsNullOrEmpty(html))
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
|
|||||||
@ -24,7 +24,7 @@ namespace Bamboo
|
|||||||
{
|
{
|
||||||
public class ModInit
|
public class ModInit
|
||||||
{
|
{
|
||||||
public static double Version => 3.5;
|
public static double Version => 3.6;
|
||||||
|
|
||||||
public static OnlinesSettings Bamboo;
|
public static OnlinesSettings Bamboo;
|
||||||
public static bool ApnHostProvided;
|
public static bool ApnHostProvided;
|
||||||
@ -158,7 +158,7 @@ namespace Bamboo
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
_disconnectTime = Connect?.IsNoiseEnabled == true
|
_disconnectTime = Connect?.IsNoiseEnabled == true
|
||||||
? DateTime.UtcNow.AddHours(Random.Shared.Next(1, 16))
|
? DateTime.UtcNow.AddHours(Random.Shared.Next(1, 4))
|
||||||
: DateTime.UtcNow;
|
: DateTime.UtcNow;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -46,7 +46,7 @@ namespace Makhno
|
|||||||
new HeadersModel("User-Agent", Http.UserAgent)
|
new HeadersModel("User-Agent", Http.UserAgent)
|
||||||
};
|
};
|
||||||
|
|
||||||
string response = await Http.Get(url, timeoutSeconds: 4, headers: headers, proxy: _proxyManager.Get());
|
string response = await Http.Get(_init.cors(url), timeoutSeconds: 4, headers: headers, proxy: _proxyManager.Get());
|
||||||
if (string.IsNullOrWhiteSpace(response))
|
if (string.IsNullOrWhiteSpace(response))
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
@ -98,7 +98,7 @@ namespace Makhno
|
|||||||
new HeadersModel("User-Agent", Http.UserAgent)
|
new HeadersModel("User-Agent", Http.UserAgent)
|
||||||
};
|
};
|
||||||
|
|
||||||
var response = await Http.Get(url, headers: headers, proxy: _proxyManager.Get());
|
var response = await Http.Get(_init.cors(url), headers: headers, proxy: _proxyManager.Get());
|
||||||
|
|
||||||
if (string.IsNullOrEmpty(response))
|
if (string.IsNullOrEmpty(response))
|
||||||
return null;
|
return null;
|
||||||
@ -127,7 +127,7 @@ namespace Makhno
|
|||||||
{
|
{
|
||||||
new HeadersModel("User-Agent", Http.UserAgent)
|
new HeadersModel("User-Agent", Http.UserAgent)
|
||||||
};
|
};
|
||||||
var response = await Http.Get(url, headers: headers, proxy: _proxyManager.Get());
|
var response = await Http.Get(_init.cors(url), headers: headers, proxy: _proxyManager.Get());
|
||||||
|
|
||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
@ -212,12 +212,12 @@ namespace Makhno
|
|||||||
headers.Add(new HeadersModel("Referer", "https://ashdi.vip/"));
|
headers.Add(new HeadersModel("Referer", "https://ashdi.vip/"));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ApnHelper.IsAshdiUrl(playerUrl) && ApnHelper.IsEnabled(_init))
|
if (ApnHelper.IsAshdiUrl(playerUrl) && ApnHelper.IsEnabled(_init) && string.IsNullOrWhiteSpace(_init.webcorshost))
|
||||||
requestUrl = ApnHelper.WrapUrl(_init, playerUrl);
|
requestUrl = ApnHelper.WrapUrl(_init, playerUrl);
|
||||||
|
|
||||||
_onLog($"Makhno getting player data from: {requestUrl}");
|
_onLog($"Makhno getting player data from: {requestUrl}");
|
||||||
|
|
||||||
var response = await Http.Get(requestUrl, headers: headers, proxy: _proxyManager.Get());
|
var response = await Http.Get(_init.cors(requestUrl), headers: headers, proxy: _proxyManager.Get());
|
||||||
if (string.IsNullOrEmpty(response))
|
if (string.IsNullOrEmpty(response))
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
@ -725,7 +725,7 @@ namespace Makhno
|
|||||||
};
|
};
|
||||||
|
|
||||||
string json = JsonConvert.SerializeObject(payload, Formatting.None);
|
string json = JsonConvert.SerializeObject(payload, Formatting.None);
|
||||||
await Http.Post(WormholeHost, json, timeoutSeconds: 6, headers: headers, proxy: _proxyManager.Get());
|
await Http.Post(_init.cors(WormholeHost), json, timeoutSeconds: 6, headers: headers, proxy: _proxyManager.Get());
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
|
|||||||
@ -23,7 +23,7 @@ namespace Makhno
|
|||||||
{
|
{
|
||||||
public class ModInit
|
public class ModInit
|
||||||
{
|
{
|
||||||
public static double Version => 1.7;
|
public static double Version => 1.8;
|
||||||
|
|
||||||
public static OnlinesSettings Makhno;
|
public static OnlinesSettings Makhno;
|
||||||
public static bool ApnHostProvided;
|
public static bool ApnHostProvided;
|
||||||
@ -159,7 +159,7 @@ namespace Makhno
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
_disconnectTime = Connect?.IsNoiseEnabled == true
|
_disconnectTime = Connect?.IsNoiseEnabled == true
|
||||||
? DateTime.UtcNow.AddHours(Random.Shared.Next(1, 16))
|
? DateTime.UtcNow.AddHours(Random.Shared.Next(1, 4))
|
||||||
: DateTime.UtcNow;
|
: DateTime.UtcNow;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -44,7 +44,7 @@ namespace Mikai
|
|||||||
var headers = DefaultHeaders();
|
var headers = DefaultHeaders();
|
||||||
|
|
||||||
_onLog($"Mikai: using proxy {_proxyManager.CurrentProxyIp} for {searchUrl}");
|
_onLog($"Mikai: using proxy {_proxyManager.CurrentProxyIp} for {searchUrl}");
|
||||||
string json = await Http.Get(searchUrl, headers: headers, proxy: _proxyManager.Get());
|
string json = await Http.Get(_init.cors(searchUrl), headers: headers, proxy: _proxyManager.Get());
|
||||||
if (string.IsNullOrEmpty(json))
|
if (string.IsNullOrEmpty(json))
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
@ -88,7 +88,7 @@ namespace Mikai
|
|||||||
var headers = DefaultHeaders();
|
var headers = DefaultHeaders();
|
||||||
|
|
||||||
_onLog($"Mikai: using proxy {_proxyManager.CurrentProxyIp} for {url}");
|
_onLog($"Mikai: using proxy {_proxyManager.CurrentProxyIp} for {url}");
|
||||||
string json = await Http.Get(url, headers: headers, proxy: _proxyManager.Get());
|
string json = await Http.Get(_init.cors(url), headers: headers, proxy: _proxyManager.Get());
|
||||||
if (string.IsNullOrEmpty(json))
|
if (string.IsNullOrEmpty(json))
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
@ -139,7 +139,7 @@ namespace Mikai
|
|||||||
};
|
};
|
||||||
|
|
||||||
_onLog($"Mikai: using proxy {_proxyManager.CurrentProxyIp} for {requestUrl}");
|
_onLog($"Mikai: using proxy {_proxyManager.CurrentProxyIp} for {requestUrl}");
|
||||||
string html = await Http.Get(requestUrl, headers: headers, proxy: _proxyManager.Get());
|
string html = await Http.Get(_init.cors(requestUrl), headers: headers, proxy: _proxyManager.Get());
|
||||||
if (string.IsNullOrEmpty(html))
|
if (string.IsNullOrEmpty(html))
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
@ -160,6 +160,9 @@ namespace Mikai
|
|||||||
if (!ApnHelper.IsAshdiUrl(url))
|
if (!ApnHelper.IsAshdiUrl(url))
|
||||||
return url;
|
return url;
|
||||||
|
|
||||||
|
if (!string.IsNullOrWhiteSpace(_init.webcorshost))
|
||||||
|
return url;
|
||||||
|
|
||||||
return ApnHelper.WrapUrl(_init, url);
|
return ApnHelper.WrapUrl(_init, url);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -175,7 +178,7 @@ namespace Mikai
|
|||||||
|
|
||||||
string requestUrl = AshdiRequestUrl(url);
|
string requestUrl = AshdiRequestUrl(url);
|
||||||
_onLog($"Mikai: using proxy {_proxyManager.CurrentProxyIp} for {requestUrl}");
|
_onLog($"Mikai: using proxy {_proxyManager.CurrentProxyIp} for {requestUrl}");
|
||||||
string html = await Http.Get(requestUrl, headers: headers, proxy: _proxyManager.Get());
|
string html = await Http.Get(_init.cors(requestUrl), headers: headers, proxy: _proxyManager.Get());
|
||||||
if (string.IsNullOrEmpty(html))
|
if (string.IsNullOrEmpty(html))
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
|
|||||||
@ -24,7 +24,7 @@ namespace Mikai
|
|||||||
{
|
{
|
||||||
public class ModInit
|
public class ModInit
|
||||||
{
|
{
|
||||||
public static double Version => 3.5;
|
public static double Version => 3.6;
|
||||||
|
|
||||||
public static OnlinesSettings Mikai;
|
public static OnlinesSettings Mikai;
|
||||||
public static bool ApnHostProvided;
|
public static bool ApnHostProvided;
|
||||||
@ -160,7 +160,7 @@ namespace Mikai
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
_disconnectTime = Connect?.IsNoiseEnabled == true
|
_disconnectTime = Connect?.IsNoiseEnabled == true
|
||||||
? DateTime.UtcNow.AddHours(Random.Shared.Next(1, 16))
|
? DateTime.UtcNow.AddHours(Random.Shared.Next(1, 4))
|
||||||
: DateTime.UtcNow;
|
: DateTime.UtcNow;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -60,6 +60,7 @@ modules - optional, if not specified, all modules from the repository will be in
|
|||||||
"enable": true,
|
"enable": true,
|
||||||
"domain": "https://uaflix.net",
|
"domain": "https://uaflix.net",
|
||||||
"displayname": "Uaflix",
|
"displayname": "Uaflix",
|
||||||
|
"webcorshost": null,
|
||||||
"streamproxy": false,
|
"streamproxy": false,
|
||||||
"useproxy": false,
|
"useproxy": false,
|
||||||
"proxy": {
|
"proxy": {
|
||||||
@ -76,6 +77,11 @@ modules - optional, if not specified, all modules from the repository will be in
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Parameter compatibility:
|
||||||
|
- `webcorshost` + `useproxy`: work together (parsing via CORS host, and network output can go through a proxy with `useproxy`).
|
||||||
|
- `webcorshost` does not conflict with `streamproxy`: CORS is used for parsing, `streamproxy` is used for streaming.
|
||||||
|
- `webcorshost` does not conflict with `apn`: APN is used at the streaming stage, not for regular parsing.
|
||||||
|
|
||||||
## APN support
|
## APN support
|
||||||
|
|
||||||
Sources with APN support:
|
Sources with APN support:
|
||||||
|
|||||||
@ -24,7 +24,7 @@ namespace StarLight
|
|||||||
{
|
{
|
||||||
public class ModInit
|
public class ModInit
|
||||||
{
|
{
|
||||||
public static double Version => 3.2;
|
public static double Version => 3.3;
|
||||||
|
|
||||||
public static OnlinesSettings StarLight;
|
public static OnlinesSettings StarLight;
|
||||||
public static bool ApnHostProvided;
|
public static bool ApnHostProvided;
|
||||||
@ -158,7 +158,7 @@ namespace StarLight
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
_disconnectTime = Connect?.IsNoiseEnabled == true
|
_disconnectTime = Connect?.IsNoiseEnabled == true
|
||||||
? DateTime.UtcNow.AddHours(Random.Shared.Next(1, 16))
|
? DateTime.UtcNow.AddHours(Random.Shared.Next(1, 4))
|
||||||
: DateTime.UtcNow;
|
: DateTime.UtcNow;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -54,7 +54,7 @@ namespace StarLight
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
_onLog?.Invoke($"StarLight search: {url}");
|
_onLog?.Invoke($"StarLight search: {url}");
|
||||||
string payload = await Http.Get(url, headers: headers, proxy: _proxyManager.Get());
|
string payload = await Http.Get(_init.cors(url), headers: headers, proxy: _proxyManager.Get());
|
||||||
if (string.IsNullOrEmpty(payload))
|
if (string.IsNullOrEmpty(payload))
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
@ -112,7 +112,7 @@ namespace StarLight
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
_onLog?.Invoke($"StarLight project: {href}");
|
_onLog?.Invoke($"StarLight project: {href}");
|
||||||
string payload = await Http.Get(href, headers: headers, proxy: _proxyManager.Get());
|
string payload = await Http.Get(_init.cors(href), headers: headers, proxy: _proxyManager.Get());
|
||||||
if (string.IsNullOrEmpty(payload))
|
if (string.IsNullOrEmpty(payload))
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
@ -193,7 +193,7 @@ namespace StarLight
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
_onLog?.Invoke($"StarLight season: {seasonUrl}");
|
_onLog?.Invoke($"StarLight season: {seasonUrl}");
|
||||||
string payload = await Http.Get(seasonUrl, headers: headers, proxy: _proxyManager.Get());
|
string payload = await Http.Get(_init.cors(seasonUrl), headers: headers, proxy: _proxyManager.Get());
|
||||||
if (string.IsNullOrEmpty(payload))
|
if (string.IsNullOrEmpty(payload))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
@ -279,7 +279,7 @@ namespace StarLight
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
_onLog?.Invoke($"StarLight stream: {url}");
|
_onLog?.Invoke($"StarLight stream: {url}");
|
||||||
string payload = await Http.Get(url, headers: headers, proxy: _proxyManager.Get());
|
string payload = await Http.Get(_init.cors(url), headers: headers, proxy: _proxyManager.Get());
|
||||||
if (string.IsNullOrEmpty(payload))
|
if (string.IsNullOrEmpty(payload))
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
|
|||||||
@ -24,7 +24,7 @@ namespace UaTUT
|
|||||||
{
|
{
|
||||||
public class ModInit
|
public class ModInit
|
||||||
{
|
{
|
||||||
public static double Version => 3.5;
|
public static double Version => 3.6;
|
||||||
|
|
||||||
public static OnlinesSettings UaTUT;
|
public static OnlinesSettings UaTUT;
|
||||||
public static bool ApnHostProvided;
|
public static bool ApnHostProvided;
|
||||||
@ -159,7 +159,7 @@ namespace UaTUT
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
_disconnectTime = Connect?.IsNoiseEnabled == true
|
_disconnectTime = Connect?.IsNoiseEnabled == true
|
||||||
? DateTime.UtcNow.AddHours(Random.Shared.Next(1, 16))
|
? DateTime.UtcNow.AddHours(Random.Shared.Next(1, 4))
|
||||||
: DateTime.UtcNow;
|
: DateTime.UtcNow;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -65,7 +65,7 @@ namespace UaTUT
|
|||||||
_onLog($"UaTUT searching: {url}");
|
_onLog($"UaTUT searching: {url}");
|
||||||
|
|
||||||
var headers = new List<HeadersModel>() { new HeadersModel("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36") };
|
var headers = new List<HeadersModel>() { new HeadersModel("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36") };
|
||||||
var response = await Http.Get(url, headers: headers, proxy: _proxyManager.Get());
|
var response = await Http.Get(_init.cors(url), headers: headers, proxy: _proxyManager.Get());
|
||||||
|
|
||||||
if (string.IsNullOrEmpty(response))
|
if (string.IsNullOrEmpty(response))
|
||||||
return null;
|
return null;
|
||||||
@ -91,7 +91,7 @@ namespace UaTUT
|
|||||||
_onLog($"UaTUT getting movie page: {url}");
|
_onLog($"UaTUT getting movie page: {url}");
|
||||||
|
|
||||||
var headers = new List<HeadersModel>() { new HeadersModel("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36") };
|
var headers = new List<HeadersModel>() { new HeadersModel("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36") };
|
||||||
var response = await Http.Get(url, headers: headers, proxy: _proxyManager.Get());
|
var response = await Http.Get(_init.cors(url), headers: headers, proxy: _proxyManager.Get());
|
||||||
|
|
||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
@ -130,13 +130,13 @@ namespace UaTUT
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
string requestUrl = playerUrl;
|
string requestUrl = playerUrl;
|
||||||
if (ApnHelper.IsAshdiUrl(playerUrl) && ApnHelper.IsEnabled(_init))
|
if (ApnHelper.IsAshdiUrl(playerUrl) && ApnHelper.IsEnabled(_init) && string.IsNullOrWhiteSpace(_init.webcorshost))
|
||||||
requestUrl = ApnHelper.WrapUrl(_init, playerUrl);
|
requestUrl = ApnHelper.WrapUrl(_init, playerUrl);
|
||||||
|
|
||||||
_onLog($"UaTUT getting player data from: {requestUrl}");
|
_onLog($"UaTUT getting player data from: {requestUrl}");
|
||||||
|
|
||||||
var headers = new List<HeadersModel>() { new HeadersModel("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36") };
|
var headers = new List<HeadersModel>() { new HeadersModel("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36") };
|
||||||
var response = await Http.Get(requestUrl, headers: headers, proxy: _proxyManager.Get());
|
var response = await Http.Get(_init.cors(requestUrl), headers: headers, proxy: _proxyManager.Get());
|
||||||
|
|
||||||
if (string.IsNullOrEmpty(response))
|
if (string.IsNullOrEmpty(response))
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
@ -56,7 +56,7 @@ namespace Uaflix.Controllers
|
|||||||
string searchUrl = $"{init.host}/index.php?do=search&subaction=search&story={System.Web.HttpUtility.UrlEncode(filmTitle)}";
|
string searchUrl = $"{init.host}/index.php?do=search&subaction=search&story={System.Web.HttpUtility.UrlEncode(filmTitle)}";
|
||||||
var headers = new List<HeadersModel>() { new HeadersModel("User-Agent", "Mozilla/5.0"), new HeadersModel("Referer", init.host) };
|
var headers = new List<HeadersModel>() { new HeadersModel("User-Agent", "Mozilla/5.0"), new HeadersModel("Referer", init.host) };
|
||||||
|
|
||||||
var searchHtml = await Http.Get(searchUrl, headers: headers, proxy: proxyManager.Get(), timeoutSeconds: 10);
|
var searchHtml = await Http.Get(init.cors(searchUrl), headers: headers, proxy: proxyManager.Get(), timeoutSeconds: 10);
|
||||||
|
|
||||||
// Швидка перевірка наявності результатів без повного парсингу
|
// Швидка перевірка наявності результатів без повного парсингу
|
||||||
if (!string.IsNullOrEmpty(searchHtml) &&
|
if (!string.IsNullOrEmpty(searchHtml) &&
|
||||||
|
|||||||
@ -25,7 +25,7 @@ namespace Uaflix
|
|||||||
{
|
{
|
||||||
public class ModInit
|
public class ModInit
|
||||||
{
|
{
|
||||||
public static double Version => 3.5;
|
public static double Version => 3.6;
|
||||||
|
|
||||||
public static OnlinesSettings UaFlix;
|
public static OnlinesSettings UaFlix;
|
||||||
public static bool ApnHostProvided;
|
public static bool ApnHostProvided;
|
||||||
@ -164,7 +164,7 @@ namespace Uaflix
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
_disconnectTime = Connect?.IsNoiseEnabled == true
|
_disconnectTime = Connect?.IsNoiseEnabled == true
|
||||||
? DateTime.UtcNow.AddHours(Random.Shared.Next(1, 16))
|
? DateTime.UtcNow.AddHours(Random.Shared.Next(1, 4))
|
||||||
: DateTime.UtcNow;
|
: DateTime.UtcNow;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -38,6 +38,9 @@ namespace Uaflix
|
|||||||
if (!ApnHelper.IsAshdiUrl(url))
|
if (!ApnHelper.IsAshdiUrl(url))
|
||||||
return url;
|
return url;
|
||||||
|
|
||||||
|
if (!string.IsNullOrWhiteSpace(_init.webcorshost))
|
||||||
|
return url;
|
||||||
|
|
||||||
return ApnHelper.WrapUrl(_init, url);
|
return ApnHelper.WrapUrl(_init, url);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -99,7 +102,7 @@ namespace Uaflix
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
string html = await Http.Get(AshdiRequestUrl(requestUrl), headers: headers, proxy: _proxyManager.Get());
|
string html = await Http.Get(_init.cors(AshdiRequestUrl(requestUrl)), headers: headers, proxy: _proxyManager.Get());
|
||||||
|
|
||||||
// Знайти JSON у new Playerjs({file:'...'})
|
// Знайти JSON у new Playerjs({file:'...'})
|
||||||
var match = Regex.Match(html, @"file:'(\[.+?\])'", RegexOptions.Singleline);
|
var match = Regex.Match(html, @"file:'(\[.+?\])'", RegexOptions.Singleline);
|
||||||
@ -210,7 +213,7 @@ namespace Uaflix
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
string html = await Http.Get(iframeUrl, headers: headers, proxy: _proxyManager.Get());
|
string html = await Http.Get(_init.cors(iframeUrl), headers: headers, proxy: _proxyManager.Get());
|
||||||
|
|
||||||
// Знайти file:"url"
|
// Знайти file:"url"
|
||||||
var match = Regex.Match(html, @"file:\s*""([^""]+\.m3u8)""");
|
var match = Regex.Match(html, @"file:\s*""([^""]+\.m3u8)""");
|
||||||
@ -244,7 +247,7 @@ namespace Uaflix
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
string html = await Http.Get(iframeUrl, headers: headers, proxy: _proxyManager.Get());
|
string html = await Http.Get(_init.cors(iframeUrl), headers: headers, proxy: _proxyManager.Get());
|
||||||
|
|
||||||
// Шукаємо Playerjs конфігурацію з file параметром
|
// Шукаємо Playerjs конфігурацію з file параметром
|
||||||
var match = Regex.Match(html, @"file:\s*'?([^'""\s,}]+\.m3u8)'?");
|
var match = Regex.Match(html, @"file:\s*'?([^'""\s,}]+\.m3u8)'?");
|
||||||
@ -350,7 +353,7 @@ namespace Uaflix
|
|||||||
new HeadersModel("Referer", _init.host)
|
new HeadersModel("Referer", _init.host)
|
||||||
};
|
};
|
||||||
|
|
||||||
string html = await Http.Get(firstEpisode.url, headers: headers, proxy: _proxyManager.Get());
|
string html = await Http.Get(_init.cors(firstEpisode.url), headers: headers, proxy: _proxyManager.Get());
|
||||||
|
|
||||||
var doc = new HtmlDocument();
|
var doc = new HtmlDocument();
|
||||||
doc.LoadHtml(html);
|
doc.LoadHtml(html);
|
||||||
@ -566,7 +569,7 @@ namespace Uaflix
|
|||||||
string searchUrl = $"{_init.host}/index.php?do=search&subaction=search&story={System.Web.HttpUtility.UrlEncode(filmTitle)}";
|
string searchUrl = $"{_init.host}/index.php?do=search&subaction=search&story={System.Web.HttpUtility.UrlEncode(filmTitle)}";
|
||||||
var headers = new List<HeadersModel>() { new HeadersModel("User-Agent", "Mozilla/5.0"), new HeadersModel("Referer", _init.host) };
|
var headers = new List<HeadersModel>() { new HeadersModel("User-Agent", "Mozilla/5.0"), new HeadersModel("Referer", _init.host) };
|
||||||
|
|
||||||
var searchHtml = await Http.Get(searchUrl, headers: headers, proxy: _proxyManager.Get());
|
var searchHtml = await Http.Get(_init.cors(searchUrl), headers: headers, proxy: _proxyManager.Get());
|
||||||
var doc = new HtmlDocument();
|
var doc = new HtmlDocument();
|
||||||
doc.LoadHtml(searchHtml);
|
doc.LoadHtml(searchHtml);
|
||||||
|
|
||||||
@ -658,7 +661,7 @@ namespace Uaflix
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
var headers = new List<HeadersModel>() { new HeadersModel("User-Agent", "Mozilla/5.0"), new HeadersModel("Referer", _init.host) };
|
var headers = new List<HeadersModel>() { new HeadersModel("User-Agent", "Mozilla/5.0"), new HeadersModel("Referer", _init.host) };
|
||||||
var filmHtml = await Http.Get(filmUrl, headers: headers, proxy: _proxyManager.Get());
|
var filmHtml = await Http.Get(_init.cors(filmUrl), headers: headers, proxy: _proxyManager.Get());
|
||||||
var doc = new HtmlDocument();
|
var doc = new HtmlDocument();
|
||||||
doc.LoadHtml(filmHtml);
|
doc.LoadHtml(filmHtml);
|
||||||
|
|
||||||
@ -733,7 +736,7 @@ namespace Uaflix
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
var headers = new List<HeadersModel>() { new HeadersModel("User-Agent", "Mozilla/5.0"), new HeadersModel("Referer", _init.host) };
|
var headers = new List<HeadersModel>() { new HeadersModel("User-Agent", "Mozilla/5.0"), new HeadersModel("Referer", _init.host) };
|
||||||
var filmHtml = await Http.Get(filmUrl, headers: headers, proxy: _proxyManager.Get());
|
var filmHtml = await Http.Get(_init.cors(filmUrl), headers: headers, proxy: _proxyManager.Get());
|
||||||
var filmDoc = new HtmlDocument();
|
var filmDoc = new HtmlDocument();
|
||||||
filmDoc.LoadHtml(filmHtml);
|
filmDoc.LoadHtml(filmHtml);
|
||||||
|
|
||||||
@ -771,7 +774,7 @@ namespace Uaflix
|
|||||||
if (safeSeasonUrls.Count == 0)
|
if (safeSeasonUrls.Count == 0)
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
var seasonTasks = safeSeasonUrls.Select(url => Http.Get(url, headers: headers, proxy: _proxyManager.Get()));
|
var seasonTasks = safeSeasonUrls.Select(url => Http.Get(_init.cors(url), headers: headers, proxy: _proxyManager.Get()));
|
||||||
var seasonPagesHtml = await Task.WhenAll(seasonTasks);
|
var seasonPagesHtml = await Task.WhenAll(seasonTasks);
|
||||||
|
|
||||||
foreach (var html in seasonPagesHtml)
|
foreach (var html in seasonPagesHtml)
|
||||||
@ -832,7 +835,7 @@ namespace Uaflix
|
|||||||
var result = new Uaflix.Models.PlayResult() { streams = new List<(string, string)>() };
|
var result = new Uaflix.Models.PlayResult() { streams = new List<(string, string)>() };
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
string html = await Http.Get(url, headers: new List<HeadersModel>() { new HeadersModel("User-Agent", "Mozilla/5.0"), new HeadersModel("Referer", _init.host) }, proxy: _proxyManager.Get());
|
string html = await Http.Get(_init.cors(url), headers: new List<HeadersModel>() { new HeadersModel("User-Agent", "Mozilla/5.0"), new HeadersModel("Referer", _init.host) }, proxy: _proxyManager.Get());
|
||||||
var doc = new HtmlDocument();
|
var doc = new HtmlDocument();
|
||||||
doc.LoadHtml(html);
|
doc.LoadHtml(html);
|
||||||
|
|
||||||
@ -938,7 +941,7 @@ namespace Uaflix
|
|||||||
async Task<List<(string link, string quality)>> ParseAllZetvideoSources(string iframeUrl)
|
async Task<List<(string link, string quality)>> ParseAllZetvideoSources(string iframeUrl)
|
||||||
{
|
{
|
||||||
var result = new List<(string link, string quality)>();
|
var result = new List<(string link, string quality)>();
|
||||||
var html = await Http.Get(iframeUrl, headers: new List<HeadersModel>() { new HeadersModel("User-Agent", "Mozilla/5.0"), new HeadersModel("Referer", "https://zetvideo.net/") }, proxy: _proxyManager.Get());
|
var html = await Http.Get(_init.cors(iframeUrl), headers: new List<HeadersModel>() { new HeadersModel("User-Agent", "Mozilla/5.0"), new HeadersModel("Referer", "https://zetvideo.net/") }, proxy: _proxyManager.Get());
|
||||||
if (string.IsNullOrEmpty(html)) return result;
|
if (string.IsNullOrEmpty(html)) return result;
|
||||||
|
|
||||||
var doc = new HtmlDocument();
|
var doc = new HtmlDocument();
|
||||||
@ -969,7 +972,7 @@ namespace Uaflix
|
|||||||
async Task<List<(string link, string quality)>> ParseAllAshdiSources(string iframeUrl)
|
async Task<List<(string link, string quality)>> ParseAllAshdiSources(string iframeUrl)
|
||||||
{
|
{
|
||||||
var result = new List<(string link, string quality)>();
|
var result = new List<(string link, string quality)>();
|
||||||
var html = await Http.Get(AshdiRequestUrl(iframeUrl), headers: new List<HeadersModel>() { new HeadersModel("User-Agent", "Mozilla/5.0"), new HeadersModel("Referer", "https://ashdi.vip/") }, proxy: _proxyManager.Get());
|
var html = await Http.Get(_init.cors(AshdiRequestUrl(iframeUrl)), headers: new List<HeadersModel>() { new HeadersModel("User-Agent", "Mozilla/5.0"), new HeadersModel("Referer", "https://ashdi.vip/") }, proxy: _proxyManager.Get());
|
||||||
if (string.IsNullOrEmpty(html)) return result;
|
if (string.IsNullOrEmpty(html)) return result;
|
||||||
|
|
||||||
var doc = new HtmlDocument();
|
var doc = new HtmlDocument();
|
||||||
@ -989,7 +992,7 @@ namespace Uaflix
|
|||||||
async Task<SubtitleTpl?> GetAshdiSubtitles(string id)
|
async Task<SubtitleTpl?> GetAshdiSubtitles(string id)
|
||||||
{
|
{
|
||||||
string url = $"https://ashdi.vip/vod/{id}";
|
string url = $"https://ashdi.vip/vod/{id}";
|
||||||
var html = await Http.Get(AshdiRequestUrl(url), headers: new List<HeadersModel>() { new HeadersModel("User-Agent", "Mozilla/5.0"), new HeadersModel("Referer", "https://ashdi.vip/") }, proxy: _proxyManager.Get());
|
var html = await Http.Get(_init.cors(AshdiRequestUrl(url)), headers: new List<HeadersModel>() { new HeadersModel("User-Agent", "Mozilla/5.0"), new HeadersModel("Referer", "https://ashdi.vip/") }, proxy: _proxyManager.Get());
|
||||||
string subtitle = new Regex("subtitle(\")?:\"([^\"]+)\"").Match(html).Groups[2].Value;
|
string subtitle = new Regex("subtitle(\")?:\"([^\"]+)\"").Match(html).Groups[2].Value;
|
||||||
if (!string.IsNullOrEmpty(subtitle))
|
if (!string.IsNullOrEmpty(subtitle))
|
||||||
{
|
{
|
||||||
|
|||||||
@ -30,7 +30,7 @@ namespace Unimay
|
|||||||
{
|
{
|
||||||
public class ModInit
|
public class ModInit
|
||||||
{
|
{
|
||||||
public static double Version => 3.3;
|
public static double Version => 3.4;
|
||||||
|
|
||||||
public static OnlinesSettings Unimay;
|
public static OnlinesSettings Unimay;
|
||||||
|
|
||||||
@ -147,7 +147,7 @@ namespace Unimay
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
_disconnectTime = Connect?.IsNoiseEnabled == true
|
_disconnectTime = Connect?.IsNoiseEnabled == true
|
||||||
? DateTime.UtcNow.AddHours(Random.Shared.Next(1, 16))
|
? DateTime.UtcNow.AddHours(Random.Shared.Next(1, 4))
|
||||||
: DateTime.UtcNow;
|
: DateTime.UtcNow;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -39,7 +39,7 @@ namespace Unimay
|
|||||||
string searchUrl = $"{_init.host}/release/search?page=0&page_size=10&title={searchQuery}";
|
string searchUrl = $"{_init.host}/release/search?page=0&page_size=10&title={searchQuery}";
|
||||||
|
|
||||||
var headers = httpHeaders(_init);
|
var headers = httpHeaders(_init);
|
||||||
SearchResponse root = await Http.Get<SearchResponse>(searchUrl, timeoutSeconds: 8, proxy: _proxyManager.Get(), headers: headers);
|
SearchResponse root = await Http.Get<SearchResponse>(_init.cors(searchUrl), timeoutSeconds: 8, proxy: _proxyManager.Get(), headers: headers);
|
||||||
|
|
||||||
if (root == null || root.Content == null || root.Content.Count == 0)
|
if (root == null || root.Content == null || root.Content.Count == 0)
|
||||||
{
|
{
|
||||||
@ -69,7 +69,7 @@ namespace Unimay
|
|||||||
string releaseUrl = $"{_init.host}/release?code={code}";
|
string releaseUrl = $"{_init.host}/release?code={code}";
|
||||||
|
|
||||||
var headers = httpHeaders(_init);
|
var headers = httpHeaders(_init);
|
||||||
ReleaseResponse root = await Http.Get<ReleaseResponse>(releaseUrl, timeoutSeconds: 8, proxy: _proxyManager.Get(), headers: headers);
|
ReleaseResponse root = await Http.Get<ReleaseResponse>(_init.cors(releaseUrl), timeoutSeconds: 8, proxy: _proxyManager.Get(), headers: headers);
|
||||||
|
|
||||||
if (root == null)
|
if (root == null)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user