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

View File

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