72 Commits

Author SHA1 Message Date
Terry Geng
dbe317bf31 feat: beautified current song string, fix ytplay index problem 2020-03-02 19:19:13 +08:00
Terry Geng
26eb650e9b chore: ytquery error message 2020-03-02 11:35:07 +08:00
Terry Geng
e17d5446bf feat: add ytquery and ytplay 2020-03-02 11:23:16 +08:00
Terry Geng
b71a6a0d4e fix: get_recursive_file_list_sorted not completed replaced in other files 2020-02-29 17:10:22 +08:00
Terry Geng
cf1feea870 chore: optimize logging. separate bot log and web log. 2020-02-28 14:15:57 +08:00
Terry Geng
948aabd9ab fix: file path error when start as daemon 2020-02-28 10:35:27 +08:00
Terry Geng
db6b617335 fix: ways to see if parameter is empty 2020-02-27 19:08:53 +08:00
Terry Geng
4a7dfc48c2 fix: missed repeat command 2020-02-27 11:55:00 +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
020ddbca22 fix: 'jump' now remove files behind in one-shot mode. #79 2020-02-27 09:44:21 +08:00
Terry Geng
a46a1d7073 refactor: changed all 'loop' into 'repeat', which is the term used in iTunes 2020-02-26 23:37:53 +08:00
Terry Geng
76547886d1 fix: I put the wrong string. 2020-02-26 23:19:19 +08:00
Terry Geng
b85956ef2f feat: database and config support for playback mode. 2020-02-26 22:56:07 +08:00
Terry Geng
6a1320f8f9 feat: three playback mode "one-shot", "loop", "random"
fix: bugs when you are on the last item and you want
remove it.

Some tips for testing:
Observe the behavior when you are playing the last
item and you remove the last item, for all three modes.
2020-02-26 22:09:53 +08:00
Terry Geng
388016a5af refactor: playlist inherits list. 2020-02-26 20:51:30 +08:00
Terry Geng
3e5a48027c feat: \!play will set is_pause to False if the queue is empty #77 2020-02-26 18:10:04 +08:00
Terry Geng
7c8c1f9d9a refactor: avoid use youtube-dl if music is existed locally. #78 2020-02-26 17:46:14 +08:00
Terry Geng
9ce98196a1 fix: impose file path check for launch_music and resume, fixed #77 2020-02-26 16:57:56 +08:00
Terry Geng
78b11d1fb5 fix: missed token part for joinme 2020-02-25 19:40:27 +08:00
Terry Geng
8622ff1c66 fix: duckv placeholder problem. rm problem 2020-02-25 10:09:05 +08:00
Azlux
4f6990d4da fix radio command 2020-02-24 19:29:31 +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