View Issue Details

IDProjectCategoryView StatusLast Update
0012638MMW v4Synchronizationpublic2023-01-31 18:10
ReporterLudek Assigned To 
PriorityurgentSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Product Version4.1 
Target Version4.1.7Fixed in Version4.1.7 
Summary0012638: Some files can fail to sync because of very long target paths
DescriptionIt seems that the default sync mask:
\Music\<Album Artist>\<Album>\<Track#:2> <Artist> - <Title>
can produce path/filename longer than 260 chars causing issues when syncing to SD cards.

We should either
1) adjust the mask
2) auto-cut the long filenames
3) improve the error messages so that user knows why the copy operation has failed
Additional Information#PXV-517-71710
Tagstodoc-help
Fixed in build1738

Relationships

related to 0019758 feedbackpeke MMW 5 File Path is truncated on sync even not asked to 

Activities

Ludek

2015-03-17 18:19

developer   ~0042300

Maybe we could change the default masks for Music and Classical to

\Music\<Album Artist:20>\<Album>\<Track#:2> <Artist:20> - <Title>
\Music\Classical\<Composer>\<Album>\<Track#:2> <Artist:20> - <Title>

rusty

2015-03-20 21:32

administrator   ~0042324

It seems that a big part of the problem might be the name of the MediaMonkey application. i.e. in most cases, when content is written to an SD card, it will be to: \Android\data\com.ventismedia.android.mediamonkeybeta\files\...

So we're using up 60 characters before we even start with the media content (i.e. the real limit is 200 chars).

So I agree with your suggested default path, but think that MMW should also have some additional means of automatically truncating filenames that are too long to ensure that the limit won't be reached (we shouldn't use error messages for this).

Ludek

2015-03-25 23:01

developer   ~0042335

Last edited: 2015-03-25 23:20

The <Artist:20> doesn't work well, because it causes the artist always be 20 chars long (padded with spaces).

Based on http://www.mediamonkey.com/sw/webhelp/frame/index.html?configuringdirectoryandfileformats.htm
probably $Left(<Artist>,20) might work well, because the failed path for user from ticket #PXV-517-71710 was this:

F:\Music\Unknown\DJ Femmie Presents Hip Hop Remixes Volume 3\02 Busta Rhymes, Missy Elliot, Drake, , 40 Glocc, E-40, Too & Xzibit, Diddy, 2 Chainz, French Montana, Young Jeezy, Mark Morrison, Too Short, 40-E, P-Live, Newland, Lore'l, P.I. Bang, Lil Wayne, Yelawof, T.I, J. Cole, Project Pat Ft. Tity Boi, Vad - Why Stop Now - Busta Rhymes Feat Missy Elliot.mp3

In any case you are probably right that we should auto-cut overly long paths, we could probably cut the filename part to 50 chars and cut the directories part from the right, i.e. to take only the first X chars where X = MAX_PATH - Length(filename)

Ludek

2015-03-25 23:37

developer   ~0042336

Fixed in 4.1.7.1738

peke

2015-03-30 18:12

developer   ~0042378

Verified 1738