mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
26 lines
745 B
C#
26 lines
745 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Jackett.Utils
|
|
{
|
|
public static class BrowserUtil
|
|
{
|
|
public static string ChromeUserAgent
|
|
{
|
|
get {
|
|
if (System.Environment.OSVersion.Platform == PlatformID.Unix)
|
|
{
|
|
return "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chrome/47.0.2526.73 Safari/537.36";
|
|
}
|
|
else
|
|
{
|
|
return "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.73 Safari/537.36";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|