More > JRiver Media Center 27 for Windows

Problem with Rename, Move and Copy Files

<< < (4/5) > >>

markf2748:
Interesting.  I keep copies of all my music files on multiple external USB drives, some on my MC server and others on wi-fi networked computers.
I regularly do file compares (Beyond Compare) for manual backup.  In a compare yesterday, I noticed about half a dozen flac files (out of thousands) that had extra spaces in the file name (on server, main MC external drive) just as described by OP.  I removed the spaces and files were binary identical as expected. 

Lately I've been doing a lot of messing around with views in MC, but  I have not used rename, move and copy files recently.

I've never seen this before.  The files with extra spaces seemed random, not necessarily played recently, and were scattered among different albums.

I just noticed a windows optional quality update (KB5004476) sitting ready for install.  In the past, I have encountered all sorts of disruptions to MC when there is a windows update waiting to be installed.  May be related, may be not.

MC 27.0.85 (64-bit)
Win 10 Pro 64-bit, Ver. 21H1, OS Build 19043.1052
Windows Feature Experience Pack 120.2212.2020.0

Matt:
There was a newline at the end of the rule.  That's why it put a space there.  I'll think about trimming that as well for v28.

lepa:
Just to note that this trimming of those badly implemented expressions rule will break rename rules if one has used "/"s to format rules to multiline for better readibility of complex rules. Just realized that my files I have renamed with builds .24-25 have now unintended filenames...

You should advertise this change loudly so that people will realize that you cannot use any kind formation of expression in RMC tool anymore

After removing "/" to ignore line feeds and getting expression to work

I now have to maintain this:
IfElse(IsEqual([Media Sub Type],Audiobook),If(IsEmpty([Track #],1),[Name],If(IsEqual([Disc #],Unknown Disc #),[Track #] - [Name],PadNumber([Disc #],2)#[Track #] - [Name])),IsEqual([Media Type],Audio),If(IsEmpty([Track #],1),[Name],If(IsEqual([Disc #],Unknown Disc #),[Track #] - [Name],PadNumber([Disc #],2)#[Track #] - [Name])),IsEqual([Album Art],1),[Name],IsEqual([Media Sub Type],TV Show),[Series] - SPadNumber([Season],2)EIf(Compare(ListCount([Episode],-),>,1),PadNumber(ListItem([Episode],0,-),2)-PadNumber(ListItem([Episode],1,-),2),PadNumber([Episode],2)) - [Name],IsEqual([Media Sub Type],Movie),[Name]If(!IsEmpty([Version,0]),/[[Version]/],) /([Date (Year)]/)If(IsEqual([Definition],4K),/[4K/],),IsEqual([Media Sub Type],Music Video),If(IsEmpty([Date (Year)],1),[Artist] - [Name],[Artist] - [Name] /([Date (Year)]/)),IsEqual([Media Sub Type],Other),[Episode],IsEqual([Media Sub Type],Music),[Name] /([Date (Year)]/),IsEqual([Media Sub Type],Concert),[Name] /([Date (Year)]/),IsEqual([Media Sub Type],Educational),If(!IsEmpty([Series],1),[Series] - SPadNumber([Season],2)EPadNumber([Episode],2) - [Name],[Name] /([Date (year)]/)),IsEqual([Media Sub Type],Extras),[Episode],1,[Name])

Instead of this:

--- Code: ---IfElse(
    IsEqual([Media Sub Type],Audiobook),
        If(IsEmpty([Track #],1),[Name], If(IsEqual([Disc #],Unknown Disc #),[Track #] - [Name],PadNumber([Disc #],2)#[Track #] - [Name])),
    IsEqual([Media Type],Audio),If(IsEmpty([Track #],1),[Name],
        If(IsEqual([Disc #],Unknown Disc #),[Track #] - [Name],PadNumber([Disc #],2)#[Track #] - [Name])),
    IsEqual([Album Art],1),
        [Name],
    IsEqual([Media Sub Type],TV Show),
        [Series] - SPadNumber([Season],2)EIf(Compare(ListCount([Episode],-),>,1),PadNumber(ListItem([Episode],0,-),2)-PadNumber(ListItem([Episode],1,-),2),PadNumber([Episode],2)) - [Name],
    IsEqual([Media Sub Type],Movie),
        [Name]If(!IsEmpty([Version,0]),/ /[[Version]/],) /([Date (Year)]/)If(IsEqual([Definition],4K),/ /[4K/],),
    IsEqual([Media Sub Type],Music Video),
        If(IsEmpty([Date (Year)],1),[Artist] - [Name],[Artist] - [Name] /([Date (Year)]/)),
    IsEqual([Media Sub Type],Other),
        [Episode],
    IsEqual([Media Sub Type],Music),
        [Name] /([Date (Year)]/),
    IsEqual([Media Sub Type],Concert),
        [Name] /([Date (Year)]/),
    IsEqual([Media Sub Type],Educational),
        If(!IsEmpty([Series],1),[Series] - SPadNumber([Season],2)EPadNumber([Episode],2) - [Name],[Name] /([Date (year)]/)),
    IsEqual([Media Sub Type],
        Extras),[Episode],
    1,[Name]
)
--- End code ---

marko:
I too was really quite nervous about this change, but for whatever reason, mine are still working as expected. Perhaps it's because I haven't actually changed anything whilst this 'fix' was put in place... With these, I never need to concern myself with what files I'm asking MC to move. So long as the tags are correct, I just open the tool, give the target previews a quick check and press OK. Having to maintain these as a single string was not something I would find either enjoyable or user-friendly....

lepa:
It works as you don't have used "/" to skip linefeed but your linefeeds should be gone at least mine are

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version