add P media type to product code checks

This commit is contained in:
13xforever 2020-09-08 21:11:11 +05:00
parent 2b2af5725c
commit 9da9ee4274
2 changed files with 6 additions and 1 deletions

View File

@ -18,7 +18,7 @@ namespace CompatBot.EventHandlers
internal static class ProductCodeLookup
{
// see http://www.psdevwiki.com/ps3/Productcode
public static readonly Regex ProductCode = new Regex(@"(?<letters>(?:[BPSUVX][CL]|P[ETU]|NP)[AEHJKPUIX][ABJKLMQRS]|MRTC)[ \-]?(?<numbers>\d{5})", RegexOptions.Compiled | RegexOptions.IgnoreCase);
public static readonly Regex ProductCode = new Regex(@"(?<letters>(?:[BPSUVX][CL]|P[ETU]|NP)[AEHJKPUIX][ABJKLMPQRS]|MRTC)[ \-]?(?<numbers>\d{5})", RegexOptions.Compiled | RegexOptions.IgnoreCase);
private static readonly Client CompatClient = new Client();
public static async Task OnMessageCreated(MessageCreateEventArgs args)

View File

@ -417,6 +417,11 @@ namespace CompatBot.Utils
result.Add("Miscellaneous software (manuals, etc)");
break;
}
case 'P':
{
result.Add("Applications (dynamic themes, streaming services, etc)");
break;
}
case 'Q':
{
result.Add("XMB Theme");