181 Commits

Author SHA1 Message Date
Lartza
e69fa979fb Actually delete files when a download fails #80 2020-03-01 20:40:57 +02:00
Terry Geng
1b16dca551 fix: new version %s found 2020-02-29 20:19:17 +08:00
azlux
e5b52230a5
minor release 2020-02-29 11:10:39 +01:00
azlux
904d78b639
second hotfix for version 2020-02-29 02:15:14 +01:00
azlux
d31b13c7cf
hot fix version number 2020-02-29 02:09:04 +01:00
Azlux
7d5f8fc778 new version ! 2020-02-29 01:28:46 +01:00
azlux
fff3b1543d
avoid warning message #81 2020-02-28 16:13:40 +01:00
Terry Geng
756e2307ec fix: delete file if size is 0 #80 2020-02-28 19:58:11 +08:00
Terry Geng
cf1feea870 chore: optimize logging. separate bot log and web log. 2020-02-28 14:15:57 +08:00
Terry Geng
dc5a30b384 fix: file path error when start as daemon, continue 2020-02-28 10:46:46 +08:00
Terry Geng
948aabd9ab fix: file path error when start as daemon 2020-02-28 10:35:27 +08:00
Terry Geng
53ae085c57 fix: unexpected keyword argument 'file' in line 741 2020-02-28 10:05:09 +08:00
Terry Geng
2312b4da20 fix: file size as double check. #80 2020-02-27 21:20:50 +08:00
Terry Geng
b640ff4721 fix: process error from youtube-dl correctly. #80 2020-02-27 21:10:44 +08:00
azlux
f90482ab3c
bad config category fix 2020-02-27 13:11:18 +01: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
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
cad5dba31f chore: organize mumbleBot.py 2020-02-26 18:30:19 +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
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