예제 #1
0
파일: __init__.py 프로젝트: Haoyi-Ji/Pirt-C
def artist(artistid):
    if request.method == 'POST':
        return redirect(url_for('search', query=request.form['query']))

    from SongDownloader import SongDownloader
    sd = SongDownloader()
    artistdata = sd.getArtistData(artistid)

    return render_template('artist.html', artistdata=artistdata)
예제 #2
0
파일: __init__.py 프로젝트: Haoyi-Ji/Pirt-C
def search(query):
    if request.method == 'POST':
        return redirect(url_for('search', query=request.form['query']))
    
    from SongDownloader import SongDownloader
    sd = SongDownloader()
    searchResult = sd.search(query)

    return render_template('search.html', query=query, searchResult=searchResult)
예제 #3
0
파일: __init__.py 프로젝트: Haoyi-Ji/Pirt-C
def song(songid):
    if request.method == 'POST':
        return redirect(url_for('search', query=request.form['query']))

    from SongDownloader import SongDownloader
    sd = SongDownloader()
    songdata = sd.getSongData(songid)

    return render_template('song.html', songdata=songdata)