Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MP3 Year / Date #78

Open
samhnky opened this issue Mar 6, 2019 · 0 comments
Open

MP3 Year / Date #78

samhnky opened this issue Mar 6, 2019 · 0 comments

Comments

@samhnky
Copy link

samhnky commented Mar 6, 2019

Is anyone able to provide guidance on how to add the ID3 Year/Date tag?
http://wheelersburgfaithbaptistchurch.com/connect/sermon-audio

I added the following code to the following file: content/mp3browser/html/HtmlNameColumn.php

  protected function getCellText($data, $isAlternate) {
       $html = $this->addItemAnchor($data);
       if ($data->getTitle()) {
           $title = $this->wrapAnchor($data, $data->getTitle());
           $html .= "<span style='font-size: .7em;'>Message Title:</span><strong>" . $title . "</strong>";
       }
       if ($data->getArtist()) {
           $artist = $this->wrapAnchor($data, $data->getArtist());
           $html .= "<br/><span style='font-size: .7em;'>Speaker:</span>" . $artist;
       }
        if ($data->getDate()) {
           $date = $this->wrapAnchor($data, $data->getDate());
           $html .= "<br/><span style='font-size: .7em;'>Date:</span>" . $date;
       }
       return $html;
   }

If I use $date I do not get an error, if I use Year I get an error,..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant