upnp: Handle subtitle attributes
authorHugo Beauzée-Luyssen <hugo@beauzee.fr>
Mon, 23 May 2016 15:45:10 +0000 (17:45 +0200)
committerHugo Beauzée-Luyssen <hugo@beauzee.fr>
Mon, 23 May 2016 15:45:35 +0000 (17:45 +0200)
modules/services_discovery/upnp.cpp

index 84cd17d..ab282db 100644 (file)
@@ -847,6 +847,11 @@ bool MediaServer::addItem( IXML_Element* itemElement )
                                               i_seconds );
     }
 
                                               i_seconds );
     }
 
+    if ( psz_subtitles == NULL )
+    {
+        psz_subtitles = ixmlElement_getAttribute( p_resource, "pv:subtitleFileUri" );
+    }
+
     input_item_t* p_item =
         input_item_NewExt( psz_resource_url, title, i_duration,
                            ITEM_TYPE_FILE, ITEM_NET );
     input_item_t* p_item =
         input_item_NewExt( psz_resource_url, title, i_duration,
                            ITEM_TYPE_FILE, ITEM_NET );