JlSonic/JlSonic/JlSonic.jl

51 lines
1.1 KiB
Julia
Raw Normal View History

2019-05-17 20:22:01 +02:00
__precompile__()
module JlSonic
using Beets
using LightXML
import UUIDs
import HTTP
2019-05-19 22:24:18 +02:00
using JSON2
2019-05-17 20:22:01 +02:00
2019-05-19 23:27:44 +02:00
# # Playlist cover art support
# The idea is to sum all the album arts in some way. But it's easier to get one random
# using FileIO, Images
2019-05-17 20:22:01 +02:00
include("types.jl")
export Playlist, Album, Artist
2019-05-21 11:05:53 +02:00
const domain = "nixo.xyz"
const users = User[]
const user_playlists = Vector{Playlist}()
2019-05-17 20:22:01 +02:00
include("api.jl")
export ping, getLicense,
# Browsing
2019-05-21 11:05:53 +02:00
getMusicFolders, # getIndexes,
getMusicDirectory,
2019-05-17 20:22:01 +02:00
getGenres, getArtists, getArtist, getAlbum, getSong,
# Album/song list
getAlbumList, getAlbumList2, getRandomSongs,
getSongsByGenre, getNowPlaying, getStarred, getStarred2,
# Searching
search3,
# Playlists
getPlaylists, getPlaylist, createPlaylist,
updatePlaylist, deletePlaylist,
# Media retrieval
stream,
# download, hls, getCaptions,
getCoverArt, # getLyrics, getAvatar,
# User management
getUser # getUsers, createUser, updateUser, deleteUser, changePassword
include("errors.jl")
export auth_failed
include("beethelpers.jl")
include("beet2xml.jl")
2019-05-21 11:05:53 +02:00
include("login.jl")
2019-05-17 20:22:01 +02:00
end # module JlSonic