Update media S3 URL to include the year in the path.

This commit is contained in:
Jonathan Bernard 2017-02-21 11:30:54 -06:00 committed by Jonathan Bernard
parent d954557000
commit ea817b2520

View File

@ -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' }
}