Storm Dragon
de270bc842
Second wave of initial code changes.
2025-06-13 18:53:38 -04:00
Vlad Lipskiy
8c9bfd03f4
Fix YouTube package update logic
...
As of now, the update command fails with an IndexError using current
versions of pip. If a package is already of the latest version, there is
no "Requirement already up-to-date" line present anymore. And since
nothing is installed, there is no "Successfully installed" string
either, so it fails later. So now it checks, that "Collecting yt-dlp"
line is missing instead. This works in older versions of pip as well.
Another issue is that since botamusique uses yt-dlp now instead of
youtube-dl, it was trying to update the wrong package. So the package
name was extracted as a constant and was changed to yt-dlp.
Additional minor fix in the output message. Before there was no spacing
between the botamusique version message and the YouTube package one. Now
it starts on a separate line.
2023-06-25 03:00:05 +03:00
kac-
5582d14101
fix: util: clear_tmp_folder: exclude invalid symlinks
2023-05-30 11:49:37 +02:00
Michel Roux
6f837cd50d
Fix crash when you have repository with no tags (like a forked repo) ( #343 )
2022-09-09 18:48:10 +02:00
Terry Geng
b0ace7b67a
refactor(ysearch): Use youtube-dl cookie file instead of redundant cookie config item.
2022-02-01 21:08:15 -05:00
Terry Geng
a0eb5b39c3
fix(config): Define all fallback in configuration.default.ini.
2022-02-01 21:08:15 -05: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
Sean
5224610654
Update pipe_no_wait function to work on FreeBSD
...
This very small change made the bot work on my FreeBSD server. Haven't had any issues so far.
2021-08-31 20:07:48 -07:00
Martin Weinelt
faddf4c6c2
Unescape HTML in URLs parsed from user input
...
Escapes tokens like & to &, so GET parameters are correctly preserved.
Fixes : #274
2021-05-16 15:04:50 +02:00
dadidji
72595f20fc
fix: Cookies for Youtube query ( #264 )
2021-04-24 12:53:52 +08:00
Terry Geng
61748c199a
feat: Allow users to specify a cookie when querying youtube.
...
See #263 .
2021-04-23 23:02:04 +08:00
Terry Geng
384bacf1ef
fix: Join music file path safely.
2021-04-07 15:17:55 +08: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
Terry Geng
c1671d5eb0
fix: Updated youtube search mechanism.
...
Youtube updated the format of its search result page.
Now it wraps everything into a huge json and made our
life much easier.
Fix #252
2021-02-17 14:22:41 +08:00
Kyle Robbertze
6bc9a9a8e0
Allow music_folder to not have trailing /
2021-02-17 13:00:47 +08:00
Terry Geng
9e07fac5ec
fix: snapshot version not based on newest tag
2020-12-31 17:52:28 +08:00
Terry Geng
23dc9d2460
fix: wrong dir when getting snapshot version
2020-12-31 17:46:26 +08:00
Terry Geng
f96c9f7f89
fix: lang/ path not found
2020-12-31 11:01:22 +08:00
Terry Geng
2546e3b373
fix: Check update not checking update when testing version was selected.
2020-11-30 01:15:09 +08:00
Terry Geng
716b106f6c
refactor: Move check for update into utils.
2020-10-30 20:47:50 +08:00
Terry Geng
b3fe43cb18
feat: Enhance debug log.
2020-07-25 18:00:50 +08:00
Terry Geng
9f2c4a2afd
refactor: Add suffixes to translation file.
2020-07-12 14:26:08 +08:00
Terry Geng
9e2e09e5fd
feat: Load language file in lang/ instead of the ini file.
2020-07-12 11:45:51 +08:00
azlux
75a891f14f
Fix ysearch command
...
Merge pull request #182 from W0rmsy/master
2020-07-07 21:30:37 +02:00
Terry Geng
c9b170d865
fix: Regex bug when parsing time.
2020-07-07 21:44:10 +08:00
W0rmsy
6ae5daf455
Fix ysearch command
2020-07-07 15:32:33 +02:00
Azlux
ccbde28ef9
New update method
...
manage testing deplyement
2020-06-23 12:38:02 +02:00
Terry Geng
a6f8c459d0
refactor: move volume part into a helper
2020-06-15 20:36:52 +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
fae93d99e0
feat: add config item for maximum upload file size
2020-05-19 09:12:52 +08:00
Terry Geng
0b7d0b8465
feat: huge feature: a floating player, with a movable playhead
2020-05-17 11:54:05 +08: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
b33e6c6dda
fix: include "openbsd" in pipe_no_wait, fixed #116
2020-04-25 09:11:58 +08:00
Azlux
563ce8f37b
fix indent
2020-04-18 14:55:12 +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
Terry Geng
fb7101a581
FEAT: MUSIC LIBRARY BROSWER
2020-03-19 22:51:32 +08:00
Terry Geng
4f12a7c903
feat: advanced url processing, whitespaces issue
2020-03-12 21:04:37 +08:00
Terry Geng
2c4e7c3370
feat: advanced url processing
2020-03-12 20:50:07 +08:00
Terry Geng
c1190d6317
fix: optimized urlban logic
2020-03-12 19:59:23 +08:00
Lartza
213a6c084b
Cleanup
2020-03-10 23:07:29 +02:00
Lartza
b2ced96ba4
PEP8
2020-03-10 22:22:20 +02:00
Lartza
708f8a588d
Fix ffmpeg pipe on Windows
2020-03-10 16:06:56 +02:00
Terry Geng
0ac9603072
feat: Lartza's urlban idea #91 , fixed private message
2020-03-10 10:14:43 +08:00
Terry Geng
f931ae7d28
fix: util failed on some strange encoded files
2020-03-08 15:08:46 +08:00
Terry Geng
6ab8a7958a
REFACTOR: ITEM REVOLUTION #91
2020-03-05 16:28:08 +08:00
Terry Geng
0760f3e624
fix: update playlist item based on id #90 .
2020-03-03 23:15:46 +08:00