Преглед изворни кода

add user agent to xmltv requests

Luke Pulverenti пре 8 година
родитељ
комит
0c7bde0aad
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      Emby.Server.Implementations/LiveTv/Listings/XmlTvListingsProvider.cs

+ 3 - 1
Emby.Server.Implementations/LiveTv/Listings/XmlTvListingsProvider.cs

@@ -77,7 +77,9 @@ namespace Emby.Server.Implementations.LiveTv.Listings
 
                 // It's going to come back gzipped regardless of this value
                 // So we need to make sure the decompression method is set to gzip
-                EnableHttpCompression = true
+                EnableHttpCompression = true,
+
+                UserAgent = "Emby/3.0"
 
             }).ConfigureAwait(false);