예제 #1
0
파일: client.py 프로젝트: petrushev/txplaya
def libraryInsert(hashes, position=None):
    url = baseUrl() + '/playlist/library/insert/'
    if position is not None:
        url = url + str(position) + '/'
    hashes_ = ','.join(hashes)
    url = url + hashes_
    return _requestGet(url)
예제 #2
0
def libraryInsert(hashes, position=None):
    url = baseUrl() + '/playlist/library/insert/'
    if position is not None:
        url = url + str(position) + '/'
    hashes_ = ','.join(hashes)
    url = url + hashes_
    return _requestGet(url)
예제 #3
0
def infostream():
    url = baseUrl() + '/infostream'
    rq = QStreamRequest(url)
    rq.get()
    return rq
예제 #4
0
파일: client.py 프로젝트: petrushev/txplaya
def clear():
    url = baseUrl() + '/playlist/clear'
    return _requestGet(url)
예제 #5
0
def prev():
    url = '%s/player/prev' % baseUrl()
    return _requestGet(url)
예제 #6
0
def rescanLibrary():
    url = baseUrl() + '/library/rescan'
    rq = QStreamRequest(url)
    rq.get()
    return rq
예제 #7
0
파일: client.py 프로젝트: petrushev/txplaya
def moveTrack(start, end):
    url = '%s/playlist/move/%d/%d' % (baseUrl(), start, end)
    return _requestGet(url)
예제 #8
0
def stop():
    url = '%s/player/stop' % baseUrl()
    return _requestGet(url)
예제 #9
0
파일: client.py 프로젝트: petrushev/txplaya
def rescanLibrary():
    url = baseUrl() + '/library/rescan'
    rq = QStreamRequest(url)
    rq.get()
    return rq
예제 #10
0
def insert(filepath, position=None):
    url = baseUrl() + '/playlist/insert/'
    if position is not None:
        url = url + str(position) + '/'
    url = url + url_quote(filepath[1:])
    return _requestGet(url)
예제 #11
0
파일: client.py 프로젝트: petrushev/txplaya
def prev():
    url = '%s/player/prev' % baseUrl()
    return _requestGet(url)
예제 #12
0
파일: client.py 프로젝트: petrushev/txplaya
def getLibrary():
    url = baseUrl() + '/library'
    return _requestGet(url)
예제 #13
0
파일: client.py 프로젝트: petrushev/txplaya
def next_():
    url = '%s/player/next' % baseUrl()
    return _requestGet(url)
예제 #14
0
파일: client.py 프로젝트: petrushev/txplaya
def stop():
    url = '%s/player/stop' % baseUrl()
    return _requestGet(url)
예제 #15
0
파일: client.py 프로젝트: petrushev/txplaya
def pause():
    url = '%s/player/pause' % baseUrl()
    return _requestGet(url)
예제 #16
0
파일: client.py 프로젝트: petrushev/txplaya
def getPlaylist():
    url = baseUrl() + '/playlist'
    return _requestGet(url)
예제 #17
0
def clear():
    url = baseUrl() + '/playlist/clear'
    return _requestGet(url)
예제 #18
0
파일: client.py 프로젝트: petrushev/txplaya
def insert(filepath, position=None):
    url = baseUrl() + '/playlist/insert/'
    if position is not None:
        url = url + str(position) + '/'
    url = url + url_quote(filepath[1:])
    return _requestGet(url)
예제 #19
0
def moveTrack(start, end):
    url = '%s/playlist/move/%d/%d' % (baseUrl(), start, end)
    return _requestGet(url)
예제 #20
0
def remove(position):
    url = baseUrl() + '/playlist/remove/' + str(position)
    return _requestGet(url)
예제 #21
0
파일: client.py 프로젝트: petrushev/txplaya
def play(position=None):
    url = baseUrl() + '/player/start'
    if position is not None:
        url = url + '/' + str(position)
    return _requestGet(url)
예제 #22
0
def play(position=None):
    url = baseUrl() + '/player/start'
    if position is not None:
        url = url + '/' + str(position)
    return _requestGet(url)
예제 #23
0
파일: client.py 프로젝트: petrushev/txplaya
def infostream():
    url = baseUrl() + '/infostream'
    rq = QStreamRequest(url)
    rq.get()
    return rq
예제 #24
0
def pause():
    url = '%s/player/pause' % baseUrl()
    return _requestGet(url)
예제 #25
0
파일: client.py 프로젝트: petrushev/txplaya
def loadPlaylist(name):
    url = baseUrl() + '/playlist/load/' + url_quote(name)
    return _requestGet(url)
예제 #26
0
def next_():
    url = '%s/player/next' % baseUrl()
    return _requestGet(url)
예제 #27
0
파일: client.py 프로젝트: petrushev/txplaya
def savePlaylist(name):
    url = baseUrl() + '/playlist/save/' + url_quote(name)
    return _requestGet(url)
예제 #28
0
def getLibrary():
    url = baseUrl() + '/library'
    return _requestGet(url)
예제 #29
0
파일: client.py 프로젝트: petrushev/txplaya
def deletePlaylist(name):
    url = baseUrl() + '/playlist/delete/' + url_quote(name)
    return _requestGet(url)
예제 #30
0
파일: client.py 프로젝트: petrushev/txplaya
def playlistUndo():
    url = baseUrl() + '/playlist/undo'
    return _requestGet(url)
예제 #31
0
파일: client.py 프로젝트: petrushev/txplaya
def playlistRedo():
    url = baseUrl() + '/playlist/redo'
    return _requestGet(url)
예제 #32
0
def getPlaylist():
    url = baseUrl() + '/playlist'
    return _requestGet(url)
예제 #33
0
파일: client.py 프로젝트: petrushev/txplaya
def remove(position):
    url = baseUrl() + '/playlist/remove/' + str(position)
    return _requestGet(url)