add creators field to author tag parsing

This commit is contained in:
deniscerri 2025-12-08 16:39:39 +01:00
parent 4a23ad3897
commit b1cd34c37d
No known key found for this signature in database
GPG key ID: 95C43D517D830350

View file

@ -208,7 +208,7 @@ class YTDLPUtil(private val context: Context, private val commandTemplateDao: Co
val authorTags = mutableListOf("uploader", "channel", "playlist_uploader", "uploader_id")
if (url.isYoutubeURL()) {
authorTags.addAll(0, listOf("artists", "artist"))
authorTags.addAll(0, listOf("artists", "artist", "creators"))
}
var author = jsonObject.getStringByAny(*authorTags.map { it }.toTypedArray()).removeSuffix(" - Topic")
var duration = jsonObject.getIntByAny("duration").toString()