39 Commits

Author SHA1 Message Date
Storm Dragon
de270bc842 Second wave of initial code changes. 2025-06-13 18:53:38 -04:00
veltlion
6e5e21ba52
Fix thumbnail and add flac metadata capabilities (#380)
* fix thumbnail

* add flac cover capabilities
2023-10-17 14:36:33 +02:00
Bartkk0
aa6632bc3d Fix getting info with cookies 2022-04-02 00:24:25 +02:00
Terry Geng
a0eb5b39c3 fix(config): Define all fallback in configuration.default.ini. 2022-02-01 21:08:15 -05:00
Azlux
dd18ce1da0 Adding jpec conversion #314
using ffmpeg as thumbnails postprocessing tool
2022-02-02 01:37:25 +01:00
Terry Geng
37666c7daf feat(config): Detect unexpected config items from config files. 2022-01-21 23:58:49 -05:00
Azlux
81ff7c3039 temporary change to yt-dlp
#296 and #297
2021-10-27 02:13:00 +02:00
Azlux
ee5a54b33b add youtube-dl options
#258
2021-04-03 13:39:47 +02:00
Azlux
582b0b58da Add youtube-dl verbose log option 2021-04-03 13:11:54 +02:00
Azlux
a3b9948b6d cleaning deleted file "system" 2021-03-01 11:55:44 +01:00
Terry Geng
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
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
Gert
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
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
1d97fe654e
fix: URL item duration unit in seconds, bad skip button in floating player 2020-05-18 00:07:56 +08:00
Daniel Gunzinger
922ca30697 clone title into keywords in class URLItem so added clips become searchable via the webinterface 2020-04-23 22:16:49 +02:00
Terry Geng
e86b5ca659 refactor: rewrite confusing part 2020-04-08 08:55:58 +08:00
Terry Geng
b2e5efec93 refactor: optimized playlist logic 2020-03-25 21:35:59 +08:00
Terry Geng
21c8e276c9 fix: error if failed to fetch duration from url 2020-03-22 14:50:42 +08:00
Lartza
213a6c084b Cleanup 2020-03-10 23:07:29 +02:00
Lartza
b2ced96ba4 PEP8 2020-03-10 22:22:20 +02:00
Terry Geng
048da4046b feat: 'delete' command to remove files from library 2020-03-09 00:02:22 +08:00
Terry Geng
487b5b9616 fix: music not saved after downloading. some tricky oneshot problem #91 2020-03-08 10:28:03 +08:00
Terry Geng
e10059a76e fix: delete item keyerror #91 2020-03-08 09:26:36 +08:00
Terry Geng
01a59852a3 fix: tmp folder issue, more logs #91 2020-03-07 23:54:25 +08:00
Terry Geng
1f22d3b1a9 fix: minor fixes 2020-03-06 17:03:00 +08:00
Terry Geng
3bfc0ae5a9 fix: small fixes. 2020-03-06 16:38:43 +08:00
Terry Geng
665edec684 REFACTOR: MUSIC LIBRARYgit status #91 2020-03-06 15:45:13 +08:00
Terry Geng
b6bb449874 REFACTOR: DIFFERENT PLAYLIST #91 2020-03-06 01:39:24 +08:00
Terry Geng
ce25fcabee fix: some small issue 2020-03-05 19:57:31 +08:00
Terry Geng
6ab8a7958a REFACTOR: ITEM REVOLUTION #91 2020-03-05 16:28:08 +08:00
Terry Geng
dbe317bf31 feat: beautified current song string, fix ytplay index problem 2020-03-02 19:19:13 +08:00
Terry Geng
30879db7b8 add Playlist class 2020-02-04 14:30:03 +08: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
6aca72eaee new playlist format 2018-11-13 15:48:09 +01:00