Skip to content
Snippets Groups Projects
Commit 0edc34db authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

MediaGroup: fix StringIndexOutOfBoundsException

parent b794c160
No related branches found
No related tags found
No related merge requests found
Pipeline #7285 passed with stage
in 27 minutes and 10 seconds
......@@ -79,7 +79,7 @@ class MediaGroup private constructor(media: MediaWrapper, filename: Boolean) : M
//Handle titles starting with "The"
val groupOffset = if (group.startsWith("the")) 4 else 0
if (title.startsWith("the"))
if (title.startsWith("the") && title.length > 4)
title = title.substring(4)
// find common prefix
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment