View Issue Details

IDProjectCategoryView StatusLast Update
0001415MMW v4Synchronizationpublic2004-12-09 04:16
Reporterrusty Assigned To 
PriorityimmediateSeverityfeatureReproducibilityalways
Status closedResolutionfixed 
Fixed in Version2.3 
Summary0001415: Limits on file name sizes
DescriptionNot sure if this is a common requirement, but from a user's comments, it appears that some portable devices impose limits on the length of a filename. It might be worth allowing this to be configurable on the Portable Device screen.
Additional Informationhttp://www.songs-db.com/forum/viewtopic.php?t=1838
TagsNo tags attached.
Fixed in build813

Activities

rusty

2004-09-03 16:04

administrator   ~0004500

Raising priority of this since it appears to be a requirement for iRiver device synchronization.

rusty

2004-10-11 16:03

administrator   ~0004559

A good implementation of this appears within Tag Database Tool, designed for synchronizing iRiver devices. See: http://tdt.sourceforge.net/rename.htm

This is _not_ the ideal implementation for MediaMonkey, however, this could be implemented along the following lines (the UI below appears as a Tab in the Synchronization dialog or in the Burn CD Dialog):

Path & Filename Limits

[ ] Set character limit to: _52_
    [x] Replace _'and'_ with _'&'_
    [x] Move _'The'_ to end
    [x] Truncate excess characters

rusty

2004-11-16 13:56

administrator   ~0004690

Raising to 'immediate' based on discussion at: http://www.songs-db.com/forum/viewtopic.php?t=2790

jiri

2004-11-25 17:31

administrator   ~0004797

Fixed in build 812.
 - After some thinking I implemented only the option to truncate to <=52 chars in iRiver device plug-in. We'll see if for example other algorithms of truncating are necessary later.

rusty

2004-11-28 04:05

administrator   ~0004819

In build 812:
'Set character limit to: 52' should be changed to: 'Limit path & filename to 52 characters'

This change is needed because the original design was based on the assumption that the text would have a header and that the configuration option would appear in the context of Path & Filename configuration.

Question: Can you please comment on the algorithm you've used? I'll need this information for the online help.

jiri

2004-11-28 13:58

administrator   ~0004827

Can we change the text so that 52 is in the end, e.g.: 'Path & filename character limit: 52'? It's better for UI design from plug-ins. (Btw, for iRiver plug-in 52 is a fixed text, not an editable line because other choices don't make much sense, but for other devices it might be different).

The algorithm takes each part of path and checks if it's shorter or equal to 52 chars, if it isn't it tries the following steps:
 1. Remove unnecessary chars (e.g. '//' -> '/') and spaces (e.g. 'xx - yy' -> 'xx-yy').
 2. Remove _all_ spaces (e.g. 'Faith No More' -> 'FaithNoMore').
 3. Take the first 25 chars, add '--' and add the last 25 chars.

rusty

2004-11-28 16:32

administrator   ~0004830

We can do as you suggested (although it looks a bit strange to just have 52 appear as text after a ':' ). It might look more 'normal' if 52 was uneditable in a box with up/down arrows.

jiri

2004-11-28 22:06

administrator   ~0004834

Fixed in build 813.
 - The suggested text was included, for now the rest remains.

rusty

2004-12-09 04:16

administrator   ~0004918

Open issues with this functionality are already described in 0001659. Closing.