Compare commits

..

No commits in common. "ec88e6e783dbda3c92c99b8ec9c7664b7e720bef" and "824d88a6b8123db63ff07e3b7aca1f2151f289a9" have entirely different histories.

2 changed files with 10 additions and 17 deletions

View File

@ -464,7 +464,7 @@ public class APIHelper : IAPIHelper
Dictionary<string, string> getParams = new()
{
{ "offset", offset.ToString() },
{ "limit", "50" },
{ "limit", "50" }
};
List<string> users = new();
@ -540,8 +540,7 @@ public class APIHelper : IAPIHelper
getParams = new Dictionary<string, string>
{
{ "limit", post_limit.ToString() },
{ "order", "publish_date_desc" },
{ "skip_users", "all" }
{ "order", "publish_date_desc" }
};
break;
@ -549,8 +548,7 @@ public class APIHelper : IAPIHelper
getParams = new Dictionary<string, string>
{
{ "limit", limit.ToString() },
{ "offset", offset.ToString() },
{ "skip_users", "all" }
{ "offset", offset.ToString() }
};
break;
}
@ -740,10 +738,9 @@ public class APIHelper : IAPIHelper
Dictionary<string, string> getParams = new()
{
{ "limit", post_limit.ToString() },
{ "skip_users", "all" },
{ "order", "publish_date_desc" },
{ "format", "infinite" },
{ "author", username }
{ "user_id", username }
};
var body = await BuildHeaderAndExecuteRequests(getParams, endpoint, GetHttpClient(config));
@ -909,8 +906,7 @@ public class APIHelper : IAPIHelper
{
{ "limit", post_limit.ToString() },
{ "order", "publish_date_desc" },
{ "format", "infinite" },
{ "skip_users", "all" }
{ "format", "infinite" }
};
Enumerations.DownloadDateSelection downloadDateSelection = Enumerations.DownloadDateSelection.before;
@ -1241,8 +1237,7 @@ public class APIHelper : IAPIHelper
{
{ "limit", post_limit.ToString() },
{ "order", "publish_date_desc" },
{ "format", "infinite" },
{ "skip_users", "all" }
{ "format", "infinite" }
};
Enumerations.DownloadDateSelection downloadDateSelection = Enumerations.DownloadDateSelection.before;
@ -1529,8 +1524,7 @@ public class APIHelper : IAPIHelper
Dictionary<string, string> getParams = new()
{
{ "limit", post_limit.ToString() },
{ "order", "desc" },
{ "skip_users", "all" }
{ "order", "desc" }
};
var body = await BuildHeaderAndExecuteRequests(getParams, endpoint, GetHttpClient(config));
@ -1846,8 +1840,7 @@ public class APIHelper : IAPIHelper
{ "limit", post_limit.ToString() },
{ "order", "publish_date_desc" },
{ "format", "infinite" },
{ "author", username },
{ "skip_users", "all" }
{ "user_id", username }
};
var body = await BuildHeaderAndExecuteRequests(getParams, endpoint, GetHttpClient(config));

View File

@ -1303,7 +1303,7 @@ public class Program
await AnsiConsole.Status()
.StartAsync("[red]Getting Paid Messages[/]", async ctx =>
{
paidMessageCollection = await downloadContext.ApiHelper.GetPaidMessages("/posts/paid/chat", path, user.Key, downloadContext.DownloadConfig!, ctx);
paidMessageCollection = await downloadContext.ApiHelper.GetPaidMessages("/posts/paid", path, user.Key, downloadContext.DownloadConfig!, ctx);
});
int oldPaidMessagesCount = 0;
int newPaidMessagesCount = 0;
@ -1956,7 +1956,7 @@ public class Program
await AnsiConsole.Status()
.StartAsync("[red]Getting Paid Posts[/]", async ctx =>
{
purchasedPosts = await downloadContext.ApiHelper.GetPaidPosts("/posts/paid/post", path, user.Key, downloadContext.DownloadConfig!, paid_post_ids, ctx);
purchasedPosts = await downloadContext.ApiHelper.GetPaidPosts("/posts/paid", path, user.Key, downloadContext.DownloadConfig!, paid_post_ids, ctx);
});
int oldPaidPostCount = 0;