Cleaning up more the standard output

This commit is contained in:
Zoe Roux 2020-01-26 22:44:46 +01:00
parent e100bb49d8
commit 634023834a
2 changed files with 5 additions and 4 deletions

View File

@ -104,7 +104,7 @@ namespace Kyoo.Controllers
bool episodeSucess = long.TryParse(match.Groups["Episode"].Value, out long episodeNumber);
long absoluteNumber = -1;
Console.WriteLine("&Registering episode at: " + path);
Console.WriteLine("Registering episode at: " + path);
if (!seasonSuccess || !episodeSucess)
{
//Considering that the episode is using absolute path.

View File

@ -1,5 +1,6 @@
using System;
using System.Diagnostics;
using System.Linq;
using System.Runtime.InteropServices;
using Kyoo.Models;
using Kyoo.Models.Watch;
@ -59,7 +60,7 @@ namespace Kyoo.Controllers.TranscoderLink
tracks = new Track[0];
free(ptr);
Console.WriteLine(tracks.Length + " tracks got at: " + path);
Console.WriteLine($"\t {tracks.Length} non subtitles tracks got at: {path}");
}
public static void ExtractSubtitles(string path, string outPath, out Track[] tracks)
@ -85,10 +86,10 @@ namespace Kyoo.Controllers.TranscoderLink
}
}
else
tracks = null;
tracks = new Track[0];
free(ptr);
Console.WriteLine("&" + tracks?.Length + " tracks got at: " + path);
Console.WriteLine($"\t{tracks.Count(x => x.Type == StreamType.Subtitle)} subtitles got at: {path}");
}
}
}