Skip to content

Commit

Permalink
dev
Browse files Browse the repository at this point in the history
  • Loading branch information
immisterio committed Oct 17, 2023
1 parent 99d5f1c commit 5168c9d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion Lampac/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
using Newtonsoft.Json.Linq;
using System.Text;
using System.Net;
using System.IO;

namespace Lampac
{
Expand Down
6 changes: 3 additions & 3 deletions Online/OnlineApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ async public Task<ActionResult> Externalids(long id, string imdb_id, long kinopo
if (IO.File.Exists("cache/externalids/master.json"))
externalids = JsonConvert.DeserializeObject<Dictionary<string, string>>(IO.File.ReadAllText("cache/externalids/master.json"));

#region getAlloha / getVSDN / getTabus / getCDNmovies
#region getAlloha / getVSDN / getTabus
async Task<string> getAlloha(string imdb)
{
var proxyManager = new ProxyManager("alloha", AppInit.conf.Alloha);
Expand Down Expand Up @@ -262,7 +262,7 @@ async public Task<ActionResult> Events(long id, string imdb_id, long kinopoisk_i
online += "{\"name\":\"" + (conf.VoKino.displayname ?? "VoKino") + "\",\"url\":\"{localhost}/vokino\"},";

if (conf.KinoPub.enable)
online += "{\"name\":\"" + (conf.KinoPub.displayname ?? "KinoPub") + "\",\"url\":\"{localhost}/kinopub\"},";
online += "{\"name\":\"" + (conf.KinoPub.displayname ?? "KinoPub") + "\",\"url\":\"{localhost}/kinopub"+(source == "pub" ? $"?postid={id}" : "")+"\"},";

if (conf.Filmix.enable)
online += "{\"name\":\"" + (conf.Filmix.displayname ?? "Filmix") + "\",\"url\":\"{localhost}/filmix"+(source == "filmix" ? $"?postid={id}" : "")+"\"},";
Expand Down Expand Up @@ -407,7 +407,7 @@ async public Task<ActionResult> Events(long id, string imdb_id, long kinopoisk_i
async Task checkSearch(ConcurrentBag<(string code, int index, bool work)> links, List<Task> tasks, int index, string name, string uri,
long id, string imdb_id, long kinopoisk_id, string title, string original_title, string original_language, string source, int year, int serial)
{
string account_email = AppInit.conf.accsdb.enable ? AppInit.conf.accsdb?.accounts?.First() : "";
string account_email = AppInit.conf.accsdb.enable ? AppInit.conf.accsdb?.accounts?.First().Key : "";
string res = await HttpClient.Get($"{host}/lite/{uri}{(uri.Contains("?") ? "&" : "?")}id={id}&imdb_id={imdb_id}&kinopoisk_id={kinopoisk_id}&title={HttpUtility.UrlEncode(title)}&original_title={HttpUtility.UrlEncode(original_title)}&original_language={original_language}&source={source}&year={year}&serial={serial}&account_email={HttpUtility.UrlEncode(account_email)}&checksearch=true", timeoutSeconds: 10);

bool work = !string.IsNullOrWhiteSpace(res) && res.Contains("data-json=");
Expand Down
2 changes: 1 addition & 1 deletion Shared.Model/AppInit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public class AppInit

public OnlinesSettings Zetflix { get; set; } = new OnlinesSettings("https://zetfix.online");

public OnlinesSettings VideoDB { get; set; } = new OnlinesSettings("https://kinoplay.site");
public OnlinesSettings VideoDB { get; set; } = new OnlinesSettings("https://kinoplay1.site");

public OnlinesSettings CDNmovies { get; set; } = new OnlinesSettings("https://cdnmovies.nl");

Expand Down

0 comments on commit 5168c9d

Please sign in to comment.