Commit Graph

101 Commits

Author SHA1 Message Date
5436aee3c8 Update configuration.default.ini 2021-08-18 06:23:28 +02:00
f36611f07b add support for setting bot bandwidth
feat: Add support for setting bandwidth
Changes the default bandwidth value to 96000
2021-05-05 01:04:46 +02:00
ee5a54b33b add youtube-dl options
#258
2021-04-03 13:39:47 +02:00
582b0b58da Add youtube-dl verbose log option 2021-04-03 13:11:54 +02:00
1f9573b1d5 feat: Whitelist URL feature.
In the configuration, `max_duration` can be set to prevent
long song(URL item) being downloaded and added to the
playlist.
This whitelist feature provided a way to override this
duration check: songs being whitelisted will be added to
the playlist no matter how long they are.
Three admin commands are introduced:
 - !urlwhitelist (!urlw)
 - !urlunwhitelist, (!urlunw)
 - !urlwhitelistlist, (!urlwls).

 Also, if one song fails due to its length, the bot will
 show the length of this song and the max length limit in
 the reply message.

 Implement #173, #196.
2021-02-22 23:44:14 +08:00
4597824fdb feat: Added bot command version to display current version.
Requested in #194.
2021-01-01 14:41:17 +08:00
1af21a66f8 Update configuration.default.ini (#237) 2020-12-14 22:01:24 +08:00
ff5b1cb1ee Upgrade web assets (#219)
* Update assets

* Upgrade linting and other improvments

* Correct linting

* Correction and type check improvements

* Correct type check lib

* Fix lint pathing for VSCode

* Remove duplicate babel config

* Remove editorconfig root attribute from web subdir

* Use double quotes around message

* Simplify ESLint config

* Update web assets

* Allow AMD loader in WebPack

* Bump web dependencies

* Only include FA icons in-use
2020-11-25 22:08:12 +08:00
9e2e09e5fd feat: Load language file in lang/ instead of the ini file. 2020-07-12 11:45:51 +08:00
c9b170d865 fix: Regex bug when parsing time. 2020-07-07 21:44:10 +08:00
ccbde28ef9 New update method
manage testing deplyement
2020-06-23 12:38:02 +02:00
fe6b5f0119 chore: edited help item related to web interface auth 2020-06-16 11:24:46 +08:00
37082a82f3 feat: stereo support, updated pymumble. 2020-06-05 15:01:06 +08:00
e61f791c82 feat: 'password' auth method: support user addition 2020-05-23 14:46:27 +08:00
19d868d352 feat: display changelog when update is available 2020-05-23 11:47:35 +08:00
c8f0ccf706 feat: ban a user after too many failed attempts 2020-05-19 09:53:01 +08:00
0080e9b4cd fix: file size bug, upload bug 2020-05-19 09:23:19 +08:00
fae93d99e0 feat: add config item for maximum upload file size 2020-05-19 09:12:52 +08:00
23a7022bdf Improvement of #154 2020-05-18 16:59:01 +02:00
edf5495fe5 feat: several improvements to azlux's token auth scheme #154
1. 'auth_method' in config, where users can select between
   'password' and 'token'.
2. create index for token, avoid iterating the entire user
   section when validating tokens.
3. only generate token for a user when there's no token for
   him in the db, avoid tokens fill the db.
2020-05-18 10:17:08 +08:00
4017e7bff0 add webinterface token
#154
2020-05-17 20:28:27 +02:00
40ea744e7f refactor: move music db into a separated file.
IMPORTANT NOTE:
The default database path has changed. It was database.db, but
now they ARE settings.db and music.db.

Database migration will detect music table in settings.db, and
move it out of settings.db.

To update from old version, you need to
 1. if you use your own db path settings in the command
    line or in configuration.ini, you don't have to change
    anything;
 1. or,if you use default database path, rename database.db
    into settings.db.
2020-05-13 10:43:40 +08: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
622f86c8f2 fix: listfile problem 2020-04-10 10:09:43 +08:00
e86b5ca659 refactor: rewrite confusing part 2020-04-08 08:55:58 +08:00
a5a8cb230d Update Readme 2020-03-28 23:27:39 +08:00
bbe208d162 fix: move message string to config file 2020-03-25 21:41:59 +08:00
3d3c55a0fb fix config 2020-03-25 12:41:46 +01:00
8f48b7deda add feature autostop 2020-03-23 16:08:26 +01:00
e256d50c5c refactor: removed useless files path cache 2020-03-22 21:59:05 +08:00
1d1ff50a59 feat: add 'clear_when_stop_in_oneshot' option in config for azlux 2020-03-20 10:49:44 +08:00
803d8d0fda fix: delete file if ffmpeg failed 2020-03-10 22:59:52 +08:00
0ac9603072 feat: Lartza's urlban idea #91, fixed private message 2020-03-10 10:14:43 +08:00
c13d264e3e feat: tag current song 2020-03-09 10:14:12 +08:00
048da4046b feat: 'delete' command to remove files from library 2020-03-09 00:02:22 +08:00
22ba308b14 feat: optimized autoplay with Lartz 2020-03-08 21:25:30 +08:00
091d303729 fix: still one-shot 2020-03-08 19:55:41 +08:00
f7042db657 feat: 'search' command to search the db, and 'shortlist' to add songs from search result 2020-03-08 16:56:31 +08:00
369af16aed fix: no admin check for dropdatabase 2020-03-08 13:55:41 +08:00
2faa9dc8d3 feat: web interface tag support 2020-03-08 12:53:17 +08:00
f8cfb163ed feat: add tags, remove tags, play tags, find tags #91 2020-03-08 11:31:34 +08:00
487b5b9616 fix: music not saved after downloading. some tricky oneshot problem #91 2020-03-08 10:28:03 +08:00
4fce3b956e feat: directory cache 2020-03-07 15:12:22 +08:00
8e6a639e57 chore: config file. 2020-03-06 17:13:45 +08:00
b6bb449874 REFACTOR: DIFFERENT PLAYLIST #91 2020-03-06 01:39:24 +08:00
6ab8a7958a REFACTOR: ITEM REVOLUTION #91 2020-03-05 16:28:08 +08:00
499186c738 fix: message too long on some extreme cases 2020-03-03 16:47:24 +08:00
acf43eed24 chore: beautified current song display 2020-03-03 16:15:47 +08:00
28320ddfe5 fix: launch_music didn't wait for downloading #89 2020-03-03 10:11:50 +08:00
61497b1ecb feat: 'yplay' play the first result. add 'last' command. #87 2020-03-03 09:27:35 +08:00