Skip to content

Commit

Permalink
fix: XML paarseMerge pull request #325 from freaktechnik/patch-1
Browse files Browse the repository at this point in the history
Avoid parsing metadata for CONNECT inputs
  • Loading branch information
svrooij authored Aug 26, 2018
2 parents 4d91b39 + 4611da9 commit 4b5388e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/services/AVTransport.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ AVTransport.prototype.CurrentTrack = async function () {
let duration = Helpers.TimeToSeconds(result.TrackDuration)
let trackUri = result.TrackURI || null
let queuePosition = parseInt(result.Track)
if (result.TrackMetaData) { // There is some metadata, lets parse it.
if (result.TrackMetaData && result.TrackMetaData !== 'NOT_IMPLEMENTED') { // There is some metadata, lets parse it.
var metadata = await Helpers.ParseXml(result.TrackMetaData)
let track = Helpers.ParseDIDL(metadata)
track.position = position
Expand Down

0 comments on commit 4b5388e

Please sign in to comment.