fix it
This commit is contained in:
parent
7a1c8cf63c
commit
19de0beedd
@ -1,12 +0,0 @@
|
||||
root = true
|
||||
|
||||
[*]
|
||||
charset = utf-8
|
||||
end_of_line = lf
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
|
||||
[*.{bat,cmd}]
|
||||
end_of_line = crlf
|
@ -1,3 +0,0 @@
|
||||
{
|
||||
"extends" : "@edenjs/eden"
|
||||
}
|
22
.gitattributes
vendored
22
.gitattributes
vendored
@ -1,22 +0,0 @@
|
||||
# Automatically normalize line endings for all text-based files
|
||||
# http://git-scm.com/docs/gitattributes#_end_of_line_conversion
|
||||
* text=auto
|
||||
|
||||
# For the following file types, normalize line endings to LF on
|
||||
# checkin and prevent conversion to CRLF when they are checked out
|
||||
# (this is required in order to prevent newline related issues like,
|
||||
# for example, after the build script is run)
|
||||
.* text eol=lf
|
||||
*.css text eol=lf
|
||||
*.html text eol=lf
|
||||
*.jade text eol=lf
|
||||
*.js text eol=lf
|
||||
*.json text eol=lf
|
||||
*.less text eol=lf
|
||||
*.scss text eol=lf
|
||||
*.md text eol=lf
|
||||
*.sh text eol=lf
|
||||
*.txt text eol=lf
|
||||
*.xml text eol=lf
|
||||
*.bat text eol=crlf
|
||||
*.cmd text eol=crlf
|
49
.gitignore
vendored
49
.gitignore
vendored
@ -1,52 +1,5 @@
|
||||
# Debug log from npm
|
||||
npm-debug.log
|
||||
|
||||
# Error log from yarn
|
||||
yarn-error.log
|
||||
|
||||
# yarn lock - do work pls
|
||||
yarn.lock
|
||||
|
||||
# nodejs modules
|
||||
node_modules/
|
||||
|
||||
# edenjs stuff
|
||||
data/
|
||||
config.js
|
||||
edenappconfig.js
|
||||
|
||||
# IDE
|
||||
.idea
|
||||
.remote-sync.json
|
||||
|
||||
# Log and Sentry
|
||||
*.log
|
||||
*.sentry
|
||||
|
||||
# Redis
|
||||
*.rdb
|
||||
|
||||
# sqlite files
|
||||
*.db
|
||||
*.sdb
|
||||
*.sqlite
|
||||
*.db3
|
||||
*.s3db
|
||||
*.sqlite3
|
||||
*.sl3
|
||||
*.db2
|
||||
*.s2db
|
||||
*.sqlite2
|
||||
*.sl2
|
||||
|
||||
# Other junk
|
||||
.*.swp
|
||||
._*
|
||||
.DS_Store
|
||||
.hg
|
||||
.npmrc
|
||||
.lock-wscript
|
||||
.svn
|
||||
.wafpickle-*
|
||||
config.gypi
|
||||
CVS
|
||||
result
|
||||
|
@ -11,6 +11,12 @@
|
||||
in {
|
||||
packages.mudl = pkgs.buildNpmPackage {
|
||||
src = ./.;
|
||||
buildInputs = [ pkgs.makeWrapper ];
|
||||
postInstall = ''
|
||||
chmod +x $out/index.js
|
||||
makeWrapper $out/index.js $out/bin/mudl --prefix PATH : ${nixpkgs.lib.makeBinPath (with pkgs; [ yt-dlp imagemagick sacad id3v2 ])}
|
||||
rm $out/bin/npm
|
||||
'';
|
||||
};
|
||||
|
||||
defaultPackage = self.packages.${system}.mudl;
|
||||
|
2
index.js
2
index.js
@ -72,7 +72,7 @@ async function thing(source, excess) {
|
||||
inputType = 'url';
|
||||
|
||||
console.log(`Temporarily saving to ${TMP_DIR}`);
|
||||
await exec(`youtube-dl --write-thumbnail -f bestaudio -x -o "${TMP_DIR}/[%(album)s] -- [%(artist)s] -- [%(track_number)s] -- [%(track)s] -- [%(title)s].%(ext)s" ${source}`);
|
||||
await exec(`yt-dlp --write-thumbnail -f bestaudio -x -o "${TMP_DIR}/[%(album)s] -- [%(artist)s] -- [%(track_number)s] -- [%(track)s] -- [%(title)s].%(ext)s" ${source}`);
|
||||
console.log('Done saving');
|
||||
|
||||
const filesList = await fs.readdir(TMP_DIR);
|
||||
|
@ -1,13 +1,13 @@
|
||||
{
|
||||
"name": "mudl",
|
||||
"description": "nothing yet",
|
||||
"version": "1.0.2",
|
||||
"bin": {
|
||||
"mudl": "./index.js"
|
||||
},
|
||||
"version": "1.0.3",
|
||||
"engines": {
|
||||
"node": ">= 11.0.0"
|
||||
},
|
||||
"bin": {
|
||||
"mudl": "./index.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"no-op": "^1.0.3"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user