Karaoke Library Cleanup and Merging

From Pikes' Wiki
Jump to navigation Jump to search

Process

File Name Issues

  • Rename folders which end in .zip/mp3/cdg to remove the extensions
find . -type d \( -iname "*.zip" -o -iname "*.mp3" -o -iname "*.cdg" \) | while read fn ; do
	mv "$fn" "${fn%.*}"			#note the single percent so we only remove the final . and extension
	done
  • Combine bare matching .mp3 and .cdg files into zip

find ... | zip_mp3cdg

  • Standard naming should be: <trackid> - <artist> - <title>.zip
    • Use ",The" naming where appropriate
    • Use Last, First for <artist>

Find Duplicates

  • Look for duplicate <trackID>
    Assume an exact duplicate in the library is good unless clearly marked otherwise.
  • Search for duplicate
    • Artist+Title
    • Soundtrack+Title (e.g. Grease - Greased Lightning)

Scripts

  • mv_file_by_pub
  • mv_tree
  • rn_by_artist
  • rn_by_artist_interactive
  • rn_by_count
  • rn_zip_by_content
  • rn_zip_contents
  • rn_zip_interactive
  • rn_zip_stripchars
  • rn_zip_swap_fields_interactive
  • zip_fc_fix
  • zip_find
  • zip_flatten
  • zip_matchsub
  • zip_mp3cdg
  • zip_test