Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Senior Member kidstypike's Avatar
    Join Date
    Feb 2007
    Location
    Brindle
    Posts
    2,412

    mp3tag, convert tag --> tag

    Can someone help me populate the "Artist" field with the artist name that's at the end of the "Title"?

    Example:

    Title field is: One Track Mind - Quincy Jones

    Artist field needs to be: Quincy Jones

    There's quite a few.

    Many thanks.
    Study/Server - LMS 7.9.1 - Raspberry Pi3/Pi screen/HiFiBerry DAC+/piCorePlayer 3.22/jivelite, 25K library on WDMyCloud, cache and playlists on a USB stick (formatted ntfs).
    Lounge - RPi 2/Max2Play > HiFiBerry DIGI+ > AudioEngine DAC1 > AVI DM5
    Dining Room - Boom
    Garage - Raspberry Pi3/Pi screen/HiFiBerry DAC+/piCorePlayer 3.22 > Edifier R980T
    In car - LMS 7.9.1 > RPi3/Max2Play/Access Point plugin > HiFiBerry DAC+ > car's hifi (files on a 2TB portable USB drive)
    Spares - 1xTouch, 1xSB3, 1xRadio

  2. #2
    Senior Member DJanGo's Avatar
    Join Date
    Sep 2005
    Location
    Germany
    Posts
    2,486
    Quote Originally Posted by kidstypike View Post
    Can someone help me populate the "Artist" field with the artist name that's at the end of the "Title"?

    Example:

    Title field is: One Track Mind - Quincy Jones

    Artist field needs to be: Quincy Jones

    There's quite a few.

    Many thanks.
    Do you really want to do that?

    if you use [alt] [5] tag to tag conversion could handle that.
    just use something like %dummy% - %artist%
    BUT
    i would not do this to a big bunch of files cause there is always something you would not want and you didnt see at the first time...!!!
    Be careful
    Last edited by DJanGo; 2017-12-01 at 13:15.

  3. #3
    Senior Member
    Join Date
    Apr 2015
    Posts
    546
    Quote Originally Posted by kidstypike View Post
    Can someone help me populate the "Artist" field with the artist name that's at the end of the "Title"?

    Example:

    Title field is: One Track Mind - Quincy Jones

    Artist field needs to be: Quincy Jones
    Menu: Convert -> Tag - Tag (or ALT 5, as @DJanGo proposed)
    Field ARTIST
    Format String $regexp(%title%, .* - ,)

    The regular expression is greedy and matches all text up to the last appearance of " - ". The most left will be taken as ARTIST. If Artist has " - " in it, the replacement will be go wrong.
    If you want a non greedy regexe try
    Code:
    $regexp(%title%, .*? - ,)
    with an question mark after the asterisk.

    Good luck!
    Last edited by karlek; 2017-12-01 at 13:22.

  4. #4
    Senior Member kidstypike's Avatar
    Join Date
    Feb 2007
    Location
    Brindle
    Posts
    2,412
    Quote Originally Posted by DJanGo View Post
    Do you really want to do that?

    if you use [alt] [5] tag to tag conversion could handle that.
    just use something like %dummy% - %artist%
    BUT
    i would not do this to a big bunch of files cause there is always something you would not want and you didnt see at the first time...!!!
    Be careful
    No, I wouldn't do this to a big bunch of files, I only work on copies anyway.
    Study/Server - LMS 7.9.1 - Raspberry Pi3/Pi screen/HiFiBerry DAC+/piCorePlayer 3.22/jivelite, 25K library on WDMyCloud, cache and playlists on a USB stick (formatted ntfs).
    Lounge - RPi 2/Max2Play > HiFiBerry DIGI+ > AudioEngine DAC1 > AVI DM5
    Dining Room - Boom
    Garage - Raspberry Pi3/Pi screen/HiFiBerry DAC+/piCorePlayer 3.22 > Edifier R980T
    In car - LMS 7.9.1 > RPi3/Max2Play/Access Point plugin > HiFiBerry DAC+ > car's hifi (files on a 2TB portable USB drive)
    Spares - 1xTouch, 1xSB3, 1xRadio

  5. #5
    Senior Member kidstypike's Avatar
    Join Date
    Feb 2007
    Location
    Brindle
    Posts
    2,412
    Quote Originally Posted by karlek View Post
    Menu: Convert -> Tag - Tag (or ALT 5, as @DJanGo proposed)
    Field ARTIST
    Format String $regexp(%title%, .* - ,)

    The regular expression is greedy and matches all text up to the last appearance of " - ". The most left will be taken as ARTIST. If Artist has " - " in it, the replacement will be go wrong.
    If you want a non greedy regexe try
    Code:
    $regexp(%title%, .*? - ,)
    with an question mark after the asterisk.

    Good luck!
    Thanks for taking the time, however, both versions give OneQuincy Jones

    Any way to rectify that?

    Name:  onequincy.jpg
