mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-07-09 03:04:20 -04:00
Cleaning up more the standard output
This commit is contained in:
parent
e100bb49d8
commit
634023834a
@ -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.
|
||||||
|
@ -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}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user