82 Commits

Author SHA1 Message Date
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
Fabian Würfl
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
Fabian Würfl
b0137b2db6 Implement download functionality
- directories are served as a zip-file
2018-05-20 22:41:35 +02:00
Fabian Würfl
f3813777b7 Allow uploading files to existing/new folders 2018-05-20 16:05:41 +02:00
Fabian Würfl
36027414d8 Fix variable referencing bug in Dir() 2018-05-20 13:25:51 +02:00
Fabian Würfl
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