274 Commits

Author SHA1 Message Date
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
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
azlux
2d788c77f5
New version 2020-04-16 22:13:11 +02:00
Terry Geng
e86b5ca659 refactor: rewrite confusing part 2020-04-08 08:55:58 +08:00
Terry Geng
d32d30b795 fix: fixed #118, weird threading issue 2020-04-02 18:27:15 +08:00
Terry Geng
eeaa09b564 release: v6.1.1 2020-03-31 20:43:59 +08:00
Azlux
236cf38814 new version 2020-03-30 00:06:44 +02:00
Terry Geng
112564ba45 refactor: reviewed all message send to channel 2020-03-28 13:13:20 +08:00
Terry Geng
bbe208d162 fix: move message string to config file 2020-03-25 21:41:59 +08:00
Terry Geng
1732314304 fix: current_index unchanged immediately after stop 2020-03-25 21:35:59 +08:00
Terry Geng
b2e5efec93 refactor: optimized playlist logic 2020-03-25 21:35:59 +08:00