Comments (7)
Patch submitted on sindresorhus/filenamify#23
from freyr-js.
Works perfectly.
from freyr-js.
I suppose this is an issue with NTFS' file name formats. I can't tell for sure however but this works on my system (with ext4). We'd need more information to proceed with fixing this. Can you try manually creating the file path?
Mori Calliope
Your Mori.
01 The Grim Reaper is a Live-Streamer.m4a
from freyr-js.
I suppose this is an issue with NTFS' file name formats.
I created the folder with the name "Your Mori." and it put all the songs into a folder "Your Mori" without the period, seemed to do some weird things. It's most likely a NTFS file format naming thing because it let me delete the "Your Mori." folder but when I create a new folder it renames "Your Mori" to "Your Mori."
This is all pretty wacky, but yeah I don't think folders like having periods in their names. The solution here would probably be running regex on the names of folders (doesn't seem to be a problem with the songs themselves)
function cleanUp(instring) {
return instring.replace(/[\\/?.:<>|"*]/g, '');
}
from freyr-js.
freyr
already uses filenamify
to ensure file and folder names are safe depending on the filesystem, it's exclusion filter [<>:"/\\|?*\u0000-\u001F]
doesn't include .
(period) so it doesn't filter that out.
However, after seeing https://superuser.com/a/585119/974653, a match on trailing period(s) would make sense.
so this is more of a:
function cleanUp(path) {
return filenamify(path).replace(/\.+$/, '');
}
I'll do a little more investigating, this patch might actually belong in filenamify
itself, so it's better for everyone.
from freyr-js.
I'm guessing this was fixed on c5e7e8c, I'll run a test now.
from freyr-js.
Yup! You can close this PR at will.
from freyr-js.
Related Issues (20)
- can't download every track from an album
- Right title, wrong audio. HOT 1
- File exist should ignore file extension HOT 3
- Error code 401 HOT 1
- Status code 401 when downloading Apple Music HOT 7
- Unable to locate the command [which] within your PATH HOT 2
- add youtube support HOT 5
- Automate Apple Music token updates HOT 9
- command not found? not sure what I messed up HOT 2
- ERROR: Unable to download API page: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed HOT 4
- Freyr downloading different tracks that don't match actual tracks from album HOT 19
- Request failed with status code 401 HOT 7
- SUGGESTION / Download all Albums of one Artist HOT 1
- I'm getting the error ' [An error occured while communicating with Spotify's Web API]' when trying to download my spotify playlist HOT 3
- how to solve the problem "failed: [Request failed with status code 401]) [i] An error occurred while processing the query" HOT 8
- An error code appears when req spotify and apple music
- Couldn't find package "async@^3.2.4" required by "freyr" on the "npm" registry. HOT 2
- Freyr (failed: Unexpected postprocessing error [Invalid typed array length: undefined]) HOT 4
- How to do i download manually from youtube? HOT 1
- Apple Music 401 Error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from freyr-js.