diff --git a/src/core/content/filter.js b/src/core/content/filter.js index 2c53df601c..90552d614a 100755 --- a/src/core/content/filter.js +++ b/src/core/content/filter.js @@ -324,7 +324,7 @@ class MetadataFilter { // Full Album { source: /\s*full\s*album/i, target: '' }, // live - { source: /\s+\(?live\)?$/i, target: '' }, + { source: /\s+\(?live.*?\)?$/i, target: '' }, // | something { source: /\|.*$/i, target: '' }, // Leftovers after e.g. (official video) diff --git a/tests/core/filter.js b/tests/core/filter.js index 4ac85e4fee..f9804bc40e 100755 --- a/tests/core/filter.js +++ b/tests/core/filter.js @@ -216,6 +216,14 @@ const YOUTUBE_TEST_DATA = [{ description: 'should remove live suffix', source: 'Track Title Live', expected: 'Track Title' +}, { + description: 'should remove (live) suffix', + source: 'Track Title (Live)', + expected: 'Track Title' +}, { + description: 'should remove (live ...) suffix', + source: 'Track Title (Live at somewhere)', + expected: 'Track Title' }, { description: 'should remove Full Album suffix', source: 'Track Title Full Album',