Posts: 1,277
Threads: 142
Joined: Oct 2005
This question has a couple parts - the ultimate goal is to automate the end to end addition of new ripped albums to my squeezebox library.
At the moment, I put a CD in the drive in my workstation, and J River automatically rips it in FLAC format to \\Media\Music\Albums\<Artist>\<Album>\<Track #> - <Track Name>
At that point my automation ends - i have to manually go to media:9000 and click through to "rescan library for new and changed music".
So I think the way this could work is:
1) Trigger a CQC event based on a directory change
2) React to that event with a rescan in the SqueezeServer driver.
I'm pretty sure 2) is straightforward, but how would I do 1)? Any other potential solutions?
Thanks very much!
Posts: 2,407
Threads: 244
Joined: Oct 2007
I just use a scheduled event every evening. If I need it sooner then I have a command button that rescans the library.
Posts: 1,277
Threads: 142
Joined: Oct 2005
this is working ok for me but still doesn't feel 'automated'.
basically, my wife buys a CD, sticks it in the slot, JR Media Center automatically rips, tags, and encodes it and then places it in the right network share. no buttons at all.
to have to either wait, or open a browser, or open the CQC IV, sort of defeats the purpose.
So it it possible to have CQC monitor for a change to a directory? or have some other process that does so that can trigger CQC events?
Posts: 40,483
Threads: 491
Joined: Aug 2002
03-17-2011, 10:29 AM
(This post was last modified: 03-17-2011, 10:44 AM by Dean Roddey.)
There's currently no way to do this. Unless JR were capable of sending out a signal of some sort, there's no way to know it's now at the point where it's now appropriate to rescan. It's not a process you'd want to happen every time some file might change really. You'd want to know that now everything is done, the XML is rewritten, the cover art is in place, etc... now you can rescan.
You guys should bug them about the ability to configure it so that it can send out a UDP broadcast on a configured port whenever it has finished adding new content or after changes have been made (not just each individual CD, you don't want to kick off a rescan every time if you are going to sit there and load 20 of them, and certainly not for every change you might make while editing), but maybe as the interface is closing or something after you are done.
Dean Roddey
Explorans limites defectum
Posts: 4,225
Threads: 365
Joined: May 2005
03-17-2011, 03:46 PM
(This post was last modified: 03-17-2011, 03:55 PM by znelbok.)
Can JR execute a command after a rip, if so, use a batch file or vbs script to send a command over IP to the General IP-based tirgger driver and trigger off that.
I use that IP driver for an IR receiver that is using winLirc. WinLirc send out a command on port xyz and driver allows me to run any action I want based on the string send from Lirc.
Just be careful as to how long it takes for the refresh to occurr.
For me it takes half hour or longer due to the large number of songs, but if your repository is small, then you can get away with it this way.
Mick
Mykel Koblenz
Illawarra Smart Home
Posts: 40,483
Threads: 491
Joined: Aug 2002
I assume you are using the file tag repo though, not the J.River repo, right? That one should go fairly fast since it only has to parse the XML file and load the image data.
Dean Roddey
Explorans limites defectum
Posts: 1,277
Threads: 142
Joined: Oct 2005
Neither, I use the squeezebox driver.
Posts: 4,225
Threads: 365
Joined: May 2005
I thought the SB driver is just for playing, there has to be a repo driver installed as well to pass the values to the SB driver. Or is that what the use database option does for you?
Either the file tag browser driver or the JR driver. There may be others as well that I can't remember.
Mick
Mykel Koblenz
Illawarra Smart Home
Posts: 1,858
Threads: 77
Joined: May 2007
znelbok Wrote:I thought the SB driver is just for playing, there has to be a repo driver installed as well to pass the values to the SB driver. Or is that what the use database option does for you?
Either the file tag browser driver or the JR driver. There may be others as well that I can't remember.
Mick
The SB driver can use the SB server repository via the Use Database option.
The repository interface isn't public/published so I had to deal with it within the driver.