forked from 91270/MeiamSubtitles
-
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
13 changed files
with
809 additions
and
1 deletion.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
Jellyfin.MeiamSub.Shooter/Configuration/PluginConfiguration.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,12 @@ | ||
using MediaBrowser.Model.Plugins; | ||
|
||
namespace Jellyfin.MeiamSub.Shooter.Configuration | ||
{ | ||
/// <summary> | ||
/// Plugin configuration. | ||
/// </summary> | ||
public class PluginConfiguration : BasePluginConfiguration | ||
{ | ||
|
||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
Jellyfin.MeiamSub.Shooter/Jellyfin.MeiamSub.Shooter.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,11 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net5.0</TargetFramework> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Jellyfin.Controller" Version="10.7.7" /> | ||
</ItemGroup> | ||
|
||
</Project> |
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,15 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace Jellyfin.MeiamSub.Shooter.Model | ||
{ | ||
public class DownloadSubInfo | ||
{ | ||
public string Url { get; set; } | ||
public string Format { get; set; } | ||
public string Language { get; set; } | ||
public string TwoLetterISOLanguageName { get; set; } | ||
public bool? IsForced { 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,19 @@ | ||
using System.Collections.Generic; | ||
using System.Runtime.Serialization; | ||
|
||
namespace Jellyfin.MeiamSub.Shooter.Model | ||
{ | ||
public class SubtitleResponseRoot | ||
{ | ||
public string Desc { get; set; } | ||
public int Delay { get; set; } | ||
public SubFileInfo[] Files { get; set; } | ||
} | ||
|
||
public class SubFileInfo | ||
{ | ||
public string Ext { get; set; } | ||
public string Link { 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,41 @@ | ||
using Jellyfin.MeiamSub.Shooter.Configuration; | ||
using MediaBrowser.Common.Configuration; | ||
using MediaBrowser.Common.Plugins; | ||
using MediaBrowser.Model.Drawing; | ||
using MediaBrowser.Model.Serialization; | ||
using System; | ||
using System.IO; | ||
|
||
namespace Jellyfin.MeiamSub.Shooter | ||
{ | ||
|
||
/// <summary> | ||
/// 插件入口 | ||
/// </summary> | ||
public class Plugin : BasePlugin<PluginConfiguration> | ||
{ | ||
/// <summary> | ||
/// 插件ID | ||
/// </summary> | ||
public override Guid Id => new Guid("038D37A2-7A1E-4C01-9B6D-AA215D29AB4C"); | ||
|
||
/// <summary> | ||
/// 插件名称 | ||
/// </summary> | ||
public override string Name => "MeiamSub.Shooter"; | ||
|
||
/// <summary> | ||
/// 插件描述 | ||
/// </summary> | ||
public override string Description => "Download subtitles from Shooter"; | ||
|
||
public Plugin(IApplicationPaths applicationPaths, IXmlSerializer xmlSerializer) | ||
: base(applicationPaths, xmlSerializer) | ||
{ | ||
Instance = this; | ||
} | ||
|
||
public static Plugin Instance { get; private set; } | ||
|
||
} | ||
} |
Oops, something went wrong.