LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-18-2011, 10:42 PM   #1
mastahyeti
LQ Newbie
 
Registered: May 2010
Posts: 15

Rep: Reputation: 0
Music Libraries


I have a dilemma and have found a few solutions, but was wondering what you guys thought would be best.

I have a seed box (for legally torrented music) that is also running ampache with media player daemon (MPD) for my home stereo. I would like to keep my music library on this server synced with my music library on my laptop. My problem is that I am often adding music to my library on either my laptop or my server. I am currently using two lftp scripts for mirroring (one for push and one for pull). I have two problems with the setup:

1. I would like to write a script that cron can run that updates both libraries with whichever files are most recent. lftp can mirror and only move newer files, but this only works in one direction. I could run both my push and my pull scripts with cron (without directives for deleting files that exist on the target, but not the source), but I feel that this would be fairly unstable. If I were to move or change a file on either machine, when I run the script I would end up with duplicate files. Can anyone think of a better solution for this?

2. I would like to write a script to be run when a torrent is finished that would check to see if the files were music, maybe by checking the tracker the the torrent came from (most of my music comes from one tracker), and if they are music, move them into the appropriate subdirectory of my music folder (/home/user/music/$artist/$album [$year]/). I don't particularly feel like wasting my time learning a python id3 tagging library, so, does any one have thoughts on a good way to do this? Maybe a tool for importing music?

Thanks for any thoughts on these issues.
 
Old 02-19-2011, 01:01 PM   #2
Snark1994
Senior Member
 
Registered: Sep 2010
Distribution: Debian
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
I'll need more time to think about the rest, but for point 2 you wouldn't need to learn an id3 tagging library (though even if you did mutagen is a complete doddle to use) - couldn't you just check the extension? Or even use the "file" command?
 
Old 02-19-2011, 03:45 PM   #3
everest40
Member
 
Registered: Jul 2008
Distribution: Ubuntu $LATESTVERSION
Posts: 168

Rep: Reputation: 68
I use unison for syncing my music library between computers. It can detect when files are moved, renamed, changed, or deleted, so I think it would be a good solution for #1. It's very resilient to failure, and can be run either from the command line or using its GTK+ interface.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Static libraries vs shared Libraries catallergy Linux - Newbie 2 03-16-2010 01:30 PM
LXer: Encode and sync music to your portable music player in linux LXer Syndicated Linux News 0 09-15-2009 08:40 AM
Text/sample-based music tracker(music compiler)? ErV Linux - Software 1 09-01-2008 04:45 PM
LXer: Exaile Music Player - Music Player for GTK+ in openSUSE LXer Syndicated Linux News 0 08-31-2008 12:50 AM
Mood Music, the quest for a music library app GuidoS Linux - Software 6 08-18-2004 01:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration