clients: Add media extension to titles for Hyundai TVs
On Hyundai HLN 24TS382 Smart TV, the DLNA client refuses to display media files whose title does not end with a media file extension. Because minidlna strips the extensions, all folders thus appear empty. This patch adds a quirk for Hyundai TVs that appends the original file extension to the titles, which fixes the issue.
This commit is contained in:
parent
46d806ce2d
commit
5450ac486e
@ -205,6 +205,13 @@ struct client_type_s client_types[] =
|
||||
EUserAgent
|
||||
},
|
||||
|
||||
{ EHyundaiTV,
|
||||
FLAG_DLNA,
|
||||
"Hyundai TV",
|
||||
"HYUNDAITV",
|
||||
EFriendlyName
|
||||
},
|
||||
|
||||
{ ERokuSoundBridge,
|
||||
FLAG_MS_PFS | FLAG_AUDIO_ONLY | FLAG_MIME_WAV_WAV | FLAG_FORCE_SORT,
|
||||
"Roku SoundBridge",
|
||||
|
@ -75,6 +75,7 @@ enum client_types {
|
||||
ESonyBravia,
|
||||
ESonyInternetTV,
|
||||
EToshibaTV,
|
||||
EHyundaiTV,
|
||||
EAsusOPlay,
|
||||
EBubbleUPnP,
|
||||
ENetFrontLivingConnect,
|
||||
|
10
upnpsoap.c
10
upnpsoap.c
@ -883,6 +883,16 @@ callback(void *args, int argc, char **argv, char **azColName)
|
||||
if( strlen(title) > 23 )
|
||||
title[23] = '\0';
|
||||
}
|
||||
/* Hyundai hack: Only titles with a media extension get recognized. */
|
||||
else if( passed_args->client == EHyundaiTV )
|
||||
{
|
||||
ext = mime_to_ext(mime);
|
||||
ret = asprintf(&alt_title, "%s.%s", title, ext);
|
||||
if( ret > 0 )
|
||||
title = alt_title;
|
||||
else
|
||||
alt_title = NULL;
|
||||
}
|
||||
}
|
||||
else if( *mime == 'a' )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user