Commit 5bad3166 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

MediaLibraryTester: Include the extension in Media.filename

This is the behavior of the actual metadataparser
parent 1ea8598f
......@@ -79,7 +79,7 @@ std::shared_ptr<Media> MediaLibraryTester::addFile( std::shared_ptr<fs::IFile> f
{
LOG_INFO( "Adding ", fileFs->mrl() );
auto mptr = Media::create( this, type, parentFolder->deviceId(), parentFolder->id(),
utils::file::stripExtension( fileFs->name() ) );
fileFs->name() );
if ( mptr == nullptr )
{
LOG_ERROR( "Failed to add media ", fileFs->mrl(), " to the media library" );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment