TINT-based filing migration: Difference between revisions

From tango.info wiki
Jump to navigation Jump to search
(** if all tracks are on side 1 use: Convert | Tag -> Filename , format string: %_directory%\1\%track%)
No edit summary
 
(28 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:tango.info]]
[[Category:Tango.info]]
On Windows systems [[mp3tag]] can help you to migrate to [[TINT-based filing]], i.e. filing based on [[TIN]], side# and track#.


Three useful commands are
This page describes how to migrate to [[TINT-based filing]], i.e. filing based on [[TINP]], side# and track#.
==Windows==
Use the software: [[mp3tag]]. mp3tag lets you read and write parts of the pathnames. They are accesible via %_something%.
 
;The rows labeled "[[TINT-based filing]]" show the migration goals, depending on the software
 
{| class="wikitable sortable" |
! [[t.i]]
! tool
! TINP
! Side#
! Track#
|-
| [[TINT-based filing]]
| [[foobar2000]]
| $directory(%path%,2)
| %_directoryname%
| %_filename%
|-
| [[TINT-based filing]]
| [[mp3tag]]
| %_parent_directory%
| %_directory%
| %_filename%
|-
| Tags
| [[foobar2000]]
| $num(%barcode%,14)
| %discnumber%
| %tracknumber%
|-
| Tags
| [[mp3tag]]
| ?
| ?
| ?
|}
 
;Three useful commands are
* Convert | Tag -> Filename
* Convert | Tag -> Filename
* Convert | Filename -> Tag
* Convert | Filename -> Tag
* Convert | Filename -> Filename
* Convert | Filename -> Filename (The third command can maybe replace the two step uses of the other two commands - not tested).
If you have the tracknumber in the tag fields you can rename the file to only this tracknumber + fileextension. If you don't have it in the tags but the filename starts with the number then you can put it in the tracknumber tag and from there rename your files. (The third command can probably do this in one run - not tested).
 
===Track# - %_filename%===
;process
* A) If you have the tracknumber in the tag fields you can rename the file to "tracknumber.fileextension".
** Convert | Tag -> Filename
** format string: '''$num(%track%,1)''' ($num is essential to remove leading zeros)
* B) If you don't have the tracknumber in the tags but the filename starts with the number then you can put it in the tracknumber tag.  
** Convert | Filename -> Tag
** Format string something like '''%track% - %dummy%''' or '''%track%_%dummy%''' or '''%track%_-_%dummy%'''.
** go to A)
 
;Example
*05_-_la_punalada.flac
** Convert | Filename -> Tag, format string %track%_-_%dummy%
** now the track number field contains "05"
** Convert | Tag -> Filename, format string $num(%track%,1)
** now the file is named 5.flac
 
===Side# - %_directory%===
* introduce the side folder. Very often it will be a folder named "1"
* if all tracks are on side 1 use: Convert | Tag -> Filename , format string: %_directory%\1\%track%
** if before conversion , after conversion
 
;Example
* Calo_Al_compas_del_corazon\5.flac
* %_directory% = albumname folder name
* if all tracks are on side 1 use: Convert | Tag -> Filename , format string: %_directory%\1\%track%
* you get Calo_Al_compas_del_corazon\1\5.flac
* %_directory% = Side#, %_parent_directory% = albumname folder name
 
===TINP - %_parent_directory%===
todo
* TINP conversions....
** sometext_[<TINP|EAN|UPC>]/
** <TINP|EAN|UPC>_sometext/


Todo:
When there are other than audio files (e.g. a "cover.jpg") in the folders and you want to keep them there, (assume barcode is in field "barcode") you can do
* get rid of leading zeros in filenames
* Convert Tag->Filename %_parent_directory%\%_directory%\%barcode%\%_filename%
** Often filenames contain leading zeros, e.g. "05_-_la_punalada.flac". With the above one can convert to "05.flac". But how to get "5.flac" ?
* so the new folders are created inside the old ones
* introduce the side folder (very often will be only one folder named "1")
* manually copy the non-audio files into the barcoded folder
** %_directory% should be the side number. %_parent_directory% the TIN.
** if all tracks are on side 1 use: Convert | Tag -> Filename , format string: %_directory%\1\%track%
* TIN conversions....
** sometext_[<TIN|EAN|UPC>]/
** <TIN|EAN|UPC>_sometext/

Latest revision as of 2013-06-09T23:07:32


This page describes how to migrate to TINT-based filing, i.e. filing based on TINP, side# and track#.

Windows

Use the software: mp3tag. mp3tag lets you read and write parts of the pathnames. They are accesible via %_something%.

The rows labeled "TINT-based filing" show the migration goals, depending on the software
t.i tool TINP Side# Track#
TINT-based filing foobar2000 $directory(%path%,2) %_directoryname% %_filename%
TINT-based filing mp3tag %_parent_directory% %_directory% %_filename%
Tags foobar2000 $num(%barcode%,14) %discnumber% %tracknumber%
Tags mp3tag ? ? ?
Three useful commands are
  • Convert | Tag -> Filename
  • Convert | Filename -> Tag
  • Convert | Filename -> Filename (The third command can maybe replace the two step uses of the other two commands - not tested).

Track# - %_filename%

process
  • A) If you have the tracknumber in the tag fields you can rename the file to "tracknumber.fileextension".
    • Convert | Tag -> Filename
    • format string: $num(%track%,1) ($num is essential to remove leading zeros)
  • B) If you don't have the tracknumber in the tags but the filename starts with the number then you can put it in the tracknumber tag.
    • Convert | Filename -> Tag
    • Format string something like %track% - %dummy% or %track%_%dummy% or %track%_-_%dummy%.
    • go to A)
Example
  • 05_-_la_punalada.flac
    • Convert | Filename -> Tag, format string %track%_-_%dummy%
    • now the track number field contains "05"
    • Convert | Tag -> Filename, format string $num(%track%,1)
    • now the file is named 5.flac

Side# - %_directory%

  • introduce the side folder. Very often it will be a folder named "1"
  • if all tracks are on side 1 use: Convert | Tag -> Filename , format string: %_directory%\1\%track%
    • if before conversion , after conversion
Example
  • Calo_Al_compas_del_corazon\5.flac
  • %_directory% = albumname folder name
  • if all tracks are on side 1 use: Convert | Tag -> Filename , format string: %_directory%\1\%track%
  • you get Calo_Al_compas_del_corazon\1\5.flac
  • %_directory% = Side#, %_parent_directory% = albumname folder name

TINP - %_parent_directory%

todo

  • TINP conversions....
    • sometext_[<TINP|EAN|UPC>]/
    • <TINP|EAN|UPC>_sometext/

When there are other than audio files (e.g. a "cover.jpg") in the folders and you want to keep them there, (assume barcode is in field "barcode") you can do

  • Convert Tag->Filename %_parent_directory%\%_directory%\%barcode%\%_filename%
  • so the new folders are created inside the old ones
  • manually copy the non-audio files into the barcoded folder