We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4744fe7 commit d8dfa06Copy full SHA for d8dfa06
lib/services/AVTransport.js
@@ -196,9 +196,13 @@ class AVTransport extends Service {
196
const track = Helpers.ParseDIDL(metadata)
197
track.position = position
198
track.duration = duration
199
- track.albumArtURL = !track.albumArtURI ? null
200
- : track.albumArtURI.startsWith('http') ? track.albumArtURI
201
- : 'http://' + this.host + ':' + this.port + track.albumArtURI
+ try {
+ track.albumArtURL = !track.albumArtURI ? null
+ : 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
+ }
206
if (trackUri) track.uri = trackUri
207
track.queuePosition = queuePosition
208
return track
0 commit comments