diff --git a/app/Http/Controllers/Api/Web/TracksController.php b/app/Http/Controllers/Api/Web/TracksController.php index ba6d36df..391b7bfe 100644 --- a/app/Http/Controllers/Api/Web/TracksController.php +++ b/app/Http/Controllers/Api/Web/TracksController.php @@ -357,6 +357,11 @@ class TracksController extends ApiControllerBase $query->whereIn('show_song_track.show_song_id', Request::get('songs')); } + if (Request::has('archive')) { + // Select which archive to view + $query->where('source', Request::get('archive')); + } + return $query; } } diff --git a/public/templates/tracks/index.html b/public/templates/tracks/index.html index f14e53ec..6a66f955 100644 --- a/public/templates/tracks/index.html +++ b/public/templates/tracks/index.html @@ -63,6 +63,17 @@ +