Skip to content

Commit

Permalink
fix vokino
Browse files Browse the repository at this point in the history
  • Loading branch information
immisterio committed Feb 4, 2023
1 parent c6b282e commit 2fd735a
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
25 changes: 25 additions & 0 deletions Controllers/LITE/VoKino.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,36 @@
using Lampac.Engine.CORE;
using Newtonsoft.Json.Linq;
using Microsoft.Extensions.Caching.Memory;
using System.Web;
using System.Linq;

namespace Lampac.Controllers.LITE
{
public class VoKino : BaseController
{
#region vokinotk
[HttpGet]
[Route("lite/vokinotk")]
async public Task<ActionResult> Token(string login, string pass)
{
string html = string.Empty;

if (string.IsNullOrWhiteSpace(login) || string.IsNullOrWhiteSpace(pass))
{
html = "Введите данные аккаунта <a href='http://vokino.tv'>vokino.tv</a> <br> <br><form method=\"get\" action=\"/lite/vokinotk\"><input type=\"text\" name=\"login\" placeholder=\"email\"> &nbsp; &nbsp; <input type=\"text\" name=\"pass\" placeholder=\"пароль\"><br><br><button>Добавить устройство</button></form> ";
}
else
{
string deviceid = new string(DateTime.Now.ToBinary().ToString().Reverse().ToArray()).Substring(0, 8);
var token_request = await HttpClient.Get<JObject>($"{AppInit.conf.VoKino.host}/v2/auth?email={HttpUtility.UrlEncode(login)}&passwd={HttpUtility.UrlEncode(pass)}&deviceid={deviceid}");

html = $"В init.conf для VoKino укажите token <br><br><b>{token_request.Value<string>("authToken")}</b>";
}

return Content(html, "text/html; charset=utf-8");
}
#endregion

[HttpGet]
[Route("lite/vokino")]
async public Task<ActionResult> Index(long kinopoisk_id, string title, string original_title)
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,14 @@ curl -s https://raw.githubusercontent.com/immisterio/lampac/main/install.sh | ba
2. В "Основной источник" выбрать "CUB"

# Источники
* Filmix, Kinobase, HDRezka (Voidboost), VideoCDN, VideoDB, Collaps, HDVB, Zetflix (VideoDB), Kodik, Ashdi (UKR), Eneyida (UKR), Kinokrad, Kinotochka, Kinoprofi, LostfilmHD, IframeVideo, CDNmovies, Anilibria, AniMedia, AnimeGo, Animevost, Animebesst, Redheadsound, VideoAPI (ENG), Bazon, Alloha, Seasonvar, KinoPub
* Filmix, Kinobase, HDRezka (Voidboost), VideoCDN, VideoDB, Collaps, HDVB, Zetflix (VideoDB), Kodik, Ashdi (UKR), Eneyida (UKR), Kinokrad, Kinotochka, Kinoprofi, LostfilmHD, IframeVideo, CDNmovies, Anilibria, AniMedia, AnimeGo, Animevost, Animebesst, Redheadsound, VideoAPI (ENG), Bazon, Alloha, Seasonvar, KinoPub, VoKino
* Kinozal, Nnmclub, Rutor, Megapeer, Torrentby, Bitru, Anilibria, Toloka (UKR), Rutracker, Selezen, LostFilm, Animelayer, Anifilm
* PornHub, Bongacams, Chaturbate, Ebalovo, Eporner, HQporner, Porntrex, Spankbang, Xhamster, Xnxx, Xvideos

# Привязка PRO аккаунтов
* Filmix - "http://IP:9118/lite/filmixpro"
* KinoPub - "http://IP:9118/lite/kinopubpro"
* VoKino - "http://IP:9118/lite/vokinotk"

# Плагин DLNA.js
* Просмотр медиа файлов с папки dlna
Expand Down

0 comments on commit 2fd735a

Please sign in to comment.