Chapters FAB doesn't depend on the recognized chapter number. Cloudflare resolver fix

This commit is contained in:
len
2016-05-28 19:10:09 +02:00
parent 6beff242b0
commit 02a697031f
4 changed files with 20 additions and 25 deletions

View File

@@ -68,8 +68,8 @@ public class Manga implements Serializable {
public static final int COMPLETED = 2;
public static final int LICENSED = 3;
public static final int SORT_AZ = 0x00000000;
public static final int SORT_ZA = 0x00000001;
public static final int SORT_DESC = 0x00000000;
public static final int SORT_ASC = 0x00000001;
public static final int SORT_MASK = 0x00000001;
// Generic filter that does not filter anything
@@ -174,8 +174,8 @@ public class Manga implements Serializable {
chapter_flags = (chapter_flags & ~mask) | (flag & mask);
}
public boolean sortChaptersAZ() {
return (chapter_flags & SORT_MASK) == SORT_AZ;
public boolean sortDescending() {
return (chapter_flags & SORT_MASK) == SORT_DESC;
}
// Used to display the chapter's title one way or another

View File

@@ -21,7 +21,7 @@ class CloudflareInterceptor(private val cookies: PersistentCookieStore) : Interc
val response = chain.proceed(chain.request())
// Check if we already solved a challenge
if (response.code() != 502 &&
if (response.code() != 503 &&
cookies.get(response.request().url()).any { it.name() == "cf_clearance" }) {
return response
}