MP3 Tagger: How to modify listed genres?

Need help? Post your questions here.

Moderator: moderators

MP3 Tagger: How to modify listed genres?

Postby BrianDelShasta » Sat Sep 03, 2011 6:40 am

Greetings,
Does anyone know how to modify the default genres supplied by the editTags.jsp page?
I know you can manually enter anything you want if you're willing to enter it for all the songs. However, you can only use the 'set' link with those genres that are supplied.

How can I get to the guts of the tagging module?

Thank you.
BrianDelShasta
 
Posts: 116
Joined: Tue Jun 03, 2008 4:45 am
Location: USA

Re: MP3 Tagger: How to modify listed genres?

Postby BrianDelShasta » Sat Sep 03, 2011 10:14 am

If anyone is interested here's what I did to achieve this:

Edit file 'editTags.jsp':

Locate and remove:

Code: Select all
        <th class="ruleTableHeader" style="white-space: nowrap">
            <select name="genreAll" style="width:7em">
                <option value=""/>
                <c:forEach items="${model.allGenres}" var="genre">
                    <option ${genre eq model.defaultGenre ? "selected" : ""} value="${genre}">${genre}</option>
                </c:forEach>
            </select>

            <a href="javascript:setGenre()"><fmt:message key="edittags.set"/></a>
        </th>


Replace with this:

Code: Select all
        <th class="ruleTableHeader" style="white-space: nowrap">
            <select name="genreAll" style="width:7em">
         <option value=""></option>
         <option value="Audio Books">Audio Books</option>
         <option value="Classical">Classical</option>
         <option value="Comedy">Comedy</option>
         <option value="Country">Country</option>
         <option value="Electronic">Electronic</option>
         <option value="Folk">Folk</option>
         <option value="Jazz">Jazz</option>
         <option value="Misc">Misc</option>
         <option value="Pop">Pop</option>
         <option value="Rap & Hip Hop">Rap & Hip Hop</option>
         <option value="Reggae">Reggae</option>
         <option value="Rock">Rock</option>
         <option value="Soul & R&B">Soul & R&B</option>
         <option value="Soundtrack">Soundtrack</option>
         <option value="Video Game">Video Game</option>
         <option value="World">World</option>           
                    </select>

            <a href="javascript:setGenre()"><fmt:message key="edittags.set"/></a>
        </th>


You could also replace the drop down box with a simple text box so that you can type in anything you like and click the 'set' button to change all tracks.
BrianDelShasta
 
Posts: 116
Joined: Tue Jun 03, 2008 4:45 am
Location: USA


Return to Help

Who is online

Users browsing this forum: No registered users and 19 guests