Show User Agent in System->Tasks for externally triggered commands (#63)

(cherry picked from commit fe8f319f7bfdadb7218b6313ada6cae1d2a35ad8)

Co-authored-by: Taloth Saldono <Taloth@users.noreply.github.com>
This commit is contained in:
Robin Dadswell
2021-05-20 12:04:37 +01:00
committed by GitHub
parent 74eee38aad
commit f85235d214
6 changed files with 52 additions and 1 deletions

View File

@@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NzbDrone.Common.Http
{
public static class UserAgentParser
{
public static string SimplifyUserAgent(string userAgent)
{
if (userAgent == null || userAgent.StartsWith("Mozilla/5.0"))
{
return null;
}
return userAgent;
}
}
}