Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #50 from Z-Jais/master
Browse files Browse the repository at this point in the history
Remove config log and add Lookism on Netflix
  • Loading branch information
Ziedelth authored Dec 13, 2022
2 parents 888a8c3 + 05e134c commit 45fc68c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class AnimationDigitalNetworkConverter(private val platform: AnimationDigitalNet
/// Convert anime from AnimationDigitalNetworkPlatform jsonObject to entity Anime
private fun convertAnime(checkedCountry: ICountry, jsonObject: JsonObject): Anime {
val showJson = jsonObject.getAsJsonObject("show") ?: throw AnimeNotFoundException("No show found")
Logger.config("Convert anime from $showJson")
// Logger.config("Convert anime from $showJson")

// ----- NAME -----
Logger.info("Get name...")
Expand Down Expand Up @@ -57,7 +57,7 @@ class AnimationDigitalNetworkConverter(private val platform: AnimationDigitalNet

/// Convert episode from AnimationDigitalNetworkPlatform jsonObject to entity Episode
fun convertEpisode(checkedCountry: ICountry, jsonObject: JsonObject, cachedEpisodes: List<String>): Episode {
Logger.config("Convert episode from $jsonObject")
// Logger.config("Convert episode from $jsonObject")

// ----- ANIME -----
Logger.info("Convert anime...")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import org.jsoup.Jsoup

class AnimeNewsNetworkConverter(private val platform: AnimeNewsNetworkPlatform) {
fun convertNews(checkedCountry: ICountry, jsonObject: JsonObject, cachedNews: List<String>): News {
Logger.config("Convert news from $jsonObject")
// Logger.config("Convert news from $jsonObject")

// ----- RELEASE DATE -----
Logger.info("Get release date...")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class CrunchyrollConverter(private val platform: CrunchyrollPlatform) {
}

private fun convertAnime(checkedCountry: ICountry, jsonObject: JsonObject): Anime {
Logger.config("Convert anime from $jsonObject")
// Logger.config("Convert anime from $jsonObject")

// ----- NAME -----
Logger.info("Get name...")
Expand Down Expand Up @@ -218,7 +218,7 @@ class CrunchyrollConverter(private val platform: CrunchyrollPlatform) {
jsonObject: JsonObject,
cachedEpisodes: List<String>
): Episode {
Logger.config("Convert episode from $jsonObject")
// Logger.config("Convert episode from $jsonObject")

// ----- RESTRICTIONS -----
Logger.info("Get restrictions...")
Expand Down Expand Up @@ -347,7 +347,7 @@ class CrunchyrollConverter(private val platform: CrunchyrollPlatform) {
}

fun convertNews(checkedCountry: ICountry, jsonObject: JsonObject, cachedNews: List<String>): News {
Logger.config("Convert news from $jsonObject")
// Logger.config("Convert news from $jsonObject")

// ----- RELEASE DATE -----
Logger.info("Get release date...")
Expand Down
5 changes: 5 additions & 0 deletions src/main/kotlin/fr/jais/scraper/platforms/NetflixPlatform.kt
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ class NetflixPlatform(scraper: Scraper) : IPlatform(
81499847,
"https://cdn.myanimelist.net/images/anime/1743/125204.jpg",
Calendar.WEDNESDAY
),
NetflixContent(
81177634,
"https://cdn.myanimelist.net/images/anime/1435/131396.jpg",
Calendar.THURSDAY
)
)
private val cache = mutableListOf<Cache>()
Expand Down

0 comments on commit 45fc68c

Please sign in to comment.