loosen the protocol info checks

This commit is contained in:
Alex Ballas
2022-09-07 09:11:00 +03:00
parent 66ee7bb299
commit 984d58e92e

View File

@@ -919,6 +919,13 @@ func (p *TVPayload) Log() *zerolog.Logger {
func parseProtocolInfo(b []byte, mt string) error {
var respProtocolInfo protocolInfoResponse
// We were unable to detect the media type, so we
// should allow this to go through by default and
// hope the DMR accepts it.
if mt == "/" {
return nil
}
if strings.Contains(mt, "/") {
mt = strings.Split(mt, "/")[0]
}