clients: add Asus O!Play support and quirks

Asus O!Play reboots with titles longer than 23 characters with some
file types when there are subtitles present.  So we truncate video
file titles with external subtitles.

It also supports subtitles in LG fashion, so add that too.
This commit is contained in:
Justin Maggard 2014-03-13 10:48:41 -07:00
parent 365d5c3412
commit 0ea24845eb
3 changed files with 15 additions and 0 deletions

View File

@ -199,6 +199,13 @@ struct client_type_s client_types[] =
EFriendlyName
},
{ EAsusOPlay,
FLAG_DLNA | FLAG_MIME_AVI_AVI | FLAG_CAPTION_RES,
"Asus OPlay Mini/Mini+",
"O!Play",
EUserAgent
},
{ EStandardDLNA150,
FLAG_DLNA | FLAG_MIME_AVI_AVI,
"Generic DLNA 1.5",

View File

@ -73,6 +73,7 @@ enum client_types {
ESonyBravia,
ESonyInternetTV,
EToshibaTV,
EAsusOPlay,
EStandardDLNA150,
EStandardUPnP
};

View File

@ -795,6 +795,12 @@ callback(void *args, int argc, char **argv, char **azColName)
else
alt_title = NULL;
}
/* Asus OPlay reboots with titles longer than 23 characters with some file types. */
else if( passed_args->client == EAsusOPlay && (passed_args->flags & FLAG_HAS_CAPTIONS) )
{
if( strlen(title) > 23 )
title[23] = '\0';
}
}
else if( *mime == 'a' )
{
@ -967,6 +973,7 @@ callback(void *args, int argc, char **argv, char **azColName)
break;
case ESamsungSeriesCDE:
case ELGDevice:
case EAsusOPlay:
default:
if( passed_args->flags & FLAG_HAS_CAPTIONS )
{