Karaoke Library Cleanup and Merging: Difference between revisions
Jump to navigation
Jump to search
| Line 1: | Line 1: | ||
=Process= | =Process= | ||
==File Name Issues== | ==File Name Issues== | ||
* Rename folders which end in .zip/mp3/cdg to remove the extensions<br/> | |||
<pre> | |||
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 | |||
</pre> | |||
* Combine bare matching .mp3 and .cdg files into zip<br/> | * Combine bare matching .mp3 and .cdg files into zip<br/> | ||
find ... | zip_mp3cdg | find ... | zip_mp3cdg | ||
| Line 6: | Line 12: | ||
** Use ",The" naming where appropriate | ** Use ",The" naming where appropriate | ||
** Use Last, First for <artist> | ** Use Last, First for <artist> | ||
==Find Duplicates== | ==Find Duplicates== | ||
* Look for duplicate <trackID><br/>Assume an exact duplicate in the library is good unless clearly marked otherwise. | * Look for duplicate <trackID><br/>Assume an exact duplicate in the library is good unless clearly marked otherwise. | ||
Revision as of 00:27, 14 December 2021
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