def get(self, requested_artist_name, requested_album_name): """ Renders an empty album template """ artist_name = utils.deurlify(requested_artist_name) album_name = utils.deurlify(requested_album_name) self._render_playlist_view('album.html', artist_name=artist_name, album_name=album_name)
def get(self, requested_artist_name, requested_song_name): """ Renders an empty album template """ share = None artist_name = utils.deurlify(requested_artist_name) song_name = utils.deurlify(requested_song_name) yt = self.get_argument('yt', None) img = self.get_argument('img', None) if yt is not None and img is not None: share = {'yt': yt, 'img': img} self._render_playlist_view('song.html', artist_name=artist_name, song_name=song_name, title=song_name + ' by ' + artist_name, share=share)
def get(self, requested_artist_name, requested_song_name): """ Renders an empty album template """ share = None artist_name = utils.deurlify(requested_artist_name) song_name = utils.deurlify(requested_song_name) yt = self.get_argument('yt', None) img = self.get_argument('img', None) if yt is not None and img is not None: share = {'yt': yt, 'img': img} self._render_playlist_view('song.html', artist_name=artist_name, song_name=song_name, title = song_name + ' by ' + artist_name, share=share)
def get(self, requested_artist_name): artist_name = utils.deurlify(requested_artist_name) self._render_playlist_view('artist.html', artist_name=artist_name)