-
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 #8 from Etherna/epic/EVI-22-MultiProjects
Epic/evi 22 multi projects
- Loading branch information
Showing
60 changed files
with
2,402 additions
and
1,680 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ Etherna Video Importer | |
Overview | ||
-------- | ||
|
||
Tool for import video from CSV data. | ||
Tool to import videos on Etherna from different sources. | ||
|
||
Issue reports | ||
------------- | ||
|
@@ -17,39 +17,3 @@ Questions? Problems? | |
--------------------- | ||
|
||
For questions or problems please write an email to [[email protected]](mailto:[email protected]). | ||
|
||
Libraries | ||
--------------------- | ||
|
||
### [VideoLibrary](https://github.com/omansak/libvideo) | ||
|
||
<details> | ||
<summary>BSD 2-Clause "Simplified" License</summary> | ||
|
||
BSD 2-Clause License | ||
|
||
Copyright (c) 2021, OMANSAK | ||
All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are met: | ||
|
||
* Redistributions of source code must retain the above copyright notice, this | ||
list of conditions and the following disclaimer. | ||
|
||
* Redistributions in binary form must reproduce the above copyright notice, | ||
this list of conditions and the following disclaimer in the documentation | ||
and/or other materials provided with the distribution. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE | ||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | ||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER | ||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | ||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
|
||
</details> |
17 changes: 0 additions & 17 deletions
17
src/EthernaVideoImporter.CommonData/EthernaVideoImporter.CommonData.csproj
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
src/EthernaVideoImporter.CommonData/Interfaces/IDownloadClient.cs
This file was deleted.
Oops, something went wrong.
27 changes: 0 additions & 27 deletions
27
src/EthernaVideoImporter.CommonData/Models/SourceVideoInfo.cs
This file was deleted.
Oops, something went wrong.
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,24 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace Etherna.VideoImporter.Core.Dtos | ||
{ | ||
public sealed class MetadataImageInput | ||
{ | ||
// Constructors. | ||
public MetadataImageInput( | ||
float aspectRatio, | ||
string blurhash, | ||
IDictionary<string, string> sources) | ||
{ | ||
AspectRatio = aspectRatio; | ||
Blurhash = blurhash; | ||
Sources = sources; | ||
} | ||
|
||
// Properties. | ||
public float AspectRatio { get; set; } | ||
public string Blurhash { get; set; } | ||
public IDictionary<string, string> Sources { get; } | ||
public string V { get; } = "1.0"; | ||
} | ||
} |
49 changes: 49 additions & 0 deletions
49
src/EthernaVideoImporter.Core/Dtos/MetadataManifestInsertInput.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,49 @@ | ||
using Etherna.ServicesClient.Clients.Index; | ||
using System.Collections.Generic; | ||
|
||
namespace Etherna.VideoImporter.Core.Dtos | ||
{ | ||
public sealed class MetadataManifestInsertInput | ||
{ | ||
// Constructors. | ||
public MetadataManifestInsertInput( | ||
long createdAt, | ||
string ownerAddress, | ||
string? batchId, | ||
string? description, | ||
long? duration, | ||
string? originalQuality, | ||
string? personalData, | ||
MetadataImageInput? thumbnail, | ||
string? title, | ||
ICollection<SourceDto> sources) | ||
{ | ||
CreatedAt = createdAt; | ||
OwnerAddress = ownerAddress; | ||
BatchId = batchId; | ||
Description = description; | ||
Duration = duration; | ||
Hash = ""; | ||
OriginalQuality = originalQuality; | ||
PersonalData = personalData; | ||
Thumbnail = thumbnail; | ||
Title = title; | ||
Sources = sources ?? new List<SourceDto>(); | ||
} | ||
|
||
// Properties. | ||
public long CreatedAt { get; } | ||
public string? BatchId { get; } | ||
public string? Description { get; } | ||
public long? Duration { get; } | ||
public string Hash { get; } | ||
public string? OriginalQuality { get; } | ||
public string OwnerAddress { get; } | ||
public string? PersonalData { get; } | ||
public long? UpdatedAt { get; } | ||
public string V { get; } = "1.1"; | ||
public ICollection<SourceDto> Sources { get; } | ||
public MetadataImageInput? Thumbnail { get; } | ||
public string? Title { get; } | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
src/EthernaVideoImporter.Core/Dtos/MetadataPersonalDataDto.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 Etherna.VideoImporter.Core.Dtos | ||
{ | ||
public class MetadataPersonalDataDto | ||
{ | ||
public string VideoId { get; set; } = default!; | ||
public MetadataUploadMode Mode { get; set; } = default!; | ||
} | ||
} |
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,9 @@ | ||
namespace Etherna.VideoImporter.Core.Dtos | ||
{ | ||
public enum MetadataUploadMode | ||
{ | ||
DevconImporter, | ||
EthernaImporter, | ||
WebApp | ||
} | ||
} |
41 changes: 41 additions & 0 deletions
41
src/EthernaVideoImporter.Core/EthernaVideoImporter.Core.csproj
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,41 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net7.0</TargetFramework> | ||
<RootNamespace>Etherna.VideoImporter.Core</RootNamespace> | ||
|
||
<Authors>Etherna Sagl</Authors> | ||
<Description>A .Net console for upload video on Etherna</Description> | ||
|
||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> | ||
<Nullable>enable</Nullable> | ||
<EnableNETAnalyzers>true</EnableNETAnalyzers> | ||
<AnalysisMode>AllEnabledByDefault</AnalysisMode> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<Compile Remove="FFmpeg\**" /> | ||
<EmbeddedResource Remove="FFmpeg\**" /> | ||
<None Remove="FFmpeg\**" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Bee.Net" Version="0.2.0-alpha.127" /> | ||
<PackageReference Include="Blurhash.SkiaSharp" Version="2.0.0" /> | ||
<PackageReference Include="EthernaServicesClient" Version="0.3.0-alpha.59" /> | ||
<PackageReference Include="MimeTypes" Version="2.4.0"> | ||
<PrivateAssets>all</PrivateAssets> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
</PackageReference> | ||
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="7.0.2" /> | ||
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="7.0.0" /> | ||
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="7.0.0" /> | ||
<PackageReference Include="SkiaSharp.NativeAssets.Linux.NoDependencies" Version="2.88.3" /> | ||
<PackageReference Include="IdentityModel.OidcClient" Version="5.2.1" /> | ||
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="6.25.1" /> | ||
<PackageReference Include="YoutubeExplode" Version="6.2.5" /> | ||
<PackageReference Include="YoutubeExplode.Converter" Version="6.2.5" /> | ||
<FrameworkReference Include="Microsoft.AspNetCore.App" /> | ||
</ItemGroup> | ||
|
||
</Project> |
Oops, something went wrong.