Renamed GetReportEntry to GetManifestURL

This commit is contained in:
erri120 2020-02-02 13:23:07 +01:00
parent fda325eecf
commit 853ab81bbf
No known key found for this signature in database
GPG Key ID: A8C0A18D8D4D3135
11 changed files with 20 additions and 26 deletions

View File

@ -82,7 +82,7 @@ namespace Wabbajack.Lib.Downloaders
public abstract IDownloader GetDownloader();
public abstract string GetReportEntry(Archive a);
public abstract string GetManifestURL(Archive a);
public abstract string[] GetMetaIni();
}
}

View File

@ -154,9 +154,9 @@ namespace Wabbajack.Lib.Downloaders
return DownloadDispatcher.GetInstance<TDownloader>();
}
public override string GetReportEntry(Archive a)
public override string GetManifestURL(Archive a)
{
return $"* {((INeedsLogin)GetDownloader()).SiteName} - [{a.Name}]({Site}/files/file/{FileName}/?do=download&r={FileID})";
return $"{Site}/files/file/{FileName}/?do=download&r={FileID}";
}
public override string[] GetMetaIni()

View File

@ -255,7 +255,7 @@ namespace Wabbajack.Lib.Downloaders
throw new NotImplementedException();
}
public override string GetReportEntry(Archive a)
public override string GetManifestURL(Archive a)
{
throw new NotImplementedException();
}

View File

@ -83,9 +83,9 @@ namespace Wabbajack.Lib.Downloaders
return DownloadDispatcher.GetInstance<GameFileSourceDownloader>();
}
public override string GetReportEntry(Archive a)
public override string GetManifestURL(Archive a)
{
return $"* Game File {Game} - {GameFile}";
return null;
}
public override string[] GetMetaIni()

View File

@ -75,9 +75,9 @@ namespace Wabbajack.Lib.Downloaders
return DownloadDispatcher.GetInstance<GoogleDriveDownloader>();
}
public override string GetReportEntry(Archive a)
public override string GetManifestURL(Archive a)
{
return $"* GoogleDrive - [{a.Name}](https://drive.google.com/uc?id={Id}&export=download)";
return $"https://drive.google.com/uc?id={Id}&export=download";
}
public override string[] GetMetaIni()

View File

@ -200,9 +200,9 @@ TOP:
return DownloadDispatcher.GetInstance<HTTPDownloader>();
}
public override string GetReportEntry(Archive a)
public override string GetManifestURL(Archive a)
{
return $"* [{a.Name} - {Url}]({Url})";
return Url;
}
public override string[] GetMetaIni()

View File

@ -122,9 +122,9 @@ namespace Wabbajack.Lib.Downloaders
return DownloadDispatcher.GetInstance<ManualDownloader>();
}
public override string GetReportEntry(Archive a)
public override string GetManifestURL(Archive a)
{
return $"* Manual Download - [{a.Name} - {Url}]({Url})";
return Url;
}
public override string[] GetMetaIni()

View File

@ -64,9 +64,9 @@ namespace Wabbajack.Lib.Downloaders
return DownloadDispatcher.GetInstance<MediaFireDownloader>();
}
public override string GetReportEntry(Archive a)
public override string GetManifestURL(Archive a)
{
return $"* [{a.Name} - {Url}]({Url})";
return Url;
}
public override string[] GetMetaIni()

View File

@ -105,9 +105,9 @@ namespace Wabbajack.Lib.Downloaders
return DownloadDispatcher.GetInstance<ModDBDownloader>();
}
public override string GetReportEntry(Archive a)
public override string GetManifestURL(Archive a)
{
return $"* ModDB - [{a.Name}]({Url})";
return Url;
}
public override string[] GetMetaIni()

View File

@ -193,15 +193,9 @@ namespace Wabbajack.Lib.Downloaders
return DownloadDispatcher.GetInstance<NexusDownloader>();
}
public override string GetReportEntry(Archive a)
public override string GetManifestURL(Archive a)
{
var profile = UploaderProfile.Replace("/games/",
"/" + NexusApiUtils.ConvertGameName(GameName).ToLower() + "/");
return string.Join("\n",
$"* [{a.Name}](http://nexusmods.com/{NexusApiUtils.ConvertGameName(GameName)}/mods/{ModID})",
$" * Author : [{UploadedBy}]({profile})",
$" * Version : {Version}");
return $"http://nexusmods.com/{NexusApiUtils.ConvertGameName(GameName)}/mods/{ModID}";
}
public override string[] GetMetaIni()

View File

@ -92,9 +92,9 @@ namespace Wabbajack.Lib.Downloaders
return DownloadDispatcher.GetInstance<SteamWorkshopDownloader>();
}
public override string GetReportEntry(Archive a)
public override string GetManifestURL(Archive a)
{
return $"* Steam - [{Item.ItemID}]";
return $"https://steamcommunity.com/sharedfiles/filedetails/?id={Item.ItemID}";
}
public override string[] GetMetaIni()