diff --git a/src/main/app.js b/src/main/app.js index 762094b..95130f1 100644 --- a/src/main/app.js +++ b/src/main/app.js @@ -125,7 +125,7 @@ define([ 'angular', $routeProvider.when( '/movie/:id', { templateUrl: '/tmdb/partials/movie/movie.html', controller: 'MovieController' } ); $routeProvider.when( '/television/:tvshow_id', { templateUrl: '/tmdb/partials/television/television.html', controller: 'TelevisionController' } ); - $routeProvider.when( '/television/:tvshow_id/season/:season_id', { templateUrl: '/tmdb/partials/television/television.html', controller: 'TelevisionSeasonController' } ); + $routeProvider.when( '/television/:tvshow_id/season/:season_number', { templateUrl: '/tmdb/partials/television/television.html', controller: 'TelevisionSeasonController' } ); $routeProvider.when( '/television/:tvshow_id/season/:season_id/episode/:episode_id', { templateUrl: '/tmdb/partials/television/television.html', controller: 'TelevisionEpisodeController' } ); //$routeProvider.when( '/movie/:name/:id', { templateUrl: '/tmdb/partials/simpleMovie/simpleMovie.html', controller: 'SimpleMovieController' } ); diff --git a/src/main/tmdb/partials/awesomeSearch/awesomeSearchResults.html b/src/main/tmdb/partials/awesomeSearch/awesomeSearchResults.html index 4b961aa..7768909 100644 --- a/src/main/tmdb/partials/awesomeSearch/awesomeSearchResults.html +++ b/src/main/tmdb/partials/awesomeSearch/awesomeSearchResults.html @@ -7,7 +7,11 @@ {{result.media_type}} - {{result.formatName}} + + {{result.formatName}} + + + {{result.formatName}} @@ -17,4 +21,4 @@ - \ No newline at end of file + diff --git a/src/main/tmdb/partials/television/TelevisionSeasonController.js b/src/main/tmdb/partials/television/TelevisionSeasonController.js index b027626..9f84511 100644 --- a/src/main/tmdb/partials/television/TelevisionSeasonController.js +++ b/src/main/tmdb/partials/television/TelevisionSeasonController.js @@ -31,8 +31,8 @@ define( [ 'angular', console.log("Route params: ", $routeParams ); - /* ROUTE definition: '/television/:tvshow_id/season/:season_id' */ - TMDBAPIService.getTVShowSeason( $routeParams.tvshow_id, $routeParams.season_id ).then( function( season ) { + /* ROUTE definition: '/television/:tvshow_id/season/:season_number' */ + TMDBAPIService.getTVShowSeason( $routeParams.tvshow_id, $routeParams.season_number ).then( function( season ) { console.log("Season information: ", season ); } ); diff --git a/src/main/tmdb/services/TMDBAPIService.js b/src/main/tmdb/services/TMDBAPIService.js index 2e26aad..a60582a 100644 --- a/src/main/tmdb/services/TMDBAPIService.js +++ b/src/main/tmdb/services/TMDBAPIService.js @@ -82,10 +82,10 @@ define( [ 'angular', } ); }; - this.getTVShowSeason = function( tvShowID, tvSeasonID ) { + this.getTVShowSeason = function( tvShowID, seasonIndex ) { var req = { method: 'GET', - url: apiBaseUrl + "/tv/" + tvShowID + "/season/" + tvSeasonID, + url: apiBaseUrl + "/tv/" + tvShowID + "/season/" + seasonIndex, params: { api_key: apiKey }