Commit Graph

48 Commits

Author SHA1 Message Date
fbe3383b66 fix: avoid confusing error message when connection to the murmur server fails. 2020-05-09 20:49:52 +08:00
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
b33e6c6dda fix: include "openbsd" in pipe_no_wait, fixed #116 2020-04-25 09:11:58 +08:00
563ce8f37b fix indent 2020-04-18 14:55:12 +02:00
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
fb7101a581 FEAT: MUSIC LIBRARY BROSWER 2020-03-19 22:51:32 +08:00
4f12a7c903 feat: advanced url processing, whitespaces issue 2020-03-12 21:04:37 +08:00
2c4e7c3370 feat: advanced url processing 2020-03-12 20:50:07 +08:00
c1190d6317 fix: optimized urlban logic 2020-03-12 19:59:23 +08:00
213a6c084b Cleanup 2020-03-10 23:07:29 +02:00
b2ced96ba4 PEP8 2020-03-10 22:22:20 +02:00
708f8a588d Fix ffmpeg pipe on Windows 2020-03-10 16:06:56 +02:00
0ac9603072 feat: Lartza's urlban idea #91, fixed private message 2020-03-10 10:14:43 +08:00
f931ae7d28 fix: util failed on some strange encoded files 2020-03-08 15:08:46 +08:00
6ab8a7958a REFACTOR: ITEM REVOLUTION #91 2020-03-05 16:28:08 +08:00
0760f3e624 fix: update playlist item based on id #90. 2020-03-03 23:15:46 +08:00
acf43eed24 chore: beautified current song display 2020-03-03 16:15:47 +08:00
dbe317bf31 feat: beautified current song string, fix ytplay index problem 2020-03-02 19:19:13 +08:00
26eb650e9b chore: ytquery error message 2020-03-02 11:35:07 +08:00
e17d5446bf feat: add ytquery and ytplay 2020-03-02 11:23:16 +08:00
52d98c7257 update every time if testing target 2020-02-29 14:15:43 +01:00
b7b365e8b8 hotfix version import conflict 2020-02-29 02:21:01 +01:00
7d5f8fc778 new version ! 2020-02-29 01:28:46 +01:00
cf1feea870 chore: optimize logging. separate bot log and web log. 2020-02-28 14:15:57 +08:00
948aabd9ab fix: file path error when start as daemon 2020-02-28 10:35:27 +08:00
7c8c1f9d9a refactor: avoid use youtube-dl if music is existed locally. #78 2020-02-26 17:46:14 +08:00
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
eb24594d54 logfile and reload youtube-dl 2019-12-24 13:52:52 +01:00
b6e2649953 fix autoupgrade 2019-07-31 00:23:28 +02:00
22744b3794 better update 2019-06-04 11:20:08 +02:00
a9824537e9 autoupdate feature 2019-06-04 02:23:28 +02:00
ef78b566af Admin features
Add URL and User abn list : #19 #18
Fix for #34
2019-01-13 21:42:34 +01:00
3a6aba9545 Playlist and colume management into db
#27 #16 #11
2018-07-12 00:40:29 +02:00
db45096944 Config writing, store volume changes. Closes #21 2018-06-19 13:43:25 +03:00
e6af06b8dc Unused imports 2018-06-18 13:31:57 +03:00
b1611621dc fix when no read right on file 2018-06-06 01:12:39 +02:00
bd532e5c22 check read access
the bot crash if a file don't have read access
2018-06-06 00:20:11 +02:00
f8b2cc4529 utils.py: Remove unnecessary debugging print 2018-05-30 19:17:17 +02:00
32c78544f9 utils.py: Fix not adding files correctly in some edge cases 2018-05-30 19:16:07 +02:00
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
e62fc7bdb0 Add optional command line option for config file
Implements #28
2018-05-24 22:13:08 +02:00
ef32c010af [Web Interface] Fixed some stuff which I broke 2018-05-21 13:56:03 +02:00
adfdb6f06c Ignore non-audio/video files 2018-05-21 12:47:25 +02:00
f45aa6c712 [Web Interface] Fix directory listing
- fixes not displaying files of top level directory
- fixes duplicate sub-directory listings
2018-05-21 12:29:05 +02:00
b0137b2db6 Implement download functionality
- directories are served as a zip-file
2018-05-20 22:41:35 +02:00
f3813777b7 Allow uploading files to existing/new folders 2018-05-20 16:05:41 +02:00
36027414d8 Fix variable referencing bug in Dir() 2018-05-20 13:25:51 +02:00
85f90e4e44 Improve web interface (+ other small changes)
- Web Interface shows folders recursively
- Add command line options for web interface (--wi-port, --wi-addr)
- Move command line option parsing to main
- Move shared code to utils.py
- Fix some issues with web interface
- Fix other small things
2018-05-19 22:34:56 +02:00