File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -196,9 +196,13 @@ class AVTransport extends Service {
196196 const track = Helpers . ParseDIDL ( metadata )
197197 track . position = position
198198 track . duration = duration
199- track . albumArtURL = ! track . albumArtURI ? null
200- : track . albumArtURI . startsWith ( 'http' ) ? track . albumArtURI
201- : 'http://' + this . host + ':' + this . port + track . albumArtURI
199+ try {
200+ track . albumArtURL = ! track . albumArtURI ? null
201+ : track . albumArtURI . startsWith ( 'http' ) ? track . albumArtURI
202+ : 'http://' + this . host + ':' + this . port + track . albumArtURI
203+ } catch ( err ) {
204+ console . log ( 'Could not parse this albumArtURI into albumArtURL: ' , track . albumArtURI )
205+ }
202206 if ( trackUri ) track . uri = trackUri
203207 track . queuePosition = queuePosition
204208 return track
You can’t perform that action at this time.
0 commit comments