Locating protected WMA files
Let me start by saying I am not trying to defeat DRM! I also could not locate a similar thread, and google only provides links to 'remove DRM from wma' no matter what I search.
So here is what I am trying to do, I want to find and move all DRM protected audio files out of my library and into its own folder. I have an extensive audio library that started years ago when I was a windows noob. Like a sheep, I bought into the 'amazing benefits of wma' and ripped all my cds using it. Now I am older and wiser, running Fedora 9 and loving every minute of it. However, that old DRM music is intermixed with my mp3s and it causes issues with Amarok (and others) when they come up in a shuffle. I have one remaining Windows machine for pic programming that is licensed to play them, and that is fine. I have already re-ripped the cds in linux so I dont need to convert. All I want to do it find out which ones have DRM and move them to a separate folder. Any ideas? Best Regards and happy new year! |
When you run the 'file' command on a DRM file, does it show anything different in the output compared to a non-DRM file? If so, then you can use grep to filter out a list of the files you want. "ls *.wma | grep <matching-phrase>".
|
Thanks!
So that was all I needed to jog the creative juices. I did a comparison on a WMA with and without DRM and found a expression that seems to work well. Then a few hundred re-writes later I created this, hope it is useful for someone else too!
Given a directory this will go through and move all DRM files (well maybe not all types, known to work with WMA) to a subdirectory called 'DRM' of the provided directory. It respects found locations. Example Output(if the script is called move_drm): Quote:
Code:
#!/bin/bash |
All times are GMT -5. The time now is 01:23 AM. |