Exemple #1
0
        public override string?GetMetadata(IFileSource.IFile file)
        {
            if (file.Path == null)
            {
                return(null);
            }

            using FileStream stream = new FileStream(file.Path, FileMode.Open);
            T tFile = this.Deserialize(stream);

            if (tFile.Author == null)
            {
                return(base.GetMetadata(file));
            }

            return(tFile.Author + " - " + base.GetMetadata(file));
        }
Exemple #2
0
 public virtual string?GetMetadata(IFileSource.IFile file)
 {
     return(this.Name);
 }