diff --git a/service/src/main/groovy/com/jdbernard/nlsongs/servlet/NLSongsContext.groovy b/service/src/main/groovy/com/jdbernard/nlsongs/servlet/NLSongsContext.groovy index 6f81d79..896874e 100644 --- a/service/src/main/groovy/com/jdbernard/nlsongs/servlet/NLSongsContext.groovy +++ b/service/src/main/groovy/com/jdbernard/nlsongs/servlet/NLSongsContext.groovy @@ -11,7 +11,8 @@ public class NLSongsContext { public static String mediaBaseUrl public static String makeUrl(Service service, Song song) { - return mediaBaseUrl + '/' + service.localDate.toString('yyyy-MM-dd') + '_' + + return mediaBaseUrl + '/' + service.localDate.toString('yyyy') + "/" + + service.localDate.toString('yyyy-MM-dd') + '_' + service.serviceType.name().toLowerCase() + '_' + song.name.replaceAll(/[\s'"\\\/\?!]/, '') + '.mp3' } }