diff --git a/src/all/commitstrip/build.gradle b/src/all/commitstrip/build.gradle index edf02ce39..91eec3d7c 100644 --- a/src/all/commitstrip/build.gradle +++ b/src/all/commitstrip/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'Commit Strip' pkgNameSuffix = 'all.commitstrip' extClass = '.CommitStripFactory' - extVersionCode = 1 + extVersionCode = 2 libVersion = '1.2' } diff --git a/src/all/commitstrip/res/mipmap-anydpi-v26/ic_launcher.xml b/src/all/commitstrip/res/mipmap-anydpi-v26/ic_launcher.xml deleted file mode 100644 index 036d09bc5..000000000 --- a/src/all/commitstrip/res/mipmap-anydpi-v26/ic_launcher.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/all/commitstrip/res/mipmap-anydpi-v26/ic_launcher_round.xml b/src/all/commitstrip/res/mipmap-anydpi-v26/ic_launcher_round.xml deleted file mode 100644 index 036d09bc5..000000000 --- a/src/all/commitstrip/res/mipmap-anydpi-v26/ic_launcher_round.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/all/commitstrip/res/mipmap-hdpi/ic_launcher.png b/src/all/commitstrip/res/mipmap-hdpi/ic_launcher.png index 50c30a115..2e29daaa4 100644 Binary files a/src/all/commitstrip/res/mipmap-hdpi/ic_launcher.png and b/src/all/commitstrip/res/mipmap-hdpi/ic_launcher.png differ diff --git a/src/all/commitstrip/res/mipmap-hdpi/ic_launcher_foreground.png b/src/all/commitstrip/res/mipmap-hdpi/ic_launcher_foreground.png deleted file mode 100644 index 04a9df908..000000000 Binary files a/src/all/commitstrip/res/mipmap-hdpi/ic_launcher_foreground.png and /dev/null differ diff --git a/src/all/commitstrip/res/mipmap-hdpi/ic_launcher_round.png b/src/all/commitstrip/res/mipmap-hdpi/ic_launcher_round.png deleted file mode 100644 index 36f58997a..000000000 Binary files a/src/all/commitstrip/res/mipmap-hdpi/ic_launcher_round.png and /dev/null differ diff --git a/src/all/commitstrip/res/mipmap-mdpi/ic_launcher.png b/src/all/commitstrip/res/mipmap-mdpi/ic_launcher.png index 9f687b68d..cc4cf3957 100644 Binary files a/src/all/commitstrip/res/mipmap-mdpi/ic_launcher.png and b/src/all/commitstrip/res/mipmap-mdpi/ic_launcher.png differ diff --git a/src/all/commitstrip/res/mipmap-mdpi/ic_launcher_foreground.png b/src/all/commitstrip/res/mipmap-mdpi/ic_launcher_foreground.png deleted file mode 100644 index 69e3d06e0..000000000 Binary files a/src/all/commitstrip/res/mipmap-mdpi/ic_launcher_foreground.png and /dev/null differ diff --git a/src/all/commitstrip/res/mipmap-mdpi/ic_launcher_round.png b/src/all/commitstrip/res/mipmap-mdpi/ic_launcher_round.png deleted file mode 100644 index 83ddf95dc..000000000 Binary files a/src/all/commitstrip/res/mipmap-mdpi/ic_launcher_round.png and /dev/null differ diff --git a/src/all/commitstrip/res/mipmap-xhdpi/ic_launcher.png b/src/all/commitstrip/res/mipmap-xhdpi/ic_launcher.png index e62422674..96040c4f8 100644 Binary files a/src/all/commitstrip/res/mipmap-xhdpi/ic_launcher.png and b/src/all/commitstrip/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/src/all/commitstrip/res/mipmap-xhdpi/ic_launcher_foreground.png b/src/all/commitstrip/res/mipmap-xhdpi/ic_launcher_foreground.png deleted file mode 100644 index 08491121d..000000000 Binary files a/src/all/commitstrip/res/mipmap-xhdpi/ic_launcher_foreground.png and /dev/null differ diff --git a/src/all/commitstrip/res/mipmap-xhdpi/ic_launcher_round.png b/src/all/commitstrip/res/mipmap-xhdpi/ic_launcher_round.png deleted file mode 100644 index 83cbee17c..000000000 Binary files a/src/all/commitstrip/res/mipmap-xhdpi/ic_launcher_round.png and /dev/null differ diff --git a/src/all/commitstrip/res/mipmap-xxhdpi/ic_launcher.png b/src/all/commitstrip/res/mipmap-xxhdpi/ic_launcher.png index 194804739..90ad2e4db 100644 Binary files a/src/all/commitstrip/res/mipmap-xxhdpi/ic_launcher.png and b/src/all/commitstrip/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/src/all/commitstrip/res/mipmap-xxhdpi/ic_launcher_foreground.png b/src/all/commitstrip/res/mipmap-xxhdpi/ic_launcher_foreground.png deleted file mode 100644 index 53a952b41..000000000 Binary files a/src/all/commitstrip/res/mipmap-xxhdpi/ic_launcher_foreground.png and /dev/null differ diff --git a/src/all/commitstrip/res/mipmap-xxhdpi/ic_launcher_round.png b/src/all/commitstrip/res/mipmap-xxhdpi/ic_launcher_round.png deleted file mode 100644 index 2274067a5..000000000 Binary files a/src/all/commitstrip/res/mipmap-xxhdpi/ic_launcher_round.png and /dev/null differ diff --git a/src/all/commitstrip/res/mipmap-xxxhdpi/ic_launcher.png b/src/all/commitstrip/res/mipmap-xxxhdpi/ic_launcher.png index 90fa1a557..3686b1ba5 100644 Binary files a/src/all/commitstrip/res/mipmap-xxxhdpi/ic_launcher.png and b/src/all/commitstrip/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/src/all/commitstrip/res/mipmap-xxxhdpi/ic_launcher_foreground.png b/src/all/commitstrip/res/mipmap-xxxhdpi/ic_launcher_foreground.png deleted file mode 100644 index b881c366d..000000000 Binary files a/src/all/commitstrip/res/mipmap-xxxhdpi/ic_launcher_foreground.png and /dev/null differ diff --git a/src/all/commitstrip/res/mipmap-xxxhdpi/ic_launcher_round.png b/src/all/commitstrip/res/mipmap-xxxhdpi/ic_launcher_round.png deleted file mode 100644 index c1ad23122..000000000 Binary files a/src/all/commitstrip/res/mipmap-xxxhdpi/ic_launcher_round.png and /dev/null differ diff --git a/src/all/commitstrip/res/values/ic_launcher_background.xml b/src/all/commitstrip/res/values/ic_launcher_background.xml deleted file mode 100644 index c5d5899fd..000000000 --- a/src/all/commitstrip/res/values/ic_launcher_background.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - #FFFFFF - \ No newline at end of file diff --git a/src/all/commitstrip/res/web_hi_res_512.png b/src/all/commitstrip/res/web_hi_res_512.png new file mode 100644 index 000000000..bf1bb7353 Binary files /dev/null and b/src/all/commitstrip/res/web_hi_res_512.png differ diff --git a/src/all/commitstrip/src/eu/kanade/tachiyomi/extension/all/commitstrip/CommitStrip.kt b/src/all/commitstrip/src/eu/kanade/tachiyomi/extension/all/commitstrip/CommitStrip.kt index 18421b52d..892d9cc09 100644 --- a/src/all/commitstrip/src/eu/kanade/tachiyomi/extension/all/commitstrip/CommitStrip.kt +++ b/src/all/commitstrip/src/eu/kanade/tachiyomi/extension/all/commitstrip/CommitStrip.kt @@ -8,6 +8,7 @@ import eu.kanade.tachiyomi.source.model.SChapter import eu.kanade.tachiyomi.source.model.SManga import eu.kanade.tachiyomi.source.online.ParsedHttpSource import eu.kanade.tachiyomi.util.asJsoup +import okhttp3.Request import okhttp3.Response import org.jsoup.nodes.Document import org.jsoup.nodes.Element @@ -74,6 +75,12 @@ abstract class CommitStrip( } )!! + // Open in WebView + + override fun mangaDetailsRequest(manga: SManga): Request { + return GET("${manga.url}/?", headers) + } + // Chapters override fun fetchChapterList(manga: SManga): Observable> { @@ -109,7 +116,7 @@ abstract class CommitStrip( override fun chapterListSelector() = ".excerpt a" override fun chapterFromElement(element: Element) = SChapter.create().apply { - url = element.attr("href") + url = "$baseUrl/$siteLang" + element.attr("href").substringAfter(baseUrl) // get the chapter date from the url val date = Regex("\\d{4}\\/\\d{2}\\/\\d{2}").find(url)?.value