追加: 85PO(85po.com / 85ro.com / 85po.net)の動画閲覧・埋め込みプレイヤー再生対応
- DomainClassifierに85po.comおよび関連ドメインを登録し動画メディアとして自動認識 - VideoEmbedExtractorにResolve85PoAsyncを実装し公式埋め込みプレイヤー(embed)の自動抽出・解決に対応 - UnifiedHtmlRendererのトップページに85POのサンプルカードおよび対応ドメインチップを追加 - Windows環境でのWinHttpHandler適用によるCloudflare TLSフィンガープリント耐性の向上 - レガシーVideoUrlResolverへの85POホスト判定の追加による後方互換性担保
This commit is contained in:
1 parent
cd202a1719
commit
bec51879c7
5 files changed
+206
-7
No files matched your search
@@ -1,4 +1,4 @@
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Text.RegularExpressions;
|
||||
using HtmlAgilityPack;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using WebImageViewer.Class.Legacy.Common;
|
||||
@@ -155,6 +155,24 @@ public class VideoUrlResolver
|
||||
};
|
||||
}
|
||||
|
||||
// 85PO
|
||||
if (url.Contains("85po.com", StringComparison.OrdinalIgnoreCase) ||
|
||||
url.Contains("85ro.com", StringComparison.OrdinalIgnoreCase) ||
|
||||
url.Contains("85po.net", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
var match = Regex.Match(url, @"(?:/v/|/embed/|/videos/|^)(?<id>[0-9]+)", RegexOptions.IgnoreCase);
|
||||
var id = match.Success ? match.Groups["id"].Value : "video";
|
||||
return new ResolvedVideoResult
|
||||
{
|
||||
Site = "85po",
|
||||
VideoId = id,
|
||||
PlayerUrl = $"https://www.85po.com/embed/{id}",
|
||||
OriginalUrl = url,
|
||||
Title = title ?? $"85PO 動画 ({id})",
|
||||
IsSuccess = true
|
||||
};
|
||||
}
|
||||
|
||||
// HDZog
|
||||
if (url.Contains("hdzog.com", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
@@ -514,4 +532,3 @@ public class VideoUrlResolver
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user