diff --git a/scripts/core/issueParser.ts b/scripts/core/issueParser.ts index def939cd2..6d4658985 100644 --- a/scripts/core/issueParser.ts +++ b/scripts/core/issueParser.ts @@ -7,7 +7,8 @@ const FIELDS = new Dictionary({ 'Stream URL': 'stream_url', 'Stream URL (optional)': 'stream_url', 'Stream URL (required)': 'stream_url', - 'Broken Link': 'stream_url', + 'Broken Link': 'broken_links', + 'Broken Links': 'broken_links', Label: 'label', Quality: 'quality', Timeshift: 'timeshift', @@ -27,8 +28,10 @@ export class IssueParser { const data = new Dictionary() fields.forEach((field: string) => { - let [_label, , _value] = field.split(/\r?\n/) + let parsed = field.split(/\r?\n/).filter(Boolean) + let _label = parsed.shift() _label = _label ? _label.trim() : '' + let _value = parsed.join('\r\n') _value = _value ? _value.trim() : '' if (!_label || !_value) return data