55 Commits

Author SHA1 Message Date
Terry Geng
c9b170d865
fix: Regex bug when parsing time. 2020-07-07 21:44:10 +08:00
Azlux
ccbde28ef9 New update method
manage testing deplyement
2020-06-23 12:38:02 +02:00
Terry Geng
a6f8c459d0
refactor: move volume part into a helper 2020-06-15 20:36:52 +08:00
Terry Geng
e61f791c82
feat: 'password' auth method: support user addition 2020-05-23 14:46:27 +08:00
Terry Geng
19d868d352
feat: display changelog when update is available 2020-05-23 11:47:35 +08:00
Terry Geng
fae93d99e0
feat: add config item for maximum upload file size 2020-05-19 09:12:52 +08:00
Terry Geng
0b7d0b8465
feat: huge feature: a floating player, with a movable playhead 2020-05-17 11:54:05 +08:00
Terry Geng
fbe3383b66 fix: avoid confusing error message when connection to the murmur server fails. 2020-05-09 20:49:52 +08:00
Terry Geng
a58af46f15 feat: enhanced logging to file support, redirecting all stdout and stderr to log file.
This feature woulb be useful for troubleshooting daemonized bots since now all exceptions are also wrote to log file.
2020-05-09 10:44:01 +08:00
Terry Geng
b33e6c6dda
fix: include "openbsd" in pipe_no_wait, fixed #116 2020-04-25 09:11:58 +08:00
Azlux
563ce8f37b fix indent 2020-04-18 14:55:12 +02:00
Terry Geng
e0e0819605 fix: use native python function to create non-blocking pipe.
Thanks @azlux for this solution. Close #116.

Also created an option 'redirect_ffmpeg_log' to enable/disable
reading the log of ffmpeg.
2020-04-18 19:46:20 +08:00
Terry Geng
fb7101a581 FEAT: MUSIC LIBRARY BROSWER 2020-03-19 22:51:32 +08:00
Terry Geng
4f12a7c903 feat: advanced url processing, whitespaces issue 2020-03-12 21:04:37 +08:00
Terry Geng
2c4e7c3370 feat: advanced url processing 2020-03-12 20:50:07 +08:00
Terry Geng
c1190d6317 fix: optimized urlban logic 2020-03-12 19:59:23 +08:00
Lartza
213a6c084b Cleanup 2020-03-10 23:07:29 +02:00
Lartza
b2ced96ba4 PEP8 2020-03-10 22:22:20 +02:00
Lartza
708f8a588d Fix ffmpeg pipe on Windows 2020-03-10 16:06:56 +02:00
Terry Geng
0ac9603072 feat: Lartza's urlban idea #91, fixed private message 2020-03-10 10:14:43 +08:00
Terry Geng
f931ae7d28 fix: util failed on some strange encoded files 2020-03-08 15:08:46 +08:00
Terry Geng
6ab8a7958a REFACTOR: ITEM REVOLUTION #91 2020-03-05 16:28:08 +08:00
Terry Geng
0760f3e624 fix: update playlist item based on id #90. 2020-03-03 23:15:46 +08:00
Terry Geng
acf43eed24 chore: beautified current song display 2020-03-03 16:15:47 +08:00
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
Azlux
52d98c7257 update every time if testing target 2020-02-29 14:15:43 +01:00
azlux
b7b365e8b8
hotfix version import conflict 2020-02-29 02:21:01 +01:00
Azlux
7d5f8fc778 new version ! 2020-02-29 01:28:46 +01: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
7c8c1f9d9a refactor: avoid use youtube-dl if music is existed locally. #78 2020-02-26 17:46:14 +08: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
eb24594d54 logfile and reload youtube-dl 2019-12-24 13:52:52 +01:00
Azlux
b6e2649953 fix autoupgrade 2019-07-31 00:23:28 +02:00
azlux
22744b3794
better update 2019-06-04 11:20:08 +02:00
Azlux
a9824537e9 autoupdate feature 2019-06-04 02:23:28 +02:00
Azlux
ef78b566af Admin features
Add URL and User abn list : #19 #18
Fix for #34
2019-01-13 21:42:34 +01:00
azlux
3a6aba9545 Playlist and colume management into db
#27 #16 #11
2018-07-12 00:40:29 +02:00
Lartza
db45096944 Config writing, store volume changes. Closes #21 2018-06-19 13:43:25 +03:00
Lartza
e6af06b8dc Unused imports 2018-06-18 13:31:57 +03:00
azlux
b1611621dc fix when no read right on file 2018-06-06 01:12:39 +02:00
azlux
bd532e5c22 check read access
the bot crash if a file don't have read access
2018-06-06 00:20:11 +02:00
Fabian Würfl
f8b2cc4529 utils.py: Remove unnecessary debugging print 2018-05-30 19:17:17 +02:00
Fabian Würfl
32c78544f9 utils.py: Fix not adding files correctly in some edge cases 2018-05-30 19:16:07 +02:00
Fabian Würfl
432aaa856c Move config object to variables.py
- Initialized in main.py
- This way the configuration is available for all modules
2018-05-26 10:56:23 +02:00
Fabian Würfl
e62fc7bdb0 Add optional command line option for config file
Implements #28
2018-05-24 22:13:08 +02:00
Fabian Würfl
ef32c010af [Web Interface] Fixed some stuff which I broke 2018-05-21 13:56:03 +02:00
Fabian Würfl
adfdb6f06c Ignore non-audio/video files 2018-05-21 12:47:25 +02:00