Tapas: force desktop User-Agent, add changelog (#13665)
* Tapas: force desktop User-Agent * Add `CHANGELOG.md` * isNsfw = true
This commit is contained in:
parent
fcf8832426
commit
758c7d14b0
|
@ -0,0 +1,118 @@
|
||||||
|
## 1.3.18
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* Add `CHANGELOG.md`
|
||||||
|
|
||||||
|
### Fix
|
||||||
|
|
||||||
|
* Force desktop User-Agent to fix issues with fetching chapters
|
||||||
|
|
||||||
|
## 1.3.17
|
||||||
|
|
||||||
|
### Fix
|
||||||
|
|
||||||
|
* Process author's notes locally as API was unreliable
|
||||||
|
|
||||||
|
## 1.2.16
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* Status support
|
||||||
|
* Announcement support
|
||||||
|
|
||||||
|
### Fix
|
||||||
|
|
||||||
|
* Remove genre incorrectly added to titles
|
||||||
|
|
||||||
|
## 1.2.15
|
||||||
|
|
||||||
|
### Fix
|
||||||
|
|
||||||
|
* Author's notes were not showing
|
||||||
|
|
||||||
|
## 1.2.14
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* Support for author's notes
|
||||||
|
|
||||||
|
## 1.2.13
|
||||||
|
|
||||||
|
### Fix
|
||||||
|
|
||||||
|
* Better cookie management for paid chapters
|
||||||
|
* URL builder for filters were broken
|
||||||
|
|
||||||
|
## 1.2.12
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* Add support for mature results
|
||||||
|
* Preferences implementation changes
|
||||||
|
|
||||||
|
## 1.2.11
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* Show lock on locked chapters after login
|
||||||
|
|
||||||
|
## 1.2.10
|
||||||
|
|
||||||
|
### Fix
|
||||||
|
|
||||||
|
* Rewrite chapter list parsing after site changes
|
||||||
|
|
||||||
|
## 1.2.9
|
||||||
|
|
||||||
|
### Fix
|
||||||
|
|
||||||
|
* Fix chapter list parsing for non logged-in users
|
||||||
|
|
||||||
|
## 1.2.8
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* Setting to filter future releases
|
||||||
|
|
||||||
|
## 1.2.7
|
||||||
|
|
||||||
|
### Fix
|
||||||
|
|
||||||
|
* Add thumbnail parsing to details, fixes restoring from backup
|
||||||
|
|
||||||
|
## 1.2.6
|
||||||
|
|
||||||
|
### Fix
|
||||||
|
|
||||||
|
* Fix chapters not loading by using `data-src` instead
|
||||||
|
|
||||||
|
## 1.2.5
|
||||||
|
|
||||||
|
### Fix
|
||||||
|
|
||||||
|
* Rewrite to accommodate site changes
|
||||||
|
|
||||||
|
## 1.2.4
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* Lock icon for locked chapters
|
||||||
|
|
||||||
|
## 1.2.3
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* Extension icons
|
||||||
|
|
||||||
|
## 1.0.2
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* Add BL genres
|
||||||
|
|
||||||
|
## 1.0.1
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* First version
|
|
@ -6,7 +6,8 @@ ext {
|
||||||
extName = 'Tapas'
|
extName = 'Tapas'
|
||||||
pkgNameSuffix = 'en.tapastic'
|
pkgNameSuffix = 'en.tapastic'
|
||||||
extClass = '.Tapastic'
|
extClass = '.Tapastic'
|
||||||
extVersionCode = 17
|
extVersionCode = 18
|
||||||
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -117,6 +117,7 @@ class Tapastic : ConfigurableSource, ParsedHttpSource() {
|
||||||
|
|
||||||
override fun headersBuilder(): Headers.Builder = Headers.Builder()
|
override fun headersBuilder(): Headers.Builder = Headers.Builder()
|
||||||
.add("Referer", "https://m.tapas.io")
|
.add("Referer", "https://m.tapas.io")
|
||||||
|
.set("User-Agent", USER_AGENT)
|
||||||
|
|
||||||
override fun setupPreferenceScreen(screen: PreferenceScreen) {
|
override fun setupPreferenceScreen(screen: PreferenceScreen) {
|
||||||
val chapterVisibilityPref = SwitchPreferenceCompat(screen.context).apply {
|
val chapterVisibilityPref = SwitchPreferenceCompat(screen.context).apply {
|
||||||
|
@ -519,6 +520,7 @@ class Tapastic : ConfigurableSource, ParsedHttpSource() {
|
||||||
private const val CHAPTER_VIS_PREF_KEY = "lockedChapterVisibility"
|
private const val CHAPTER_VIS_PREF_KEY = "lockedChapterVisibility"
|
||||||
private const val SHOW_LOCK_PREF_KEY = "showChapterLock"
|
private const val SHOW_LOCK_PREF_KEY = "showChapterLock"
|
||||||
private const val SHOW_AUTHORS_NOTES_KEY = "showAuthorsNotes"
|
private const val SHOW_AUTHORS_NOTES_KEY = "showAuthorsNotes"
|
||||||
|
private const val USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:105.0) Gecko/20100101 Firefox/105.0"
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Split off into library file or something, because Webtoons is using the exact same TextInterceptor
|
// TODO: Split off into library file or something, because Webtoons is using the exact same TextInterceptor
|
||||||
|
|
Loading…
Reference in New Issue