Skip to content

Commit

Permalink
changed gogoAnime domain
Browse files Browse the repository at this point in the history
  • Loading branch information
Sovan22 committed Nov 26, 2023
1 parent c3a5f01 commit e62d30f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import com.demomiru.tokeiv2.utils.encodeStringToInt
import com.demomiru.tokeiv2.utils.passData
import com.demomiru.tokeiv2.watching.ContinueWatching
import com.demomiru.tokeiv2.watching.ContinueWatchingDatabase
import com.google.common.collect.Iterators.getNext
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
Expand Down Expand Up @@ -111,7 +112,10 @@ class AnimeDetailsFragment : Fragment() {

lifecycleScope.launch (Dispatchers.IO) {
val details = animeInfo.getAnimeDetails(title)
val gogoDetails = gogoSrc.load(url)
val gogoDetails: GogoAnime.AnimeDetails = try{gogoSrc.load(url)}catch (e:Exception){
println(e.printStackTrace())
GogoAnime.AnimeDetails()
}

withContext(Dispatchers.Main){
println(details.related_anime)
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/java/com/demomiru/tokeiv2/utils/GogoAnime.kt
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ class GogoAnime{
return ""
}

private var mainUrl = "https://gogoanime.lu"
private var mainUrl = "https://gogoanime3.net"
// "https://gogoanime.lu"
private var name = "GogoAnime"
private val hasQuickSearch = false
private val hasMainPage = true
Expand Down

0 comments on commit e62d30f

Please sign in to comment.