forked from recloudstream/cloudstream
Merge branch 'LagradOst:master' into master
This commit is contained in:
commit
1ad326e91a
1 changed files with 3 additions and 2 deletions
|
@ -143,7 +143,8 @@ class TenshiProvider : MainAPI() {
|
|||
}
|
||||
|
||||
@SuppressLint("SimpleDateFormat")
|
||||
private fun dateParser(dateString: String): String? {
|
||||
private fun dateParser(dateString: String?): String? {
|
||||
if(dateString == null) return null
|
||||
try {
|
||||
val format = SimpleDateFormat("dd 'of' MMM',' yyyy")
|
||||
val newFormat = SimpleDateFormat("dd-MM-yyyy")
|
||||
|
@ -242,7 +243,7 @@ class TenshiProvider : MainAPI() {
|
|||
it.attr("href"),
|
||||
it.selectFirst(".episode-title")?.text()?.trim(),
|
||||
it.selectFirst("img")?.attr("src"),
|
||||
dateParser(it.selectFirst(".episode-date").text().trim()),
|
||||
dateParser(it?.selectFirst(".episode-date")?.text()?.trim()),
|
||||
null,
|
||||
it.attr("data-content").trim(),
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue