Skip to content

Commit

Permalink
adjusted maximum printed album title and genre length to 32
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketMan committed Oct 26, 2023
1 parent 28e5eb7 commit 878565f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/PrintTags.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ protected function loadTags($tags) {
$title = $album["album"];
$cat = explode(" - ", ILibrary::GENRES[$album["category"]]);
$category = "(" . $cat[0] . ")";
$maxAlbumLen = 33 - mb_strlen($category);
$maxAlbumLen = 32 - mb_strlen($category);
if(mb_strlen($title) > $maxAlbumLen + 3)
$title = mb_substr($title, 0, $maxAlbumLen) . "...";

Expand Down

0 comments on commit 878565f

Please sign in to comment.