-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stats -e fails on windows when path contains some characters #1891
Comments
Thanks for the report! I think the fix was relatively straightforward—can you please check whether the above commit fixes this? |
This reduces the quantity of problems, but now I get Unicode problems with the apostrophe could not get size of X:\lts\music\B\Bruce Springsteen\Albums\[1984] Born in the U.S.A. {320 kbps MP3}\1.09 Bruce Springsteen - I’m Goin’ Down.mp3:
[Error 2] The system cannot find the file specified: u'\\\\?\\X:\\lts\\music\\B\\Bruce Springsteen\\Albums\\[1984] Born in the U.S.A. {320 kbps MP3}\\1.09 Bruce Springsteen - I\u2019m Goin\u2019 Down.mp3' |
There's an apostrophe in one of the examples above too. Was that affected? |
Oh, my bad. some files had inconsistent paths, so I renamed manually the file to the same as in beets and use This is fixed 😄 |
Woohoo! |
* master: (246 commits) Fix beetbox#1896 (bungled fix to beetbox#1895) Minor docs refinements for beetbox#1894 Human-readable message in non-pretend mode (beetbox#1894) changelog entry for new convert.album_art_maxwidth option tweaks for style, option name Fix beetbox#1895: don't assume SC data is bytes Slightly more logical instruction placement Update ISSUE_TEMPLATE.md doc note for new copy_album_art_maxwidth option revert a chunk of the work to be the way it was better text for artwork resize/copy logs fix indentation add copy_album_art_maxwidth config option to convert plugin move and split fetchart valid_image Fix beetbox#1891: Missing `syspath` in `beet stats -e` Suggest ways to describe problems Start an issue template beet import: there is no such option: -M Grammar/formatting refinement for beetbox#1878 fix documentation error ...
Python can't get the size of some files because it can't find the correct folder or file, throwing OSError 2 and 3's.
Problem
It's probably a difference on windows paths / linux or decoding?
https://github.com/beetbox/beets/blob/master/beets/ui/commands.py#L1260
Examples:
Chinese characters on
1.07 2Cellos feat. 郎朗 - Clocks.m4a
Apostrophe on
X:\lts\music\Z\ZZ Top\Albums\[1971] ZZ Top’s First Album {320 kbps MP3}\1.01 ZZ Top - (Somebody Else Been) Shaking Your Tree.mp3
Setup
My configuration:
chcp
,locale.getdefaultlocale() = ('en_US', 'cp1252')
andterminal_encoding: cp1252
The text was updated successfully, but these errors were encountered: