Skip to content

Commit

Permalink
Fix handling of URIs containing 'bbc' (#2162)
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickkfkan authored Oct 3, 2021
1 parent 307f918 commit fd3e37f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/plugins/music_service/mpd/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ ControllerMpd.prototype.parseTrackInfo = function (objTrackInfo) {
resp.trackType = 'tidal';
} else if (resp.uri.indexOf('http://') >= 0) {
resp.service = 'dirble';
if (objTrackInfo.file.indexOf('bbc') >= 0) {
if (objTrackInfo.file.indexOf('bbc') >= 0 && objTrackInfo.Name) {
objTrackInfo.Name = objTrackInfo.Name.replace(/_/g, ' ').replace('bbc', 'BBC');
objTrackInfo.file = objTrackInfo.Name;
}
Expand Down

0 comments on commit fd3e37f

Please sign in to comment.