79 Commits

Author SHA1 Message Date
Terry Geng
d35e564681
Merge branch 'master' into master 2020-04-18 23:28:31 +08:00
Daniel Gunzinger
fa727b6869 add delay for sending the new volume (client -> server) to limit packet send rate; only update the slider value when the value has changed 2020-04-18 16:46:38 +02:00
Daniel Gunzinger
b8ebcce945 use bootstrap styling for the slider, center it vertically; move slider between the two volume buttons 2020-04-18 10:18:43 +08:00
Daniel Gunzinger
08c76aab9d fix typeerror when setting volume; fix processing of volume updates in client-side webinterface 2020-04-18 10:18:43 +08:00
Daniel Gunzinger
f95e07c9af implement trivial volume control slider and reporting of current volume to webinterface 2020-04-18 10:18:43 +08:00
Daniel Gunzinger
788383f65c change where we get the current volume from in the status method; adjust html input range from 0-100 to 0-1, thus remove need for scaling in javascript 2020-04-17 17:12:26 +02:00
Daniel Gunzinger
b9fd17677b use bootstrap styling for the slider, center it vertically; move slider between the two volume buttons 2020-04-16 23:31:08 +02:00
Daniel Gunzinger
9e1f2d605d fix typeerror when setting volume; fix processing of volume updates in client-side webinterface 2020-04-16 19:36:14 +02:00
Daniel Gunzinger
82af558e5a implement trivial volume control slider and reporting of current volume to webinterface 2020-04-16 19:09:24 +02:00
Terry Geng
d32d30b795 fix: fixed #118, weird threading issue 2020-04-02 18:27:15 +08:00
Terry Geng
112564ba45 refactor: reviewed all message send to channel 2020-03-28 13:13:20 +08:00
Terry Geng
e695c36e5f fix: wrong length 2020-03-28 12:01:06 +08:00
Terry Geng
b18c70c146 fixed: playlist update problem in web interface 2020-03-28 10:45:32 +08:00
Terry Geng
732c698408 feat: fold playlist to avoid displaying too many items 2020-03-25 21:35:59 +08:00
Terry Geng
b2e5efec93 refactor: optimized playlist logic 2020-03-25 21:35:59 +08:00
Terry Geng
f93ac890a2 fix: 404 -> 204 2020-03-23 21:14:19 +08:00
Azlux
4b1b3b1096 adding favicon 2020-03-23 13:54:52 +01:00
Terry Geng
e256d50c5c refactor: removed useless files path cache 2020-03-22 21:59:05 +08:00
Terry Geng
3fb10905b7 refactor: database logic, add type hints 2020-03-22 14:30:56 +08:00
Terry Geng
bfa64547e8 fix: button confusion 2020-03-20 21:28:00 +08:00
Terry Geng
70f358f964 feat: add tags to playlist items in web interface 2020-03-20 13:24:31 +08:00
Terry Geng
701403b1a2 fix: tag selector beautifed 2020-03-20 12:30:03 +08:00
Terry Geng
9a8d6d6ea1 fix: index out of range when rebuild cache 2020-03-20 11:14:27 +08:00
Terry Geng
4e287d6b1b feat: tag editing feature in web interface 2020-03-20 10:35:09 +08:00
Terry Geng
7f29deba01 feat: add delete function 2020-03-20 00:09:07 +08:00
Terry Geng
c04a83c37c fix: too many pages, continue 2020-03-19 23:07:54 +08:00
Terry Geng
feb7150529 fix: too many pages 2020-03-19 23:02:16 +08:00
Terry Geng
fb7101a581 FEAT: MUSIC LIBRARY BROSWER 2020-03-19 22:51:32 +08:00
Terry Geng
7e768c926d feat: save theme to the localStorage 2020-03-12 09:25:10 +08:00
Terry Geng
44ce79189a feat: add dark mode in the web interface 2020-03-11 23:38:17 +08:00
Terry Geng
3e795fc713 fix: url wasn't cleared after added in the interface 2020-03-11 20:57:42 +08:00
Terry Geng
3fcf2ca0c2 feat: reverse the color of play mode button 2020-03-08 21:28:45 +08:00
Terry Geng
86b66cff77 chore: remove debug error marks 2020-03-08 15:18:42 +08:00
Terry Geng
d5e877b4da fix: wrong place to place the lock 2020-03-08 15:16:37 +08:00
Terry Geng
f931ae7d28 fix: util failed on some strange encoded files 2020-03-08 15:08:46 +08:00
Terry Geng
32b2875e52 feat: web interface more tag support 2020-03-08 13:52:34 +08:00
Terry Geng
2faa9dc8d3 feat: web interface tag support 2020-03-08 12:53:17 +08:00
Terry Geng
659fab48b4 feat: add automode into the webinterface #91 2020-03-07 15:22:50 +08:00
Terry Geng
7800bd3639 fix: random will not delete current song. changed one-shot icon.#79 2020-02-27 09:59:26 +08:00
Terry Geng
45f6923534 feat: playback mode selection in the web interface. 2020-02-27 00:41:16 +08:00
Azlux
c6fdf88ee2 relatif link 2020-02-25 01:13:32 +01:00
Terry Geng
97f2326d9b
Add more controls (#71)
* add more ducking command

* fix current music command

* provide more controls, like pause, resume, clear.

* add more controls in the web interface

* refactored and improved:
1. move get_music_tag_info to util, and
2. refined logic related to it.
3. now playlist will check for tag info thus update_music_tag_info is
useless and was removed
4. add "add folder" feature to !file asked in #65,
5. fix bugs related to !file

* truncate file list if too long

* fixed several tiny bugs

* fixed several tiny bugs continue

* fixed several tiny bugs continue continue

* fixed several tiny bugs continue**3

* fixed several tiny bugs continue**4

* added !filematch command to add files that match a regex pattern.

* truncate long message

* fix web interface delete file issue

* refresh after delete file

* add regex to listfile command

* refactored command part, added partial match support for commands

* organized

* added random command

* typo

* typo

* Fixed many bugs.

* Added workaround for azlux/pymumble#44 to fix the memory leak.

* changed logging style.

* fixed bugs related to random and resume

* fix now playing

* fixed issue related to download

* fixed issue related to download 2

* fixed thumbnail issue

* fixed add url problem in web interface

* REFACTORED, turned db.ini into sqlite3 database.

* fixed remove song problem

* fixed radio get title problem. auto download if tmp file is deleted

* fixed current index not loaded from database

* fixed: order of songs loaded from the database

* fixed: some obscure bugs. beautified error of commands

* added a workaround for TerryGeng/botamusique#1.

* beautified

* fixed: channel not loaded in the config

* fixed: auto checked for updates

* fixed: mysterious bug: sometimes "now playing" string cannot be properly
displayed.
The real reason is: do use <br />, do not use <br>. I tried hours to
find out this.

* chore: unified debug messages that refer to music items

* feav: fetch ffmpeg stderr mentioned in #72, reformatted logs.

* fix: async download not working

* fix: async download not working, still

* fix: async download not working, finished

* feat: queue command: ▶current playing item◀

* feat: support more than one command prefix

* chore: added some WARNINGs into default config file to avoid people to touch it.

* refactor: packed all string contants into constants.py, just to avoid people messing it around.

* refactor: required by azlux. Added a configuration.example.ini to keep people away from configuration.default.ini
2020-02-24 19:17:02 +01:00
Terry Geng
f52b5dc34d beautified radio display, and refresh playlist once web interface is loaded 2020-02-06 10:24:50 +08:00
Terry Geng
56036d8736 web interface support update multiple files at a time 2020-02-05 17:41:02 +08:00
Terry Geng
f5ca09716b web interface add ajax feature 2020-02-05 15:25:38 +08:00
Terry Geng
66bf4d94a1 beautify 2020-02-05 10:42:40 +08:00
Terry Geng
011c0a8567 web interface beautify, add file path check 2020-02-05 10:34:33 +08:00
Terry Geng
c25fad8be0 web interface add delete file function, debug 2020-02-05 10:14:56 +08:00
Terry Geng
a4128e1dc9 fix web interface bug 2020-02-05 09:56:37 +08:00
Terry Geng
1b13b0d34d fix style 2020-02-05 08:58:25 +08:00