[vlc-commits] [Git][videolan/vlc][master] medialibrary: Fix assigning of show name onto inputitem

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Mon Sep 7 10:43:00 UTC 2026



Felix Paul Kühne pushed to branch master at VideoLAN / VLC


Commits:
35dd1035 by Claudio Cambra at 2026-09-07T11:48:58+02:00
medialibrary: Fix assigning of show name onto inputitem

Signed-off-by: Claudio Cambra <developer at claudiocambra.com>

- - - - -


1 changed file:

- modules/misc/medialibrary/entities.cpp


Changes:

=====================================
modules/misc/medialibrary/entities.cpp
=====================================
@@ -579,7 +579,19 @@ input_item_t* MediaToInputItem( const medialibrary::IMedia* media )
             // Those types are not analyzed
             break;
         case medialibrary::IMedia::Type::Video:
+        {
+            if ( media->subType() != medialibrary::IMedia::SubType::ShowEpisode )
+                break;
+
+            auto episode = media->showEpisode();
+            if ( episode == nullptr )
+                break;
+
+            auto show = episode->show();
+            if ( show != nullptr )
+                input_item_SetShowName( inputItem.get(), show->title().c_str() );
             break;
+        }
         case medialibrary::IMedia::Type::Audio:
         {
             if ( media->subType() != medialibrary::IMedia::SubType::AlbumTrack )



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/35dd10350229dd44610e9b87f6baa0bd0ff49176

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/35dd10350229dd44610e9b87f6baa0bd0ff49176
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list