set notification info url
This commit is contained in:
parent
91ee2e22a8
commit
4afc2c9156
|
@ -111,7 +111,8 @@ namespace MediaBrowser.Common.Implementations.Updates
|
||||||
targetFilename = targetFilename,
|
targetFilename = targetFilename,
|
||||||
versionStr = version.ToString(),
|
versionStr = version.ToString(),
|
||||||
requiredVersionStr = "1.0.0",
|
requiredVersionStr = "1.0.0",
|
||||||
description = obj.body
|
description = obj.body,
|
||||||
|
infoUrl = obj.html_url
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -87,5 +87,7 @@ namespace MediaBrowser.Model.Updates
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The target filename.</value>
|
/// <value>The target filename.</value>
|
||||||
public string targetFilename { get; set; }
|
public string targetFilename { get; set; }
|
||||||
|
|
||||||
|
public string infoUrl { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -116,7 +116,8 @@ namespace MediaBrowser.Server.Implementations.EntryPoints.Notifications
|
||||||
|
|
||||||
var notification = new NotificationRequest
|
var notification = new NotificationRequest
|
||||||
{
|
{
|
||||||
NotificationType = type
|
NotificationType = type,
|
||||||
|
Url = e.Argument.infoUrl
|
||||||
};
|
};
|
||||||
|
|
||||||
notification.Variables["Version"] = e.Argument.versionStr;
|
notification.Variables["Version"] = e.Argument.versionStr;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user