更新
This commit is contained in:
parent
bb9ea8d059
commit
f494e63831
@ -1,7 +1,31 @@
|
||||
using BangumiRenamer;
|
||||
|
||||
var workspace = "C:/Users/15401/Proj/BangumiRenamer/PlayGround";
|
||||
Directory.SetCurrentDirectory(workspace);
|
||||
|
||||
var tmdbHelper = new TMDbHelper();
|
||||
await tmdbHelper.SendRequest();
|
||||
using System.Text;
|
||||
using System.Text.Json;
|
||||
|
||||
// var basePath = "\\\\192.168.31.10\\media\\downloads\\aria2\\";
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
// var files = Directory.GetFiles(basePath, "*.*", SearchOption.AllDirectories);
|
||||
//
|
||||
// files = files.Select(file => file.Replace(basePath, "").Replace("\\", "/")).ToArray();
|
||||
//
|
||||
// StringBuilder result = new StringBuilder();
|
||||
//
|
||||
// foreach (var file in files)
|
||||
// {
|
||||
// result.AppendLine(file);
|
||||
// }
|
||||
//
|
||||
// File.WriteAllText("files.txt", result.ToString());
|
||||
//
|
||||
//
|
||||
|
||||
var filePath = "Lie.To.Me.S02.1080p.WEBRip.x265-RARBG/Lie.To.Me.S02E20.1080p.WEBRip.x265-RARBG.mp4";
|
||||
|
||||
var dirPart = Path.GetDirectoryName(filePath);
|
||||
var namePart = Path.GetFileNameWithoutExtension(filePath);
|
||||
var extension = Path.GetExtension(filePath);
|
||||
|
||||
Console.Write(namePart);
|
Loading…
x
Reference in New Issue
Block a user