Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mka support #4361

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open

Conversation

sharinganthief
Copy link

Database Migration

YES - XXXX | NO

Description

A few sentences describing the overall goals of the pull request's commits.

Screenshot (if UI related)

Todos

  • Tests
  • Translation Keys (./src/NzbDrone.Core/Localization/Core/en.json)
  • Wiki Updates

Issues Fixed or Closed by this PR

  • Fixes #XXXX

@github-actions github-actions bot added the Area: Parser Issue is related to parsing infrastructure. label Dec 13, 2023
return ParseQuality(result, codec, name, normalizedName, bitrate, sampleSize);
}

private static string StealCodecFromMatroskaTrack(AudioTrack matroskaCodec)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move this private method below all the public interface methods.

@@ -38,12 +41,61 @@ public class QualityParser

private static readonly Regex SampleSizeRegex = new (@"\b(?:(?<S24>24[ ]?bit|tr24|24-(?:44|48|96|192)|[\[\(].*24bit.*[\]\)]))\b", RegexOptions.Compiled);

private static readonly Regex CodecRegex = new (@"\b(?:(?<MP1>MPEG Version \d(.5)? Audio, Layer 1|MP1)|(?<MP2>MPEG Version \d(.5)? Audio, Layer 2|MP2)|(?<MP3VBR>MP3.*VBR|MPEG Version \d(.5)? Audio, Layer 3 vbr)|(?<MP3CBR>MP3|MPEG Version \d(.5)? Audio, Layer 3)|(?<FLAC>(web)?flac|TR24)|(?<WAVPACK>wavpack|wv)|(?<ALAC>alac)|(?<WMA>WMA\d?)|(?<WAV>WAV|PCM)|(?<AAC>M4A|M4P|M4B|AAC|mp4a|MPEG-4 Audio(?!.*alac))|(?<OGG>OGG|OGA|Vorbis))\b|(?<APE>monkey's audio|[\[|\(].*\bape\b.*[\]|\)])|(?<OPUS>Opus Version \d(.5)? Audio|[\[|\(].*\bopus\b.*[\]|\)])",

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lint is failing on the multiple blank lines here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Parser Issue is related to parsing infrastructure.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants