Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(en/superstream): enable NSFW & (en/nollyverse): added missing refactor #3064

Merged
merged 8 commits into from
Mar 23, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/en/nollyverse/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ext {
extName = 'NollyVerse'
extClass = '.NollyVerse'
extVersionCode = 3
extVersionCode = 4
fakebhai marked this conversation as resolved.
Show resolved Hide resolved
}

apply from: "$rootDir/common.gradle"
Binary file removed src/en/nollyverse/res/web_hi_res_512.png
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import org.jsoup.nodes.Document
import org.jsoup.nodes.Element
import uy.kohesive.injekt.Injekt
import uy.kohesive.injekt.api.get
import java.lang.Exception

class NollyVerse : ConfigurableAnimeSource, ParsedAnimeHttpSource() {

Expand Down Expand Up @@ -260,7 +259,7 @@ class NollyVerse : ConfigurableAnimeSource, ParsedAnimeHttpSource() {

private fun nextPageSelector(): String = "ul.pagination.pagination-md li:nth-last-child(2)"

override fun searchAnimeNextPageSelector(): String = throw Exception("Not used")
override fun searchAnimeNextPageSelector(): String = throw UnsupportedOperationException()

// =========================== Anime Details ============================

Expand Down Expand Up @@ -339,7 +338,7 @@ class NollyVerse : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
}
}

override fun episodeListSelector() = throw Exception("not used")
override fun episodeListSelector() = throw UnsupportedOperationException()

// ============================ Video Links =============================

Expand Down Expand Up @@ -385,11 +384,11 @@ class NollyVerse : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
return videoList.sort()
}

override fun videoListSelector() = throw Exception("not used")
override fun videoListSelector() = throw UnsupportedOperationException()

override fun videoFromElement(element: Element) = throw Exception("not used")
override fun videoFromElement(element: Element) = throw UnsupportedOperationException()

override fun videoUrlParse(document: Document) = throw Exception("not used")
override fun videoUrlParse(document: Document) = throw UnsupportedOperationException()

// ============================= Utilities ==============================

Expand Down
3 changes: 2 additions & 1 deletion src/en/superstream/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
ext {
extName = 'SuperStream'
extClass = '.SuperStream'
extVersionCode = 10
extVersionCode = 11
isNsfw = true
}

apply from: "$rootDir/common.gradle"
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,7 @@ class SuperStream : ConfigurableAnimeSource, AnimeHttpSource() {
val entry = entryValues[index] as String
preferences.edit().putString(key, entry).commit()
}
}
screen.addPreference(videoQualityPref)
}.also(screen::addPreference)
}

private fun LinkData.toJson(): String {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ class SuperStreamAPI(val json: Json) {
private val client = configureToIgnoreCertificate()

// 0 to get nsfw
private val hideNsfw = 1
private val hideNsfw = 0
fakebhai marked this conversation as resolved.
Show resolved Hide resolved

private val headers = Headers.headersOf(
"Platform",
Expand Down