-
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.
- Loading branch information
Showing
41 changed files
with
828 additions
and
498 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="Publish linux arm64" type="DotNetFolderPublish" factoryName="Publish to folder"> | ||
<riderPublish configuration="Release" platform="Any CPU" runtime="linux-arm64" self_contained="true" target_folder="$PROJECT_DIR$/src/EthernaVideoImporter/bin/Release/net8.0/linux-arm64/publish" target_framework="net8.0" uuid_high="7733598048098471660" uuid_low="-6828675579183111726" /> | ||
<method v="2" /> | ||
</configuration> | ||
</component> |
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,6 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="Publish linux x64" type="DotNetFolderPublish" factoryName="Publish to folder"> | ||
<riderPublish configuration="Release" platform="Any CPU" runtime="linux-x64" self_contained="true" target_folder="$PROJECT_DIR$/src/EthernaVideoImporter/bin/Release/net8.0/linux-x64/publish" target_framework="net8.0" uuid_high="7733598048098471660" uuid_low="-6828675579183111726" /> | ||
<method v="2" /> | ||
</configuration> | ||
</component> |
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,6 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="Publish osx x64" type="DotNetFolderPublish" factoryName="Publish to folder"> | ||
<riderPublish configuration="Release" platform="Any CPU" runtime="osx-x64" self_contained="true" target_folder="$PROJECT_DIR$/src/EthernaVideoImporter/bin/Release/net8.0/osx-x64/publish" target_framework="net8.0" uuid_high="7733598048098471660" uuid_low="-6828675579183111726" /> | ||
<method v="2" /> | ||
</configuration> | ||
</component> |
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,6 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="Publish win x64" type="DotNetFolderPublish" factoryName="Publish to folder"> | ||
<riderPublish configuration="Release" platform="Any CPU" runtime="win-x64" self_contained="true" target_folder="$PROJECT_DIR$/src/EthernaVideoImporter/bin/Release/net8.0/win-x64/publish" target_framework="net8.0" uuid_high="7733598048098471660" uuid_low="-6828675579183111726" /> | ||
<method v="2" /> | ||
</configuration> | ||
</component> |
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
22 changes: 22 additions & 0 deletions
22
src/EthernaVideoImporter.Core/Models/Domain/Directories/ChunksDirectory.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,22 @@ | ||
// Copyright 2022-present Etherna SA | ||
// This file is part of Etherna Video Importer. | ||
// | ||
// Etherna Video Importer is free software: you can redistribute it and/or modify it under the terms of the | ||
// GNU Affero General Public License as published by the Free Software Foundation, | ||
// either version 3 of the License, or (at your option) any later version. | ||
// | ||
// Etherna Video Importer is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; | ||
// without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
// See the GNU Affero General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU Affero General Public License along with Etherna Video Importer. | ||
// If not, see <https://www.gnu.org/licenses/>. | ||
|
||
namespace Etherna.VideoImporter.Core.Models.Domain.Directories | ||
{ | ||
public class ChunksDirectory(string parentDirPath) | ||
: DirectoryBase(parentDirPath, DirName) | ||
{ | ||
public const string DirName = "chunks"; | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
src/EthernaVideoImporter.Core/Models/Domain/Directories/DirectoryBase.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 @@ | ||
// Copyright 2022-present Etherna SA | ||
// This file is part of Etherna Video Importer. | ||
// | ||
// Etherna Video Importer is free software: you can redistribute it and/or modify it under the terms of the | ||
// GNU Affero General Public License as published by the Free Software Foundation, | ||
// either version 3 of the License, or (at your option) any later version. | ||
// | ||
// Etherna Video Importer is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; | ||
// without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
// See the GNU Affero General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU Affero General Public License along with Etherna Video Importer. | ||
// If not, see <https://www.gnu.org/licenses/>. | ||
|
||
using System.IO; | ||
|
||
namespace Etherna.VideoImporter.Core.Models.Domain.Directories | ||
{ | ||
public abstract class DirectoryBase(string dirPath) | ||
{ | ||
// Constructors. | ||
protected DirectoryBase(string parentDirPath, string dirName) | ||
: this(Path.Combine(parentDirPath, dirName)) | ||
{ } | ||
|
||
// Properties. | ||
public string DirPath { get; } = dirPath; | ||
|
||
// Methods. | ||
public DirectoryInfo CreateDirectory() => | ||
Directory.CreateDirectory(DirPath); | ||
|
||
public void Delete() => Directory.Delete(DirPath, true); | ||
|
||
public bool Exists() => Directory.Exists(DirPath); | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
src/EthernaVideoImporter.Core/Models/Domain/Directories/EncodedDirectory.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,38 @@ | ||
// Copyright 2022-present Etherna SA | ||
// This file is part of Etherna Video Importer. | ||
// | ||
// Etherna Video Importer is free software: you can redistribute it and/or modify it under the terms of the | ||
// GNU Affero General Public License as published by the Free Software Foundation, | ||
// either version 3 of the License, or (at your option) any later version. | ||
// | ||
// Etherna Video Importer is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; | ||
// without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
// See the GNU Affero General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU Affero General Public License along with Etherna Video Importer. | ||
// If not, see <https://www.gnu.org/licenses/>. | ||
|
||
using System.IO; | ||
|
||
namespace Etherna.VideoImporter.Core.Models.Domain.Directories | ||
{ | ||
public class EncodedDirectory : DirectoryBase | ||
{ | ||
// Consts. | ||
public const string DirName = "encoded"; | ||
|
||
// Constructor. | ||
public EncodedDirectory(string parentDirPath) | ||
: base(parentDirPath, DirName) | ||
{ | ||
SubtitlesDir = new(DirPath); | ||
ThumbnailDir = new(DirPath); | ||
VideoDir = new(DirPath); | ||
} | ||
|
||
// Properties. | ||
public EncodedSubtitlesDirectory SubtitlesDir { get; } | ||
public EncodedThumbnailDirectory ThumbnailDir { get; } | ||
public EncodedVideoDirectory VideoDir { get; } | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
src/EthernaVideoImporter.Core/Models/Domain/Directories/EncodedSubtitlesDirectory.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,22 @@ | ||
// Copyright 2022-present Etherna SA | ||
// This file is part of Etherna Video Importer. | ||
// | ||
// Etherna Video Importer is free software: you can redistribute it and/or modify it under the terms of the | ||
// GNU Affero General Public License as published by the Free Software Foundation, | ||
// either version 3 of the License, or (at your option) any later version. | ||
// | ||
// Etherna Video Importer is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; | ||
// without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
// See the GNU Affero General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU Affero General Public License along with Etherna Video Importer. | ||
// If not, see <https://www.gnu.org/licenses/>. | ||
|
||
namespace Etherna.VideoImporter.Core.Models.Domain.Directories | ||
{ | ||
public class EncodedSubtitlesDirectory(string parentDirPath) | ||
: DirectoryBase(parentDirPath, DirName) | ||
{ | ||
public const string DirName = "subs"; | ||
} | ||
} |
Oops, something went wrong.