mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-07-09 03:04:20 -04:00
Changing a few things.
This commit is contained in:
parent
d99c3f0e08
commit
2c1ec1812a
@ -18,7 +18,7 @@ constexpr enum AVRounding operator |(const enum AVRounding a, const enum AVRound
|
|||||||
|
|
||||||
int Init()
|
int Init()
|
||||||
{
|
{
|
||||||
return 42;
|
return sizeof(Stream);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -83,7 +83,8 @@ namespace Kyoo.InternalAPI.ThumbnailsManager
|
|||||||
|
|
||||||
public Episode Validate(Episode episode)
|
public Episode Validate(Episode episode)
|
||||||
{
|
{
|
||||||
string localThumb = Path.ChangeExtension(episode.Path, "jpg");
|
//string localThumb = Path.ChangeExtension(episode.Path, "jpg");
|
||||||
|
string localThumb = episode.Path.Replace(Path.GetExtension(episode.Path), "-thumb.jpg");
|
||||||
if (!File.Exists(localThumb))
|
if (!File.Exists(localThumb))
|
||||||
{
|
{
|
||||||
using (WebClient client = new WebClient())
|
using (WebClient client = new WebClient())
|
||||||
|
@ -4,6 +4,7 @@ using Microsoft.AspNetCore.Http;
|
|||||||
using Microsoft.Extensions.Configuration;
|
using Microsoft.Extensions.Configuration;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace Kyoo.InternalAPI
|
namespace Kyoo.InternalAPI
|
||||||
@ -16,7 +17,7 @@ namespace Kyoo.InternalAPI
|
|||||||
{
|
{
|
||||||
tempPath = config.GetValue<string>("tempPath");
|
tempPath = config.GetValue<string>("tempPath");
|
||||||
|
|
||||||
Debug.WriteLine("&Api INIT: " + TranscoderAPI.Init());
|
Debug.WriteLine("&Api INIT (unmanaged stream size): " + TranscoderAPI.Init() + ", Stream size: " + Marshal.SizeOf<Models.Watch.Stream>());
|
||||||
}
|
}
|
||||||
|
|
||||||
public Track[] ExtractSubtitles(string path)
|
public Track[] ExtractSubtitles(string path)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user