Fix purchased tab API endpoints
This commit is contained in:
parent
34e6eb1d2b
commit
18fe2580ad
@ -1181,7 +1181,7 @@ public class APIHelper : IAPIHelper
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
else if (medium.canView && medium.files != null && medium.files.drm != null)
|
||||
@ -2078,7 +2078,8 @@ public class APIHelper : IAPIHelper
|
||||
{
|
||||
{ "limit", post_limit.ToString() },
|
||||
{ "order", "publish_date_desc" },
|
||||
{ "format", "infinite" }
|
||||
{ "format", "infinite" },
|
||||
{ "skip_users", "all" }
|
||||
};
|
||||
|
||||
var body = await BuildHeaderAndExecuteRequests(getParams, endpoint, GetHttpClient(config));
|
||||
@ -2251,7 +2252,8 @@ public class APIHelper : IAPIHelper
|
||||
{
|
||||
{ "limit", post_limit.ToString() },
|
||||
{ "order", "publish_date_desc" },
|
||||
{ "format", "infinite" }
|
||||
{ "format", "infinite" },
|
||||
{ "skip_users", "all" }
|
||||
};
|
||||
|
||||
var body = await BuildHeaderAndExecuteRequests(getParams, endpoint, GetHttpClient(config));
|
||||
|
||||
@ -983,7 +983,7 @@ public class Program
|
||||
}
|
||||
else if (hasSelectedUsersKVP.Key && hasSelectedUsersKVP.Value != null && hasSelectedUsersKVP.Value.ContainsKey("PurchasedTab"))
|
||||
{
|
||||
Dictionary<string, int> purchasedTabUsers = await m_ApiHelper.GetPurchasedTabUsers("/posts/paid", Config, users);
|
||||
Dictionary<string, int> purchasedTabUsers = await m_ApiHelper.GetPurchasedTabUsers("/posts/paid/all", Config, users);
|
||||
AnsiConsole.Markup($"[red]Checking folders for Users in Purchased Tab\n[/]");
|
||||
foreach (KeyValuePair<string, int> user in purchasedTabUsers)
|
||||
{
|
||||
@ -1030,7 +1030,7 @@ public class Program
|
||||
|
||||
Log.Debug($"Download path: {p}");
|
||||
|
||||
List<PurchasedTabCollection> purchasedTabCollections = await m_ApiHelper.GetPurchasedTab("/posts/paid", p, Config, users);
|
||||
List<PurchasedTabCollection> purchasedTabCollections = await m_ApiHelper.GetPurchasedTab("/posts/paid/all", p, Config, users);
|
||||
foreach(PurchasedTabCollection purchasedTabCollection in purchasedTabCollections)
|
||||
{
|
||||
AnsiConsole.Markup($"[red]\nScraping Data for {purchasedTabCollection.Username}\n[/]");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user