Ticket #3137: mythweb-music-playlist.2.patch

File mythweb-music-playlist.2.patch, 1.2 KB (added by otto at kolsi dot fi, 14 years ago)

updated patch

  • modules/music/mp3act_functions.php

     
    1313 *
    1414/**/
    1515
     16
    1617require_once('modules/music/mp3act_html_functions.php');
    1718
    1819define('MYTH_WEB_PLAYLIST_NAME', 'MythWeb Temporary Playlist');
     
    14181419    if ($song_id > 0)
    14191420    {
    14201421      $row = $song_info[$song_id];
    1421       $tmp .= '#EXTINF:'.intval($row['length']).','.$row['artist_name'].' - '.$row['name']."\n";
     1422      $tmp .= '#EXTINF:'.intval($row['length']).','.utf8_decode($row['artist_name']).' - '.utf8_decode($row['name'])."\n";
    14221423      $tmp .= music_dir().'mp3act_playstream.php?i='.$row['song_id'].'&q='.$quality."\n";
    14231424    }
    14241425    else if ($song_id < 1)
     
    14651466    {
    14661467      while ($row = mysql_fetch_array($result))
    14671468      {
    1468         $tmp .= '#EXTINF:'.intval($row['length']).','.$row['artist_name'].' - '.$row['name']."\n";
     1469        $tmp .= '#EXTINF:'.intval($row['length']).','.utf8_decode($row['artist_name']).' - '.utf8_decode($row['name'])."\n";
    14691470        $tmp .= music_dir().'mp3act_playstream.php?i='.$row['song_id'].'&q='.$quality."\n";
    14701471      }
    14711472      mysql_free_result($result);