258 Commits

Author SHA1 Message Date
Terry Geng
9ce98196a1 fix: impose file path check for launch_music and resume, fixed #77 2020-02-26 16:57:56 +08:00
Azlux
5fa57f48df fix constant placeholder missing 2020-02-24 19:19:29 +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
azlux
951934602e
Merge pull request #70 from ghost/Buginit-config-channel-1
Fixed ignoring channel in config file.
2020-02-22 20:35:19 +01:00
Terry Geng
3e0b5f5cfd fix file name detection bug. 2020-02-11 10:48:03 +08:00
Terry Geng
838b3f2d7c extract metadata from m4a 2020-02-10 23:27:35 +08:00
Buginit
cdbc3073b9 Update mumbleBot.py
Fixed ignoring channel in config file.
2020-02-09 13:46:07 +01:00
Buginit
2c485472b3
fixed issues with the url command 2020-02-09 12:54:14 +01:00
Terry Geng
33ba7b0b7b bug fixed, #68 2020-02-09 11:44:59 +08:00
Terry Geng
83f20d0d34 ducking feature logging problem fix 2 2020-02-09 11:28:43 +08:00
Terry Geng
ddf29dff3a ducking feature logging problem fix 2020-02-09 11:27:43 +08:00
Terry Geng
ef9ac57d8e ducking improved #68 2020-02-09 11:21:46 +08:00
Terry Geng
c5fa90b78d add ducking feature. 2020-02-08 18:40:59 +08: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
9f7a9287a2 beautified, bugs fixed 2020-02-06 10:11:48 +08:00
Terry Geng
4e905c1c56 merge with azlux's branch 2020-02-05 23:29:48 +08:00
Terry Geng
0b55c21cb7 fix exception if mp3 has no ID3 tag continue 2020-02-05 11:58:21 +08:00
Terry Geng
351dbac30e fix exception if mp3 has no ID3 tag continue 2020-02-05 11:52:03 +08:00
Terry Geng
25f3596372 fix exception if mp3 has no ID3 tag 2020-02-05 11:48:31 +08:00
Terry Geng
c1c7c9851f reformat logging continue 2020-02-05 11:24:13 +08:00
Terry Geng
eb95fdcb58 reformat logging 2020-02-05 11:08:03 +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
abd5eb8e95 beautify and enhance web interface, debug 2020-02-04 23:30:56 +08:00
Terry Geng
98f096f08f add feature: read album picture from file/url 2020-02-04 18:00:11 +08:00
Terry Geng
30879db7b8 add Playlist class 2020-02-04 14:30:03 +08:00
ajmandourah
f50b660451
isAlive is now deprecated 2020-02-03 06:47:23 +01:00
Azlux
f2c153e582 Fix issue bad bot anwser 2020-01-05 00:49:41 +01:00
Azlux
eb24594d54 logfile and reload youtube-dl 2019-12-24 13:52:52 +01:00
Azlux
3684f54928 new version 2019-07-31 00:08:45 +02:00
elpatron68
daeda480bb Minor text changes 2019-07-28 16:26:06 +02:00
elpatron68
4dec525627 Minor text changes 2019-07-28 15:43:12 +02:00
elpatron68
fc22e5487d Fix wrong placed </table> 2019-07-28 15:37:46 +02:00
elpatron68
58a654199a Fixed identation (again) 2019-07-28 15:32:58 +02:00
elpatron68
83c458261c Fix message shortening 2019-07-28 15:29:56 +02:00
elpatron68
715e27cc43 Fixed wrong identation 2019-07-28 15:23:19 +02:00
elpatron68
b355a604be Changed string formatting to %s 2019-07-28 15:14:00 +02:00
elpatron68
68b789fc58 Shorten station name to 12 chars 2019-07-28 12:00:16 +02:00
elpatron68
03c3219996 Change log level 2019-07-28 11:51:09 +02:00
elpatron68
0da6f2d263 Add temporary logging 2019-07-28 11:49:50 +02:00
elpatron68
d78c480709 Shorten query results if too long 2019-07-28 11:43:19 +02:00
elpatron68
a68e9b683d Remove homepage from result to keep it shorter 2019-07-28 10:32:51 +02:00
elpatron68
9df4d98d12 Handle result message > 5000 chars 2019-07-28 10:27:23 +02:00
elpatron68
9201937728 Fix table format 2019-07-28 10:23:25 +02:00
elpatron68
c612e48898 Fix another KeyError: 'tags' 2019-07-28 10:20:46 +02:00
elpatron68
c3a6f848a5 Fix KeyError: 'name' 2019-07-28 10:19:29 +02:00
elpatron68
6e624ba67f Table 2019-07-28 10:13:33 +02:00
elpatron68
8ae6e6b399 More information in query results 2019-07-28 10:10:10 +02:00
elpatron68
fa1ec8a52e Add table header line 2019-07-27 22:43:24 +02:00
elpatron68
422200e2bd No header line in table 2019-07-27 22:41:41 +02:00