ソースを参照

set notification info url

Luke Pulverenti 9 年 前
コミット
4afc2c9156

+ 2 - 1
MediaBrowser.Common.Implementations/Updates/GithubUpdater.cs

@@ -111,7 +111,8 @@ namespace MediaBrowser.Common.Implementations.Updates
                     targetFilename = targetFilename,
                     versionStr = version.ToString(),
                     requiredVersionStr = "1.0.0",
-                    description = obj.body
+                    description = obj.body,
+                    infoUrl = obj.html_url
                 }
             };
         }

+ 2 - 0
MediaBrowser.Model/Updates/PackageVersionInfo.cs

@@ -87,5 +87,7 @@ namespace MediaBrowser.Model.Updates
         /// </summary>
         /// <value>The target filename.</value>
         public string targetFilename { get; set; }
+
+        public string infoUrl { get; set; }
     }
 }

+ 2 - 1
MediaBrowser.Server.Implementations/EntryPoints/Notifications/Notifications.cs

@@ -116,7 +116,8 @@ namespace MediaBrowser.Server.Implementations.EntryPoints.Notifications
 
             var notification = new NotificationRequest
             {
-                NotificationType = type
+                NotificationType = type,
+                Url = e.Argument.infoUrl
             };
 
             notification.Variables["Version"] = e.Argument.versionStr;