mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Renamed GetReportEntry to GetManifestURL
This commit is contained in:
parent
fda325eecf
commit
853ab81bbf
@ -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();
|
||||
}
|
||||
}
|
||||
|
@ -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()
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user