Skip to content

Commit

Permalink
Fix local metadata exiting if file already exists (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryan792 authored May 23, 2024
1 parent 9a76b15 commit 80631d4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public Task<MetadataResult<T>> GetMetadata(ItemInfo info, IDirectoryService dire
_logger.LogDebug("YTLocal GetMetadata: {Path}", info.Path);
var result = new MetadataResult<T>();
var infoFile = Path.ChangeExtension(info.Path, "info.json");
if (File.Exists(infoFile))
if (!File.Exists(infoFile))
{
return Task.FromResult(result);
}
Expand Down

0 comments on commit 80631d4

Please sign in to comment.