lampac-ukraine/LME.Uaflix/Models/EpisodeLinkInfo.cs
Felix e695121444 fix(uaflix): skip probing unreleased premiere episodes
Mark season episodes whose description title contains «Прем'єра» and skip player probing for them. This avoids unnecessary HTTP requests for episodes that have not aired yet.
2026-06-15 08:46:19 +03:00

30 lines
1.4 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using System.Collections.Generic;
namespace LME.Uaflix.Models
{
public class EpisodeLinkInfo
{
public string url { get; set; }
public string title { get; set; }
public int season { get; set; }
public int episode { get; set; }
// Нові поля для підтримки змішаних плеєрів
public string playerType { get; set; } // "ashdi-serial", "zetvideo-serial", "zetvideo-vod", "ashdi-vod"
public string iframeUrl { get; set; } // URL iframe для цього епізоду
/// <summary>
/// Всі zetvideo iframe URL на сторінці епізоду (для створення кількох перекладів)
/// Перший елемент відповідає iframeUrl, наступні — додаткові плеєри (напр. з субтитрами)
/// </summary>
public List<string> zetvideoIframeUrls { get; set; }
/// <summary>
/// Епізод позначено як «Прем'єра» (ще не вийшов) на сторінці сезону.
/// У таких епізодів у vi-desc → vi-title зазначено "Прем'єра. ДД.ММ.РРРР".
/// ProbeSeasonPlayer не робитиме зайвого HTTP-запиту для таких епізодів.
/// </summary>
public bool IsPremiere { get; set; }
}
}