Skip to content

Commit

Permalink
refactor: rename scraper
Browse files Browse the repository at this point in the history
  • Loading branch information
iPromKnight committed Nov 16, 2024
1 parent a1544b5 commit 88af4fd
Show file tree
Hide file tree
Showing 25 changed files with 39 additions and 53 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ riderModule.iml
.DS_Store
.idea/

src/Zilean.DmmScraper/python/
src/Zilean.Scraper/python/
25 changes: 0 additions & 25 deletions .run/Zilean.DmmScraper.run.xml

This file was deleted.

2 changes: 1 addition & 1 deletion Zilean.sln
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "github", "github", "{CF4C96
.github\workflows\cicd.yaml = .github\workflows\cicd.yaml
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Zilean.DmmScraper", "src\Zilean.DmmScraper\Zilean.DmmScraper.csproj", "{192B767E-7CFA-4F72-A9CA-35BE2CEE46FD}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Zilean.Scraper", "src\Zilean.Scraper\Zilean.Scraper.csproj", "{192B767E-7CFA-4F72-A9CA-35BE2CEE46FD}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Zilean.Shared", "src\Zilean.Shared\Zilean.Shared.csproj", "{85F3D012-6CA4-43D3-A08F-0A93FA739F46}"
EndProject
Expand Down
2 changes: 1 addition & 1 deletion src/Zilean.Benchmarks/Benchmarks/PythonParsing.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Zilean.DmmScraper.Features.PythonSupport;
using Zilean.Scraper.Features.PythonSupport;

namespace Zilean.Benchmarks.Benchmarks;

Expand Down
2 changes: 1 addition & 1 deletion src/Zilean.Benchmarks/Zilean.Benchmarks.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Zilean.DmmScraper\Zilean.DmmScraper.csproj" />
<ProjectReference Include="..\Zilean.Scraper\Zilean.Scraper.csproj" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
namespace Zilean.DmmScraper.Features.Bootstrapping;
using Zilean.Scraper.Features.Dmm;
using Zilean.Scraper.Features.Imdb;
using Zilean.Scraper.Features.PythonSupport;

namespace Zilean.Scraper.Features.Bootstrapping;

public static class ServiceCollectionExtensions
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
namespace Zilean.DmmScraper.Features.Bootstrapping;
using Zilean.Scraper.Features.Dmm;
using Zilean.Scraper.Features.Imdb;

namespace Zilean.Scraper.Features.Bootstrapping;

public class ServiceLifetime(ImdbMetadataLoader metadataLoader, DmmScraping dmmScraper, IServiceProvider serviceProvider, ILogger<ServiceLifetime> logger, ZileanConfiguration configuration) : IHostedLifecycleService
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Zilean.DmmScraper.Features.Dmm;
namespace Zilean.Scraper.Features.Dmm;

public class DmmFileDownloader(ILogger<DmmFileDownloader> logger, ZileanConfiguration configuration)
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
namespace Zilean.DmmScraper.Features.Dmm;
using Zilean.Scraper.Features.LzString;

namespace Zilean.Scraper.Features.Dmm;

public partial class DmmPageProcessor(DmmSyncState state)
: IDisposable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
namespace Zilean.DmmScraper.Features.Dmm;
using Zilean.Scraper.Features.PythonSupport;

namespace Zilean.Scraper.Features.Dmm;

public class DmmScraping(
DmmSyncState dmmState,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Zilean.DmmScraper.Features.Dmm;
namespace Zilean.Scraper.Features.Dmm;

public class DmmSyncState(ILogger<DmmSyncState> logger, DmmService dmmService)
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Zilean.DmmScraper.Features.Imdb;
namespace Zilean.Scraper.Features.Imdb;

public class ImdbFileDownloader(ILogger<ImdbFileDownloader> logger)
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Zilean.DmmScraper.Features.Imdb;
namespace Zilean.Scraper.Features.Imdb;

public static class ImdbFileExtensions
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Zilean.DmmScraper.Features.Imdb;
namespace Zilean.Scraper.Features.Imdb;

public class ImdbFileProcessor(ILogger<ImdbFileProcessor> logger, IImdbFileService imdbFileService)
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Zilean.DmmScraper.Features.Imdb;
namespace Zilean.Scraper.Features.Imdb;

public class ImdbMetadataLoader(ImdbFileDownloader downloader, ImdbFileProcessor processor, ILogger<ImdbMetadataLoader> logger, ImdbFileService imdbFileService)
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Zilean.DmmScraper.Features.LzString;
namespace Zilean.Scraper.Features.LzString;

public class Decompressor
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Zilean.DmmScraper.Features.LzString;
namespace Zilean.Scraper.Features.LzString;

public static class StringBuilderCache
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Zilean.DmmScraper.Features.PythonSupport;
namespace Zilean.Scraper.Features.PythonSupport;

public class ParseTorrentNameService
{
Expand All @@ -24,7 +24,7 @@ from loguru import logger
custom_format = (
"[{time:HH:mm:ss}] | "
f"{light_blue}{{level}}{reset} | "
f"{light_green}\"Zilean.DmmScraper.Features.Python.ParseTorrentNameService\"{reset} | "
f"{light_green}\"Zilean.Scraper.Features.Python.ParseTorrentNameService\"{reset} | "
"{message}"
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
namespace Zilean.DmmScraper.Features.PythonSupport;
namespace Zilean.Scraper.Features.PythonSupport;

public record ParseTorrentTitleResponse(bool Success, TorrentInfo? Response);
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Zilean.DmmScraper.Features.PythonSupport;
namespace Zilean.Scraper.Features.PythonSupport;

public static class PyObjectExtensions
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
global using Zilean.Database;
global using Zilean.Database.Bootstrapping;
global using Zilean.Database.Services;
global using Zilean.DmmScraper.Features.Bootstrapping;
global using Zilean.DmmScraper.Features.Dmm;
global using Zilean.DmmScraper.Features.Imdb;
global using Zilean.DmmScraper.Features.LzString;
global using Zilean.DmmScraper.Features.PythonSupport;
global using Zilean.Scraper.Features.Bootstrapping;
global using Zilean.Scraper.Features.Dmm;
global using Zilean.Scraper.Features.Imdb;
global using Zilean.Scraper.Features.LzString;
global using Zilean.Scraper.Features.PythonSupport;
global using Zilean.Shared.Extensions;
global using Zilean.Shared.Features.Configuration;
global using Zilean.Shared.Features.Dmm;
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions tests/Zilean.Tests/GlobalUsings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
global using NSubstitute;
global using Testcontainers.PostgreSql;
global using Xunit.Abstractions;
global using Zilean.DmmScraper.Features.Imdb;
global using Zilean.DmmScraper.Features.PythonSupport;
global using Zilean.Scraper.Features.Imdb;
global using Zilean.Scraper.Features.PythonSupport;
global using Zilean.Shared.Features.Configuration;
global using Zilean.Shared.Features.Dmm;
global using Zilean.Shared.Features.Imdb;
Expand Down
2 changes: 1 addition & 1 deletion tests/Zilean.Tests/Zilean.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\Zilean.DmmScraper\Zilean.DmmScraper.csproj" />
<ProjectReference Include="..\..\src\Zilean.Scraper\Zilean.Scraper.csproj" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit 88af4fd

Please sign in to comment.