File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ enum Extensions {
2929 Partial = ".partial" ,
3030 NFO = ".nfo" ,
3131 Thumbnail = ".png" ,
32+ Caption = ".vtt" ,
3233}
3334
3435export class Attachment implements AttachmentAttributes {
@@ -125,7 +126,12 @@ export class Attachment implements AttachmentAttributes {
125126
126127 const filesInDir = await readdir ( fileDir ) ;
127128 const matchingFile = filesInDir . find (
128- ( file ) => file . startsWith ( fileName ) && ! file . endsWith ( Extensions . NFO ) && ! file . endsWith ( Extensions . Partial ) && ! file . endsWith ( Extensions . Muxed )
129+ ( file ) =>
130+ file . startsWith ( fileName ) &&
131+ ! file . endsWith ( Extensions . NFO ) &&
132+ ! file . endsWith ( Extensions . Partial ) &&
133+ ! file . endsWith ( Extensions . Muxed ) &&
134+ ! file . endsWith ( Extensions . Caption )
129135 ) ;
130136 if ( matchingFile ) return extname ( matchingFile ) ;
131137 return undefined ;
You can’t perform that action at this time.
0 commit comments