Changing a few things.

This commit is contained in:
Zoe Roux 2019-09-25 23:53:31 +02:00
parent d99c3f0e08
commit 2c1ec1812a
3 changed files with 5 additions and 3 deletions

View File

@ -18,7 +18,7 @@ constexpr enum AVRounding operator |(const enum AVRounding a, const enum AVRound
int Init()
{
return 42;
return sizeof(Stream);
}

View File

@ -83,7 +83,8 @@ namespace Kyoo.InternalAPI.ThumbnailsManager
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))
{
using (WebClient client = new WebClient())

View File

@ -4,6 +4,7 @@ using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Configuration;
using System.Diagnostics;
using System.IO;
using System.Runtime.InteropServices;
using System.Threading.Tasks;
namespace Kyoo.InternalAPI
@ -16,7 +17,7 @@ namespace Kyoo.InternalAPI
{
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)