As the youtube-dl usually calculates the filename VIDEOTITLE-VIDEOID.FILEEXTENSION if the title of the video has certain special characters this may cause an issue with the filename saved in the database compared to the actual filename in the filesystem. It may be a good idea to restrict the characters in the filename by modifying the youtube-filename invocation to set the --restrict-filenames flag to prevent this being a potential issue.