Skip to content

Commit

Permalink
Mein メイド v1.8.2 Stable
Browse files Browse the repository at this point in the history
- add support file format
- update ytdlp and ytdl
  • Loading branch information
DanielBUBU committed Aug 25, 2024
1 parent 50beb8b commit eecc6a5
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# change log


## Mein メイド v1.8.2 Stable
- add support file format
- update ytdlp and ytdl

## Mein メイド v1.8.1 Stable
- warp all stuff from `interactionCreate.js` to `music_func.js`
- update ytdlp and format some docs
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# PD_maid `1.8.1 Stable` is out!!
# PD_maid `1.8.2 Stable` is out!!
[![Downloads](https://img.shields.io/github/downloads/DanielBUBU/PD_maid/total.svg)](https://github.com/DanielBUBU/PD_maid/releases/latest)
[![Release](https://img.shields.io/github/release/DanielBUBU/PD_maid.svg)](https://github.com/DanielBUBU/PD_maid/releases/latest)

Expand Down
6 changes: 3 additions & 3 deletions music_functions/music_func.js
Original file line number Diff line number Diff line change
Expand Up @@ -1061,7 +1061,7 @@ class discord_music {
'opus',
'--embed-thumbnail',
'-f',
'bestaudio',
'bestaudio[acodec=opus]/bestaudio[ext=aac]/bestaudio',
'-o',
fileUrlWithoutFormat,
])
Expand Down Expand Up @@ -1340,7 +1340,7 @@ class discord_music {
[
url,
'-f',
'bestaudio'
'bestaudio[acodec=opus]/bestaudio[ext=aac]/bestaudio'
], {},
this.YTDLPAbortController.signal
).on("error", (e) => { console.log("YTDLPLiveErr") });
Expand Down Expand Up @@ -1422,7 +1422,7 @@ class discord_music {
*/
is_file_type_avaliable(str) {
var type = str.split(".").pop()
var searched_fromat = this.urlFilterByFileName(["mp3", "wav", "flac", "webm", "mp4", "mkv"], type);
var searched_fromat = this.urlFilterByFileName(["mp3", "wav", "flac", "webm", "mp4", "mkv","opus"], type);
if (searched_fromat.length != 0) {
return true;
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"description": "",
"dependencies": {
"@discordjs/voice": "^0.13.0",
"@distube/ytdl-core": "^4.13.5",
"@distube/ytdl-core": "^4.14.4",
"ascii-converter": "^1.1.5",
"auto-git-update": "^2.1.2",
"avconv": "^3.1.0",
Expand Down
Binary file modified yt-dlp
Binary file not shown.
Binary file modified yt-dlp.exe
Binary file not shown.

0 comments on commit eecc6a5

Please sign in to comment.