From 2da59382a38cda361df7a58a2d903cc505b72377 Mon Sep 17 00:00:00 2001 From: Mateusz Skoczek Date: Sun, 3 Mar 2024 13:59:13 +0100 Subject: [PATCH] source search refactoring --- .../ISourceSearchService.cs | 10 --- .../VDownload.Sources.Common/SearchRegex.cs | 12 ++- .../SearchRegexPlaylist.cs | 13 +++ .../SearchRegexVideo.cs | 14 ++++ .../SourceSearchService.cs | 65 +++++++++++++++ .../TwitchSearchService.cs | 82 +++++++------------ .../VDownload.Sources/SearchService.cs | 2 +- 7 files changed, 130 insertions(+), 68 deletions(-) delete mode 100644 VDownload.Sources/VDownload.Sources.Common/ISourceSearchService.cs create mode 100644 VDownload.Sources/VDownload.Sources.Common/SearchRegexPlaylist.cs create mode 100644 VDownload.Sources/VDownload.Sources.Common/SearchRegexVideo.cs create mode 100644 VDownload.Sources/VDownload.Sources.Common/SourceSearchService.cs diff --git a/VDownload.Sources/VDownload.Sources.Common/ISourceSearchService.cs b/VDownload.Sources/VDownload.Sources.Common/ISourceSearchService.cs deleted file mode 100644 index 8a26080..0000000 --- a/VDownload.Sources/VDownload.Sources.Common/ISourceSearchService.cs +++ /dev/null @@ -1,10 +0,0 @@ -using VDownload.Models; - -namespace VDownload.Sources.Common -{ - public interface ISourceSearchService - { - Task