Skip to content

Commit

Permalink
Update VideoCDN.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
immisterio committed Nov 20, 2022
1 parent 210241b commit c6330f2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Controllers/LITE/VideoCDN.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Caching.Memory;
using Newtonsoft.Json.Linq;
using Newtonsoft.Json;
using System.Web;
using Lampac.Engine;
Expand All @@ -18,7 +17,7 @@ public class VideoCDN : BaseController
{
[HttpGet]
[Route("lite/vcdn")]
async public Task<ActionResult> Index(string imdb_id, long kinopoisk_id, string title, string original_title, int t, int s, int sid = -1)
async public Task<ActionResult> Index(string imdb_id, long kinopoisk_id, string title, string original_title, int t, int s = -1, int sid = -1)
{
if (!AppInit.conf.VCDN.enable)
return Content(string.Empty);
Expand Down Expand Up @@ -272,9 +271,11 @@ async public Task<ActionResult> Index(string imdb_id, long kinopoisk_id, string
sname += $" ({episodetitle})";

string ename = Regex.Match(episode.title, "<i>([^<]+)</i>").Groups[1].Value;

string eid = Regex.Match(episode.title, "^([0-9]+)").Groups[1].Value;

if (s == -1)
s = 1;

#region streamsquality
string streamsquality = string.Empty;
foreach (var stream in episode.streams)
Expand Down

0 comments on commit c6330f2

Please sign in to comment.