INTERACT FORUM

Please login or register.

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

Author Topic: need some code  (Read 2058 times)

mcj008

  • Recent member
  • *
  • Posts: 35
need some code
« on: April 05, 2013, 12:50:25 am »

Hi, I'm still using another program to organize my audio files, It continiously scan for changes in the main "Artists" folder...here's the way I make the settings for auto organize funtion in the program...


main dir: Z:\Music Collection\Club Music\Artists\

sub maps: <Albumartist>\<year>\<Album>

filename: $if(<disc#>,CD<disc#> - )Tr.<track#:2> - <Titel>


The filename code is the one I would like in mediacenter, it searches for a disc# and if it finds none then it will make my filenames look like:  Tr.00 - <title>
this is done for single files, the ones that don't need disc#... If it is a full CD with 10 tracks, then it outputs Tr.01 - <title> ---> Tr.10 - <title>
If it is a double disc with 10 tracks on each disc, then it makes filename CD1 - Tr.01 - <title> ---> CD1 - Tr.10 - <title> and CD2 - Tr.01 - <title> ---> CD2 - Tr.10 - <title>.

Normally when I have new files I select them all, edit tags like Album,Publisher,year,grouping or w/e, and when I'm content I move them all in the directorie "Artists" and then the program takes care of it, I would like mediacenter to do the same thing...

cheers
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72438
  • Where did I put my teeth?
Re: need some code
« Reply #1 on: April 05, 2013, 05:47:59 am »

Investigate the Library Tool called "Rename, Move, and Copy".  It can move your files, according to the tags.  Experiment a little before you do very many files.
Logged

mcj008

  • Recent member
  • *
  • Posts: 35
Re: need some code
« Reply #2 on: April 05, 2013, 08:06:16 am »

yep I got it thanks!
Logged

mcj008

  • Recent member
  • *
  • Posts: 35
Re: need some code
« Reply #3 on: April 09, 2013, 12:10:59 pm »

Is there a way to have the image the same year as the audio file that is in the same folder? i'm talking about 1500 images that actually belong to the audio files but are not moved with them because they lack year tag AND WHEN I DO "SAVE IMAGE TO FOLDER" then it make the year tag not the same as the audio file??? , how stupid is this??? Yes call me stupid for not taking some causion, but this is stupid not to move the image with the files...and have the same date, because it was extracted from the audio file!!! :-X
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: need some code
« Reply #4 on: April 09, 2013, 12:16:31 pm »

You probably want then to create a maintenance view which you use for doing renames that involve renaming folders.  See this thread for the idea:

   http://yabb.jriver.com/interact/index.php?topic=76421.msg518510#msg518510

Ask if you have specific questions on tailoring the idea to your needs.
Logged
The opinions I express represent my own folly.

mcj008

  • Recent member
  • *
  • Posts: 35
Re: need some code
« Reply #5 on: April 09, 2013, 12:50:54 pm »

ok thanks, but is there a way to copy the audio file date to the image if i set image to "AUDIO" type? this would solve my problem...I already looked in the expression language wiki but I just fail to understand it all, but I already did a nice job for organizing my files alphabetically and by year (i'm talking about moving, copy folders), but there's the problem with the image , they lack the "year" tag info, so they are not placed correctly like the audio files...
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: need some code
« Reply #6 on: April 09, 2013, 12:57:41 pm »

No need to change the Image type.  Rather, change the View by modifying the Set rules for file display to include Images.  Note, these must be Imported for MC to show them in any view (other than the Explorer area).

If your images are imported, it is easy enough to grab the year from your folder name, and assign the year to all the selected image files.

Select your audio image files in MC, in the Tag Action Window, click to edit the Date field and add the value:

=filefolder(,1)

You can Undo after if this isn't what you want.
Logged
The opinions I express represent my own folly.

mcj008

  • Recent member
  • *
  • Posts: 35
Re: need some code
« Reply #7 on: April 09, 2013, 02:39:05 pm »

sorry "Set rules for file display" were to find that?
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: need some code
« Reply #8 on: April 09, 2013, 03:47:29 pm »

Customize the view.  View > Customize View, and look at the middle section, under Included Files.
Logged
The opinions I express represent my own folly.
Pages: [1]   Go Up