Views: 66
Size:  16.7 KB
    Study/Server - LMS 7.9.1 - Raspberry Pi3/Pi screen/HiFiBerry DAC+/piCorePlayer 3.22/jivelite, 25K library on WDMyCloud, cache and playlists on a USB stick (formatted ntfs).
    Lounge - RPi 2/Max2Play > HiFiBerry DIGI+ > AudioEngine DAC1 > AVI DM5
    Dining Room - Boom
    Garage - Raspberry Pi3/Pi screen/HiFiBerry DAC+/piCorePlayer 3.22 > Edifier R980T
    In car - LMS 7.9.1 > RPi3/Max2Play/Access Point plugin > HiFiBerry DAC+ > car's hifi (files on a 2TB portable USB drive)
    Spares - 1xTouch, 1xSB3, 1xRadio

  6. #6
    Senior Member
    Join Date
    Apr 2015
    Posts
    546
    Works fine for me:
    Attached Images Attached Images  

  7. #7
    Senior Member kidstypike's Avatar
    Join Date
    Feb 2007
    Location
    Brindle
    Posts
    2,412
    Quote Originally Posted by karlek View Post
    Works fine for me:
    Right, got it, I copied and pasted your text, it contains an extra " " <space> in your first post

    Many thanks, I've got something to keep me occupied for a while now

    Format String $regexp(%title%, .* - ,)
    Format String $regexp(%title%,.* - ,)




    Study/Server - LMS 7.9.1 - Raspberry Pi3/Pi screen/HiFiBerry DAC+/piCorePlayer 3.22/jivelite, 25K library on WDMyCloud, cache and playlists on a USB stick (formatted ntfs).
    Lounge - RPi 2/Max2Play > HiFiBerry DIGI+ > AudioEngine DAC1 > AVI DM5
    Dining Room - Boom
    Garage - Raspberry Pi3/Pi screen/HiFiBerry DAC+/piCorePlayer 3.22 > Edifier R980T
    In car - LMS 7.9.1 > RPi3/Max2Play/Access Point plugin > HiFiBerry DAC+ > car's hifi (files on a 2TB portable USB drive)
    Spares - 1xTouch, 1xSB3, 1xRadio

  8. #8
    Senior Member
    Join Date
    Apr 2015
    Posts
    546
    Oh. Sorry.
    I indeed inserted that blank afterwards in my posting to make it better readable.

  9. #9
    Senior Member kidstypike's Avatar
    Join Date
    Feb 2007
    Location
    Brindle
    Posts
    2,412
    Quote Originally Posted by karlek View Post
    Oh. Sorry.
    I indeed inserted that blank afterwards in my posting to make it better readable.
    No worries, we solved it.

    Something else while you're here . . please?

    I now wish to remove the artist's name from the title field
    Study/Server - LMS 7.9.1 - Raspberry Pi3/Pi screen/HiFiBerry DAC+/piCorePlayer 3.22/jivelite, 25K library on WDMyCloud, cache and playlists on a USB stick (formatted ntfs).
    Lounge - RPi 2/Max2Play > HiFiBerry DIGI+ > AudioEngine DAC1 > AVI DM5
    Dining Room - Boom
    Garage - Raspberry Pi3/Pi screen/HiFiBerry DAC+/piCorePlayer 3.22 > Edifier R980T
    In car - LMS 7.9.1 > RPi3/Max2Play/Access Point plugin > HiFiBerry DAC+ > car's hifi (files on a 2TB portable USB drive)
    Spares - 1xTouch, 1xSB3, 1xRadio

  10. #10
    Senior Member
    Join Date
    Apr 2015
    Posts
    546


    Field: TITLE
    Format String: $regexp(%title%, -.*,)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •