INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Some help needed for music video import rule expression  (Read 897 times)

MrHaugen

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 3774
Some help needed for music video import rule expression
« on: March 07, 2012, 02:45:01 pm »

I'm planning to set up a music video import rule on my server. A MC client will download from Youtube, or I will add manually videos to a folder on the server. The MC will import from a common mapped share that is available as a mapped drive on all machines.

The Music videos are usually named "Artist - Name.extention" I think. If an expression could pick up letters before " -" for Artist and after "- " for Name, this would work perfectly. Anyone know if this is possible? I could not find anything really matching my requirements on the Wiki. Only the Left and right functions, but I have no clue as how I should combine those. Among other things.
Logged
- I may not always believe what I'm saying

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Some help needed for music video import rule expression
« Reply #1 on: March 07, 2012, 04:57:59 pm »

Use these for your import rules:

Artist:
   Regex([Filename (name)], /#^(.+) - (.+)\..*$#/, 1)

Name:
   Regex([Filename (name)], /#^(.+) - (.+)\..*$#/, 2)
Logged
The opinions I express represent my own folly.

MrHaugen

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 3774
Re: Some help needed for music video import rule expression
« Reply #2 on: March 08, 2012, 06:43:46 am »

Amazing... I do not understand how you remember this stuff. Thanks!
Logged
- I may not always believe what I'm saying
Pages: [1]   Go Up