@@ -22,7 +22,7 @@ public class MediaFile
2222 public int FileCount ;
2323 public string Name ;
2424 public string SourcePath ;
25- public string TruePath ;
25+ public string ImportPath ;
2626 public string Format ;
2727 public string Title ;
2828 public string Language ;
@@ -65,7 +65,7 @@ public MediaFile(string path)
6565 File = new FileInfo ( path ) ;
6666 Name = File . Name ;
6767 SourcePath = File . FullName ;
68- TruePath = File . FullName ;
68+ ImportPath = File . FullName ;
6969 Format = File . Extension . Remove ( "." ) . ToUpper ( ) ;
7070 FileCount = 1 ;
7171 InputRate = new Fraction ( - 1 , 1 ) ;
@@ -82,7 +82,7 @@ private void PrepareFrameSeq()
8282 string seqPath = Path . Combine ( Paths . GetFrameSeqPath ( ) , CreationTime . ToString ( ) , "frames.concat" ) ;
8383 string chosenExt = IoUtils . GetUniqueExtensions ( SourcePath ) . FirstOrDefault ( ) ;
8484 int fileCount = FfmpegUtils . CreateConcatFile ( SourcePath , seqPath , new string [ ] { chosenExt } ) ;
85- TruePath = seqPath ;
85+ ImportPath = seqPath ;
8686 FileCount = fileCount ;
8787 Logger . Log ( $ "Created concat file with { fileCount } files.", true ) ;
8888 }
@@ -99,8 +99,8 @@ public async Task Initialize(bool progressBar = true)
9999
100100 try
101101 {
102- await LoadFormatInfo ( TruePath ) ;
103- AllStreams = await FfmpegUtils . GetStreams ( TruePath , progressBar , StreamCount , InputRate ) ;
102+ await LoadFormatInfo ( ImportPath ) ;
103+ AllStreams = await FfmpegUtils . GetStreams ( ImportPath , progressBar , StreamCount , InputRate ) ;
104104 VideoStreams = AllStreams . Where ( x => x . Type == Stream . StreamType . Video ) . Select ( x => ( VideoStream ) x ) . ToList ( ) ;
105105 AudioStreams = AllStreams . Where ( x => x . Type == Stream . StreamType . Audio ) . Select ( x => ( AudioStream ) x ) . ToList ( ) ;
106106 SubtitleStreams = AllStreams . Where ( x => x . Type == Stream . StreamType . Subtitle ) . Select ( x => ( SubtitleStream ) x ) . ToList ( ) ;
0 commit comments