-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from Anime-Manga/dev
## [2.0.2] - 16-10-2023
- Loading branch information
Showing
25 changed files
with
339 additions
and
178 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,12 +19,12 @@ jobs: | |
id: meta | ||
uses: docker/[email protected] | ||
with: | ||
images: ${{ secrets.DOCKER_USER }}/animemanga-conversionservice:1.0.1 | ||
images: ${{ secrets.DOCKER_USER }}/animemanga-conversionservice:2.0.2 | ||
|
||
- name: Build the Docker image Conversion Service | ||
uses: docker/build-push-action@v3 | ||
with: | ||
context: . | ||
file: Dockerfile | ||
push: true | ||
tags: ${{ secrets.DOCKER_USER }}/animemanga-conversionservice:1.0.1, ${{ secrets.DOCKER_USER }}/animemanga-conversionservice:latest | ||
tags: ${{ secrets.DOCKER_USER }}/animemanga-conversionservice:2.0.2, ${{ secrets.DOCKER_USER }}/animemanga-conversionservice:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 0 additions & 10 deletions
10
src/references/Cesxhin.AnimeManga.Domain/DTO/DiskSpaceDTO.cs
This file was deleted.
Oops, something went wrong.
33 changes: 33 additions & 0 deletions
33
src/references/Cesxhin.AnimeManga.Domain/DTO/GenericBlackListDTO.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using Cesxhin.AnimeManga.Domain.Models; | ||
|
||
namespace Cesxhin.AnimeManga.Domain.DTO | ||
{ | ||
public class GenericBlackListDTO | ||
{ | ||
public string Name { get; set; } | ||
public string Url { get; set; } | ||
public string NameCfg { get; set; } | ||
|
||
//convert EpisodeBlackList to GenericBlackListDTO | ||
public static GenericBlackListDTO EpisodeBlackListToGenericBlackListDTO(EpisodeBlacklist auth) | ||
{ | ||
return new GenericBlackListDTO | ||
{ | ||
Name = auth.Name, | ||
Url = auth.Url, | ||
NameCfg = auth.NameCfg, | ||
}; | ||
} | ||
|
||
//convert ChapterBlackList to GenericBlackListDTO | ||
public static GenericBlackListDTO ChapterBlackListToGenericBlackListDTO(ChapterBlacklist auth) | ||
{ | ||
return new GenericBlackListDTO | ||
{ | ||
Name = auth.Name, | ||
Url = auth.Url, | ||
NameCfg = auth.NameCfg, | ||
}; | ||
} | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
src/references/Cesxhin.AnimeManga.Domain/DTO/GenericQueueDTO.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
using Cesxhin.AnimeManga.Domain.Models; | ||
using System; | ||
|
||
namespace Cesxhin.AnimeManga.Domain.DTO | ||
{ | ||
public class GenericQueueDTO | ||
{ | ||
public string Name { get; set; } | ||
public string Url { get; set; } | ||
public string NameCfg { get; set; } | ||
public long TimeRequest { get; set; } = ((DateTimeOffset)DateTime.UtcNow).ToUnixTimeMilliseconds(); | ||
|
||
//convert ChapterQueue to GenericQueueDTO | ||
public static GenericQueueDTO ChapterQueueToGenericQueueDTO(ChapterQueue queue) | ||
{ | ||
return new GenericQueueDTO | ||
{ | ||
Name = queue.Name, | ||
Url = queue.Url, | ||
NameCfg = queue.NameCfg, | ||
TimeRequest = queue.TimeRequest | ||
}; | ||
} | ||
|
||
//convert EpisodeQueue to GenericQueueDTO | ||
public static GenericQueueDTO EpisodeQueueToGenericQueueDTO(EpisodeQueue queue) | ||
{ | ||
return new GenericQueueDTO | ||
{ | ||
Name = queue.Name, | ||
Url = queue.Url, | ||
NameCfg = queue.NameCfg, | ||
TimeRequest = queue.TimeRequest | ||
}; | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...esxhin.AnimeManga.Domain/DTO/NotifyDTO.cs → ...n.AnimeManga.Domain/DTO/NotifyAnimeDTO.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
src/references/Cesxhin.AnimeManga.Domain/DTO/NotifyMangaDTO.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace Cesxhin.AnimeManga.Domain.DTO | ||
{ | ||
public class NotifyMangaDTO | ||
{ | ||
public string Message { get; set; } | ||
public string Image { get; set; } | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
src/references/Cesxhin.AnimeManga.Domain/DTO/NotifyRequestAnimeDTO.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace Cesxhin.AnimeManga.Domain.DTO | ||
{ | ||
public class NotifyRequestAnimeDTO | ||
{ | ||
public string Message { get; set; } | ||
public string Image { get; set; } | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
src/references/Cesxhin.AnimeManga.Domain/DTO/NotifyRequestMangaDTO.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace Cesxhin.AnimeManga.Domain.DTO | ||
{ | ||
public class NotifyRequestMangaDTO | ||
{ | ||
public string Message { get; set; } | ||
public string Image { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace Cesxhin.AnimeManga.Domain.DTO | ||
{ | ||
public class ProxyDTO | ||
{ | ||
public string Action { get; set; } = "restart"; | ||
public string Endpoint { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
src/references/Cesxhin.AnimeManga.Domain/Models/ChapterBlacklist.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using Cesxhin.AnimeManga.Domain.DTO; | ||
using RepoDb.Attributes; | ||
|
||
namespace Cesxhin.AnimeManga.Domain.Models | ||
{ | ||
[Map("chapterblacklist")] | ||
public class ChapterBlacklist | ||
{ | ||
[Primary] | ||
[Map("namemanga")] | ||
public string Name { get; set; } | ||
|
||
[Map("url")] | ||
public string Url { get; set; } | ||
|
||
[Primary] | ||
[Map("namecfg")] | ||
public string NameCfg { get; set; } | ||
|
||
//convert GenericBlackListDTO to ChapterBlacklist | ||
public static ChapterBlacklist GenericQueueDTOToChapterBlacklist(GenericBlackListDTO blackList) | ||
{ | ||
return new ChapterBlacklist | ||
{ | ||
Url = blackList.Url, | ||
NameCfg = blackList.NameCfg, | ||
Name = blackList.Name | ||
}; | ||
} | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
src/references/Cesxhin.AnimeManga.Domain/Models/ChapterQueue.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
using Cesxhin.AnimeManga.Domain.DTO; | ||
using RepoDb.Attributes; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Cesxhin.AnimeManga.Domain.Models | ||
{ | ||
[Map("chapterqueue")] | ||
public class ChapterQueue | ||
{ | ||
[Primary] | ||
[Map("namemanga")] | ||
public string Name { get; set; } | ||
|
||
[Primary] | ||
[Map("url")] | ||
public string Url { get; set; } | ||
|
||
[Primary] | ||
[Map("namecfg")] | ||
public string NameCfg { get; set; } | ||
|
||
[Map("timerequest")] | ||
public long TimeRequest { get; set; } | ||
|
||
|
||
//convert GenericQueueDTO to ChapterQueue | ||
public static ChapterQueue GenericQueueDTOToChapterQueue(GenericQueueDTO queue) | ||
{ | ||
return new ChapterQueue | ||
{ | ||
Name = queue.Name, | ||
Url = queue.Url, | ||
NameCfg = queue.NameCfg, | ||
TimeRequest = queue.TimeRequest | ||
}; | ||
} | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
src/references/Cesxhin.AnimeManga.Domain/Models/EpisodeBlacklist.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using Cesxhin.AnimeManga.Domain.DTO; | ||
using RepoDb.Attributes; | ||
|
||
namespace Cesxhin.AnimeManga.Domain.Models | ||
{ | ||
[Map("episodeblacklist")] | ||
public class EpisodeBlacklist | ||
{ | ||
[Primary] | ||
[Map("videoid")] | ||
public string Name { get; set; } | ||
|
||
[Map("url")] | ||
public string Url { get; set; } | ||
|
||
[Primary] | ||
[Map("namecfg")] | ||
public string NameCfg { get; set; } | ||
|
||
//convert GenericBlackListDTO to EpisodeBlacklist | ||
public static EpisodeBlacklist GenericQueueDTOToEpisodeBlacklist(GenericBlackListDTO blackList) | ||
{ | ||
return new EpisodeBlacklist | ||
{ | ||
Url = blackList.Url, | ||
NameCfg = blackList.NameCfg, | ||
Name = blackList.Name | ||
}; | ||
} | ||
} | ||
} |
Oops, something went wrong.