Compare commits
No commits in common. "ec88e6e783dbda3c92c99b8ec9c7664b7e720bef" and "824d88a6b8123db63ff07e3b7aca1f2151f289a9" have entirely different histories.
ec88e6e783
...
824d88a6b8
@ -464,7 +464,7 @@ public class APIHelper : IAPIHelper
|
|||||||
Dictionary<string, string> getParams = new()
|
Dictionary<string, string> getParams = new()
|
||||||
{
|
{
|
||||||
{ "offset", offset.ToString() },
|
{ "offset", offset.ToString() },
|
||||||
{ "limit", "50" },
|
{ "limit", "50" }
|
||||||
};
|
};
|
||||||
List<string> users = new();
|
List<string> users = new();
|
||||||
|
|
||||||
@ -540,8 +540,7 @@ public class APIHelper : IAPIHelper
|
|||||||
getParams = new Dictionary<string, string>
|
getParams = new Dictionary<string, string>
|
||||||
{
|
{
|
||||||
{ "limit", post_limit.ToString() },
|
{ "limit", post_limit.ToString() },
|
||||||
{ "order", "publish_date_desc" },
|
{ "order", "publish_date_desc" }
|
||||||
{ "skip_users", "all" }
|
|
||||||
};
|
};
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -549,8 +548,7 @@ public class APIHelper : IAPIHelper
|
|||||||
getParams = new Dictionary<string, string>
|
getParams = new Dictionary<string, string>
|
||||||
{
|
{
|
||||||
{ "limit", limit.ToString() },
|
{ "limit", limit.ToString() },
|
||||||
{ "offset", offset.ToString() },
|
{ "offset", offset.ToString() }
|
||||||
{ "skip_users", "all" }
|
|
||||||
};
|
};
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -740,10 +738,9 @@ public class APIHelper : IAPIHelper
|
|||||||
Dictionary<string, string> getParams = new()
|
Dictionary<string, string> getParams = new()
|
||||||
{
|
{
|
||||||
{ "limit", post_limit.ToString() },
|
{ "limit", post_limit.ToString() },
|
||||||
{ "skip_users", "all" },
|
|
||||||
{ "order", "publish_date_desc" },
|
{ "order", "publish_date_desc" },
|
||||||
{ "format", "infinite" },
|
{ "format", "infinite" },
|
||||||
{ "author", username }
|
{ "user_id", username }
|
||||||
};
|
};
|
||||||
|
|
||||||
var body = await BuildHeaderAndExecuteRequests(getParams, endpoint, GetHttpClient(config));
|
var body = await BuildHeaderAndExecuteRequests(getParams, endpoint, GetHttpClient(config));
|
||||||
@ -909,8 +906,7 @@ public class APIHelper : IAPIHelper
|
|||||||
{
|
{
|
||||||
{ "limit", post_limit.ToString() },
|
{ "limit", post_limit.ToString() },
|
||||||
{ "order", "publish_date_desc" },
|
{ "order", "publish_date_desc" },
|
||||||
{ "format", "infinite" },
|
{ "format", "infinite" }
|
||||||
{ "skip_users", "all" }
|
|
||||||
};
|
};
|
||||||
|
|
||||||
Enumerations.DownloadDateSelection downloadDateSelection = Enumerations.DownloadDateSelection.before;
|
Enumerations.DownloadDateSelection downloadDateSelection = Enumerations.DownloadDateSelection.before;
|
||||||
@ -1241,8 +1237,7 @@ public class APIHelper : IAPIHelper
|
|||||||
{
|
{
|
||||||
{ "limit", post_limit.ToString() },
|
{ "limit", post_limit.ToString() },
|
||||||
{ "order", "publish_date_desc" },
|
{ "order", "publish_date_desc" },
|
||||||
{ "format", "infinite" },
|
{ "format", "infinite" }
|
||||||
{ "skip_users", "all" }
|
|
||||||
};
|
};
|
||||||
|
|
||||||
Enumerations.DownloadDateSelection downloadDateSelection = Enumerations.DownloadDateSelection.before;
|
Enumerations.DownloadDateSelection downloadDateSelection = Enumerations.DownloadDateSelection.before;
|
||||||
@ -1529,8 +1524,7 @@ public class APIHelper : IAPIHelper
|
|||||||
Dictionary<string, string> getParams = new()
|
Dictionary<string, string> getParams = new()
|
||||||
{
|
{
|
||||||
{ "limit", post_limit.ToString() },
|
{ "limit", post_limit.ToString() },
|
||||||
{ "order", "desc" },
|
{ "order", "desc" }
|
||||||
{ "skip_users", "all" }
|
|
||||||
};
|
};
|
||||||
|
|
||||||
var body = await BuildHeaderAndExecuteRequests(getParams, endpoint, GetHttpClient(config));
|
var body = await BuildHeaderAndExecuteRequests(getParams, endpoint, GetHttpClient(config));
|
||||||
@ -1846,8 +1840,7 @@ public class APIHelper : IAPIHelper
|
|||||||
{ "limit", post_limit.ToString() },
|
{ "limit", post_limit.ToString() },
|
||||||
{ "order", "publish_date_desc" },
|
{ "order", "publish_date_desc" },
|
||||||
{ "format", "infinite" },
|
{ "format", "infinite" },
|
||||||
{ "author", username },
|
{ "user_id", username }
|
||||||
{ "skip_users", "all" }
|
|
||||||
};
|
};
|
||||||
|
|
||||||
var body = await BuildHeaderAndExecuteRequests(getParams, endpoint, GetHttpClient(config));
|
var body = await BuildHeaderAndExecuteRequests(getParams, endpoint, GetHttpClient(config));
|
||||||
|
|||||||
@ -1303,7 +1303,7 @@ public class Program
|
|||||||
await AnsiConsole.Status()
|
await AnsiConsole.Status()
|
||||||
.StartAsync("[red]Getting Paid Messages[/]", async ctx =>
|
.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 oldPaidMessagesCount = 0;
|
||||||
int newPaidMessagesCount = 0;
|
int newPaidMessagesCount = 0;
|
||||||
@ -1956,7 +1956,7 @@ public class Program
|
|||||||
await AnsiConsole.Status()
|
await AnsiConsole.Status()
|
||||||
.StartAsync("[red]Getting Paid Posts[/]", async ctx =>
|
.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;
|
int oldPaidPostCount = 0;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user