refactor(1): move Detection (MediaDetector/SocialSiteDetector/DetectionContext) App->Core
This commit is contained in:
parent
b6b7fc341b
commit
1aab8729fa
6 changed files with 6 additions and 6 deletions
|
|
@ -3,7 +3,7 @@ using System.Net;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
using System.Windows.Data;
|
using System.Windows.Data;
|
||||||
using Microsoft.Web.WebView2.Core;
|
using Microsoft.Web.WebView2.Core;
|
||||||
using VideoDownloader.App.Detection;
|
using VideoDownloader.Core.Detection;
|
||||||
using VideoDownloader.App.ViewModels;
|
using VideoDownloader.App.ViewModels;
|
||||||
using VideoDownloader.Core.Config;
|
using VideoDownloader.Core.Config;
|
||||||
using VideoDownloader.Core.Dash;
|
using VideoDownloader.Core.Dash;
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ using Microsoft.Web.WebView2.Core;
|
||||||
using VideoDownloader.App.Browser;
|
using VideoDownloader.App.Browser;
|
||||||
using VideoDownloader.App.Browser.Tabs;
|
using VideoDownloader.App.Browser.Tabs;
|
||||||
using VideoDownloader.App.Core;
|
using VideoDownloader.App.Core;
|
||||||
using VideoDownloader.App.Detection;
|
using VideoDownloader.Core.Detection;
|
||||||
using VideoDownloader.App.ViewModels;
|
using VideoDownloader.App.ViewModels;
|
||||||
using VideoDownloader.Core.Config;
|
using VideoDownloader.Core.Config;
|
||||||
using Wv2 = Microsoft.Web.WebView2.Wpf;
|
using Wv2 = Microsoft.Web.WebView2.Wpf;
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
using System.Collections.ObjectModel;
|
using System.Collections.ObjectModel;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
using VideoDownloader.App.Detection;
|
using VideoDownloader.Core.Detection;
|
||||||
using VideoDownloader.Core.Social;
|
using VideoDownloader.Core.Social;
|
||||||
|
|
||||||
namespace VideoDownloader.App.ViewModels;
|
namespace VideoDownloader.App.ViewModels;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
namespace VideoDownloader.App.Detection;
|
namespace VideoDownloader.Core.Detection;
|
||||||
|
|
||||||
public enum MediaKind { Hls, Dash, Direct, Social }
|
public enum MediaKind { Hls, Dash, Direct, Social }
|
||||||
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
using VideoDownloader.Core.Config;
|
using VideoDownloader.Core.Config;
|
||||||
|
|
||||||
namespace VideoDownloader.App.Detection;
|
namespace VideoDownloader.Core.Detection;
|
||||||
|
|
||||||
/// <summary>요청(URL + content-type + 길이)과 설정으로 미디어 종류를 판정.</summary>
|
/// <summary>요청(URL + content-type + 길이)과 설정으로 미디어 종류를 판정.</summary>
|
||||||
public static class MediaDetector
|
public static class MediaDetector
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
|
|
||||||
namespace VideoDownloader.App.Detection;
|
namespace VideoDownloader.Core.Detection;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 소셜 영상 페이지(YouTube/Shorts/Instagram/X/TikTok/Facebook) 판별 + URL 정규화.
|
/// 소셜 영상 페이지(YouTube/Shorts/Instagram/X/TikTok/Facebook) 판별 + URL 정규화.
|
||||||
Loading…
Add table
Add a link
Reference in a new issue