Fix URL for download-cached service

This commit is contained in:
Kelvin Zhang 2015-10-29 14:36:36 +00:00
parent 88b57a631a
commit a5bc7491e0

View file

@ -18,7 +18,7 @@ angular.module('ponyfm').factory('download-cached', [
'$rootScope', '$http', '$log' '$rootScope', '$http', '$log'
($rootScope, $http, $log) -> ($rootScope, $http, $log) ->
download = (type, id, format) -> download = (type, id, format) ->
url = '/api/web/' + type + '/download-cached/' + id + '/' + format url = '/api/web/' + type + '/cached/' + id + '/' + format
encodingComplete = (response) -> encodingComplete = (response) ->
if response.data.url == null if response.data.url == null