119 Commits

Author SHA1 Message Date
Terry Geng
6a1320f8f9 feat: three playback mode "one-shot", "loop", "random"
fix: bugs when you are on the last item and you want
remove it.

Some tips for testing:
Observe the behavior when you are playing the last
item and you remove the last item, for all three modes.
2020-02-26 22:09:53 +08:00
Terry Geng
388016a5af refactor: playlist inherits list. 2020-02-26 20:51:30 +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
Terry Geng
dce85aefe7 fix reshuffle problem 2020-02-05 17:52:12 +08:00
Terry Geng
f5ca09716b web interface add ajax feature 2020-02-05 15:25:38 +08:00
Terry Geng
abd5eb8e95 beautify and enhance web interface, debug 2020-02-04 23:30:56 +08:00
Terry Geng
98f096f08f add feature: read album picture from file/url 2020-02-04 18:00:11 +08:00
Terry Geng
30879db7b8 add Playlist class 2020-02-04 14:30:03 +08:00
Azlux
3539df5400 fix radio description 2019-07-31 00:07:17 +02:00
Azlux
a9824537e9 autoupdate feature 2019-06-04 02:23:28 +02:00
azlux
ff83478f3a
fix for #44
That is a really stupid error
2019-05-10 18:02:19 +02:00
Azlux
7df7dff7ea Comment for the code and Fix for #46 2019-04-17 01:40:01 +02:00
Rackoono
ed3ace0f33
Fix out of bound exception
There is an out of bound exception when iterating over info['entries'][j]  in get_playlist_info()
The lenght of info['entries'] has to be taken into account in the loop boundaries
2019-03-29 03:01:26 +01:00
Azlux
59e8d0d978 Update Readme and small fix
fix for #5
2019-03-21 15:20:58 +01: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
a6b1da43bf better playlist management 2018-12-08 23:46:31 +01:00
Azlux
8f2cce9e9f download next into playlist 2018-11-23 00:08:34 +01:00
Azlux
d62adec9e3 playlist debugged 2018-11-21 00:22:06 +01:00
Azlux
6aca72eaee new playlist format 2018-11-13 15:48:09 +01:00