mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
20 lines
486 B
C#
20 lines
486 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Wabbajack.Lib.Downloaders
|
|
{
|
|
public static class DownloaderUtils
|
|
{
|
|
public static Uri GetDirectURL(dynamic meta)
|
|
{
|
|
var url = meta?.General?.directURL;
|
|
if (url == null) return null;
|
|
|
|
return Uri.TryCreate((string) url, UriKind.Absolute, out var result) ? result : null;
|
|
}
|
|
}
|
|
}
|