* Implement my best guess at how to support subtitles on LG clients.

This commit is contained in:
Justin Maggard
2011-05-17 01:19:31 +00:00
parent 5782be8ab2
commit 87aff70055
3 changed files with 19 additions and 11 deletions

View File

@ -880,6 +880,15 @@ callback(void *args, int argc, char **argv, char **azColName)
resolution, dlna_buf, mime, detailID, ext, passed_args);
}
break;
case ELGDevice:
if( sql_get_int_field(db, "SELECT ID from CAPTIONS where ID = '%s'", detailID) > 0 )
{
ret = strcatf(str, "<res protocolInfo=\"http-get:*:text/srt:*\">"
"http://%s:%d/Captions/%s.srt"
"</res>",
lan_addr[0].str, runtime_vars.port, detailID);
}
break;
default:
break;
}