Migrate existing API functionality from general API #1
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Databases to migrate include:
Host:
boats/usr/local/share/sqlite_dbs/track_file_map.dbDatabase restructuring will likely occur as part of the larger project scope.
Current database structure:
1 table:
tracksColumns:
id(int) NOT NULLartist(text) NOT NULLsong(text) NOT NULLalbum(text) NOT NULLfile_path(text) NOT NULLlastplayed(int) NULL (not presently used)duration(int) NOT NULLalbum_art(blob) NULLgenre(text) NULLAPI Endpoints to migrate include:
radio/np: Provides information on the currently playing trackradio/request: Allows for song requestsradio/typeahead: Radio track DB typeahead (makes requesting songs easier esp for those with... memory issues), returns near matchesradio/get_queue: Returns the current play queueradio/skip: Skip to either the next track in the play queue or a specified UUIDradio/queue_shift: (?? is this presently used)radio/reshuffle: Reshuffle the play queueradio/queue_remove: Allows for removal of a specified UUID from the play queueradio/ls._next_: Internal/private method, called by LiquidSoap. Returns the next song to play (file path), also pops the track from the play queue in the process.API Files to migrate include:
./base.py./start.sh./constants.pyendpoints/radio.pyendpoints/constructors.pyutils/radio_util.pyThis work is no longer required due to consolidation of hardware resources.