Commit Graph

32 Commits

Author SHA1 Message Date
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
a3b9948b6d cleaning deleted file "system" 2021-03-01 11:55:44 +01:00
1637501601 fix: Error when calculating tmp folder size.
Instructed the bot to directly ignore errors.

Fixed #224.
2021-02-28 08:59:48 +08: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
47687a5e06 Skip unnecessary MP3 conversion via FFmpeg after audio download
Currently, after downloading YouTube videos, FFmpeg is used to convert
the downloaded audio file into MP3 for historic reasons (there was no
database to keep the metadata around, so the ID3 tags in the MP3 file
were necessary to be able to read the metadata later on).

Now that a metadata database exists, this is no longer necessary. This
conversion is also fairly straining for slower CPUs or CPUs that do not
offer the appropriate processor extensions to be able to accelerate this
conversion, such as older ARM devices - in my case an ARMv7 32-bit
device, where the conversion could take over a minute for a fairly
simple 3-minute audio file of keeping a single core maxed out.

This should also result in less latency playing audio files on stronger
processors, though probably less noticeably.

Fixes #205
2020-09-25 20:58:18 +08:00
9e2e09e5fd feat: Load language file in lang/ instead of the ini file. 2020-07-12 11:45:51 +08:00
e84607b8e8 refactor: Rename constants.string into tr. 2020-07-12 11:45:51 +08:00
1d97fe654e fix: URL item duration unit in seconds, bad skip button in floating player 2020-05-18 00:07:56 +08:00
922ca30697 clone title into keywords in class URLItem so added clips become searchable via the webinterface 2020-04-23 22:16:49 +02:00
e86b5ca659 refactor: rewrite confusing part 2020-04-08 08:55:58 +08:00
b2e5efec93 refactor: optimized playlist logic 2020-03-25 21:35:59 +08:00
21c8e276c9 fix: error if failed to fetch duration from url 2020-03-22 14:50:42 +08:00
213a6c084b Cleanup 2020-03-10 23:07:29 +02:00
b2ced96ba4 PEP8 2020-03-10 22:22:20 +02:00
048da4046b feat: 'delete' command to remove files from library 2020-03-09 00:02:22 +08:00
487b5b9616 fix: music not saved after downloading. some tricky oneshot problem #91 2020-03-08 10:28:03 +08:00
e10059a76e fix: delete item keyerror #91 2020-03-08 09:26:36 +08:00
01a59852a3 fix: tmp folder issue, more logs #91 2020-03-07 23:54:25 +08:00
1f22d3b1a9 fix: minor fixes 2020-03-06 17:03:00 +08:00
3bfc0ae5a9 fix: small fixes. 2020-03-06 16:38:43 +08:00
665edec684 REFACTOR: MUSIC LIBRARYgit status #91 2020-03-06 15:45:13 +08:00
b6bb449874 REFACTOR: DIFFERENT PLAYLIST #91 2020-03-06 01:39:24 +08:00
ce25fcabee fix: some small issue 2020-03-05 19:57:31 +08:00
6ab8a7958a REFACTOR: ITEM REVOLUTION #91 2020-03-05 16:28:08 +08:00
dbe317bf31 feat: beautified current song string, fix ytplay index problem 2020-03-02 19:19:13 +08:00
30879db7b8 add Playlist class 2020-02-04 14:30:03 +08:00
59e8d0d978 Update Readme and small fix
fix for #5
2019-03-21 15:20:58 +01:00
ef78b566af Admin features
Add URL and User abn list : #19 #18
Fix for #34
2019-01-13 21:42:34 +01:00
a6b1da43bf better playlist management 2018-12-08 23:46:31 +01:00
8f2cce9e9f download next into playlist 2018-11-23 00:08:34 +01:00
6aca72eaee new playlist format 2018-11-13 15:48:09 +01:00