284 Commits

Author SHA1 Message Date
Azlux
7a6cdef65d Add verbose mode for docker
link to #261
2021-04-03 12:55:01 +02:00
SeerLite
736fac28b0 Don't send auto_pause hint message if not paused 2021-03-13 02:44:06 -03:00
SeerLite
17a35c43e3 Avoid auto pausing when playlist is empty 2021-03-13 02:43:40 -03:00
Azlux
e079f948bc fix import 2021-03-01 12:26:28 +01:00
Azlux
a3b9948b6d cleaning deleted file "system" 2021-03-01 11:55:44 +01:00
Terry Geng
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
Kyle Robbertze
6bc9a9a8e0 Allow music_folder to not have trailing / 2021-02-17 13:00:47 +08:00
Azlux
9174ce67ff Fix #231
Check if the lib still online while sending the audio buffer
2020-12-01 12:13:01 +01:00
Terry Geng
892a1863e7
fix: Erroneous logic for determining if ffmpeg dies prematurely. Fixed #223. 2020-11-26 13:09:43 +08:00
Terry Geng
716b106f6c
refactor: Move check for update into utils. 2020-10-30 20:47:50 +08:00
Terry Geng
fceb50e894
fix: crash triggering by stop and play when playlist is empty, fixed #206. 2020-09-20 09:53:16 +08:00
Terry Geng
14668bb2b8
fix: Avoid truncating last ~100ms of music when playing.
Somehow subprocess.poll() will return before all music stream has been retrieved from stdout of the ffmpeg thread, causing the last bit of the stream being truncated.

Fixed #199.
2020-07-25 21:39:00 +08:00
Terry Geng
b3fe43cb18
feat: Enhance debug log. 2020-07-25 18:00:50 +08:00
Terry Geng
97309599f1
feat: Add translation populating procedure for the web interface. 2020-07-12 16:05:11 +08:00
Terry Geng
9e2e09e5fd
feat: Load language file in lang/ instead of the ini file. 2020-07-12 11:45:51 +08:00
Terry Geng
e84607b8e8
refactor: Rename constants.string into tr. 2020-07-12 11:45:51 +08:00
Terry Geng
6133c6f0b5
chore: Parse changelog in markdown into html
when publishing release.
2020-07-08 10:13:42 +08:00
Terry Geng
892fa502e6
feat: Apply the fade-in trick to the beginning of the stream. 2020-07-07 21:42:24 +08:00
Azlux
9fe03f3425 Fix check version at start 2020-06-23 23:30:51 +02:00
Azlux
ccbde28ef9 New update method
manage testing deplyement
2020-06-23 12:38:02 +02:00
Terry Geng
2c43942a9b
Update mumbleBot.py
chore: Prepare for releasing v6.5
2020-06-17 22:00:26 +08:00
Terry Geng
fb38b43f93
Merge branch 'master' into volume 2020-06-16 09:02:46 +08:00
Terry Geng
a6f8c459d0
refactor: move volume part into a helper 2020-06-15 20:36:52 +08:00
Terry Geng
762bb337b5
refactor: optimized the non-glitchy interrupt logic. 2020-06-11 10:40:19 +08:00
Terry Geng
7f45ab0506
fix: bot failed to detect if the ffmpeg thread is dead, fixed #168. 2020-06-11 09:17:59 +08:00
Terry Geng
3c87c33ddd
fix: typo that renders refresh_cache_on_startup = False useless, #163 2020-06-09 21:22:00 +08:00
Terry Geng
5f67517dc3
feat: use a function to convert volume set by the user to a scale of -60~0 dB. Then convert dB to a factor from 0 to 1 used as the real volume factor. 2020-06-08 17:30:37 +08:00
azlux
32e32774eb
using identifiable power
using math.e = 2.718281…  is quite useless. Let use 2.7
2020-06-08 16:25:03 +08:00
Azlux
7c2fd00884
change volume mgmt
better volume management for your hears
2020-06-08 16:25:03 +08:00
Terry Geng
37082a82f3
feat: stereo support, updated pymumble. 2020-06-05 15:01:06 +08:00
Azlux
9263e647fd pyradio implementation
fix #138
2020-06-01 15:34:10 +02:00
Terry Geng
8f533cdc2d
fix: file scanning not working when startup, fix #163 2020-05-31 21:20:52 +08:00
Terry Geng
a86a025d9a
fix: pymumble callback function jammed the loop in pymumble, fixed #164 2020-05-29 14:53:46 +08:00
Terry Geng
266a17617d
fix: pause error when playlist is empty 2020-05-27 08:56:06 +08:00
Terry Geng
a195a8afaf
fix: pause not working 2020-05-24 11:11:24 +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
662396bcc5
fix: glitch sound when stopping music 2020-05-22 22:49:05 +08:00
azlux
3b104a6f3e
New version
Preparing for release
2020-05-19 19:59:01 +02:00
Azlux
4017e7bff0 add webinterface token
#154
2020-05-17 20:28:27 +02:00
Terry Geng
aca3602511
fix: initialize the web interface after the bot is connected to murmur server 2020-05-15 12:57:32 +08:00
Terry Geng
71e0ede51e
feat: optimized play/resume logic, add fast-forward support within song.
fix #153.
2020-05-15 10:22:44 +08:00
Terry Geng
5fe8b266c2
feat: generate default settings db name according to bot name 2020-05-13 22:39:49 +08:00
Terry Geng
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
azlux
d288bfa658
New version 2020-05-11 10:24:27 +02: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
09df681ebe feat: database migration function mentioned in #133 2020-04-24 10:41:47 +08:00
Azlux
1d6310afaf Using new pymumble pypi module 2020-04-21 18:47:24 +02:00
azlux
5fbc8e463d
new version 2020-04-19 16:05:04 +02:00