add Android version
This commit is contained in:
@@ -16,7 +16,11 @@ namespace Pixiview.Utils
|
||||
public static class Stores
|
||||
{
|
||||
public static readonly string PersonalFolder = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
|
||||
#if __IOS__
|
||||
public static readonly string CacheFolder = Environment.GetFolderPath(Environment.SpecialFolder.InternetCache);
|
||||
#elif __ANDROID__
|
||||
public static readonly string CacheFolder = FileSystem.CacheDirectory;
|
||||
#endif
|
||||
|
||||
private const string favoriteFile = "favorites.json";
|
||||
private const string imageFolder = "img-original";
|
||||
@@ -492,27 +496,17 @@ namespace Pixiview.Utils
|
||||
public const string SuffixPreload = " id=\"meta-preload-data\" content='";
|
||||
public const int SuffixPreloadLength = 33; // SuffixPreload.Length
|
||||
public static string UrlIllustList => Prefix + "ajax/top/illust?mode=all&lang=zh";
|
||||
public static string UrlIllust = Prefix + "artworks/{0}";
|
||||
public static string UrlIllustUserAll = Prefix + "ajax/user/{0}/profile/all?lang=zh";
|
||||
public static string UrlIllustUserArtworks = Prefix + "ajax/user/{0}/profile/illusts?{1}work_category=illustManga&is_first_page={2}&lang=zh";
|
||||
public static string UrlIllustUser = Prefix + "users/{0}/artworks";
|
||||
public static string UrlIllustPage = Prefix + "ajax/illust/{0}/pages?lang=zh";
|
||||
public static string UrlIllust => Prefix + "artworks/{0}";
|
||||
public static string UrlIllustUserAll => Prefix + "ajax/user/{0}/profile/all?lang=zh";
|
||||
public static string UrlIllustUserArtworks => Prefix + "ajax/user/{0}/profile/illusts?{1}work_category=illustManga&is_first_page={2}&lang=zh";
|
||||
public static string UrlIllustUser => Prefix + "users/{0}/artworks";
|
||||
public static string UrlIllustPage => Prefix + "ajax/illust/{0}/pages?lang=zh";
|
||||
public const string UserAgent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36";
|
||||
public const string AcceptImage = "image/png,image/svg+xml,image/*;q=0.8,video/*;q=0.8,*/*;q=0.5";
|
||||
public const string AcceptJson = "application/json";
|
||||
//public const string AcceptEncoding = "gzip, deflate";
|
||||
public const string AcceptLanguage = "zh-cn";
|
||||
|
||||
//public const string UserId = "2603358";
|
||||
//public const string Cookie =
|
||||
// "PHPSESSID=2603358_VHyGPeRaz7LpeoFkRsHvjXIpApCMb56a; " +
|
||||
// "a_type=0; b_type=1; c_type=31; d_type=2; " +
|
||||
// "p_ab_id=2; p_ab_id_2=6; p_ab_d_id=1155161977; " +
|
||||
// "privacy_policy_agreement=2; " +
|
||||
// "login_ever=yes; " +
|
||||
// "__cfduid=d9fa2d4d1ddd30db85ebb519f9855d2561587806747; " +
|
||||
// "first_visit_datetime_pc=2019-10-29+22%3A05%3A30; " +
|
||||
// "yuid_b=NgcXQWQ";
|
||||
public const string UserId = "53887721";
|
||||
public const string Cookie =
|
||||
"PHPSESSID=5sn8n049j5c18l0tlj91qrjhesgddhjv; " +
|
||||
|
||||
Reference in New Issue
Block a user