refactor(1): move Detection (MediaDetector/SocialSiteDetector/DetectionContext) App->Core

This commit is contained in:
Yun Chan 2026-08-15 14:49:02 +09:00
parent b6b7fc341b
commit 1aab8729fa
6 changed files with 6 additions and 6 deletions

View file

@ -3,7 +3,7 @@ using System.Net;
using System.Net.Http;
using System.Windows.Data;
using Microsoft.Web.WebView2.Core;
using VideoDownloader.App.Detection;
using VideoDownloader.Core.Detection;
using VideoDownloader.App.ViewModels;
using VideoDownloader.Core.Config;
using VideoDownloader.Core.Dash;

View file

@ -12,7 +12,7 @@ using Microsoft.Web.WebView2.Core;
using VideoDownloader.App.Browser;
using VideoDownloader.App.Browser.Tabs;
using VideoDownloader.App.Core;
using VideoDownloader.App.Detection;
using VideoDownloader.Core.Detection;
using VideoDownloader.App.ViewModels;
using VideoDownloader.Core.Config;
using Wv2 = Microsoft.Web.WebView2.Wpf;

View file

@ -1,7 +1,7 @@
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Runtime.CompilerServices;
using VideoDownloader.App.Detection;
using VideoDownloader.Core.Detection;
using VideoDownloader.Core.Social;
namespace VideoDownloader.App.ViewModels;

View file

@ -1,4 +1,4 @@
namespace VideoDownloader.App.Detection;
namespace VideoDownloader.Core.Detection;
public enum MediaKind { Hls, Dash, Direct, Social }

View file

@ -1,6 +1,6 @@
using VideoDownloader.Core.Config;
namespace VideoDownloader.App.Detection;
namespace VideoDownloader.Core.Detection;
/// <summary>요청(URL + content-type + 길이)과 설정으로 미디어 종류를 판정.</summary>
public static class MediaDetector

View file

@ -1,6 +1,6 @@
using System.Text.RegularExpressions;
namespace VideoDownloader.App.Detection;
namespace VideoDownloader.Core.Detection;
/// <summary>
/// 소셜 영상 페이지(YouTube/Shorts/Instagram/X/TikTok/Facebook) 판별 + URL 정규화.