I wanted to share my recording with other units on the network, and since the upnp support has been very shaky for me I had to come up with another solution. What I do now is have a script run that gets all the recordings from the database and generates links with good names that point to the recordings. For example,<br>
<br>The link:<br>/home/da/storage/recordings/TV5.0420.Desperate Housewives(Del 6 säsong 4).mpg<br>points to:<br>/home/da/storage/.recordings/2099_20080420151600.mpg <br><br>Then I just share the folder with the links using samba and it is easily browseable by any unit on the network. If anyone is interested the ruby script is here:<br>
<a href="http://pastebin.com/f5ec6e882">http://pastebin.com/f5ec6e882</a><br><br>I have a cronjob running every minute (crontab -e):<br>* * * * * /home/da/scripts/genreclinks.rb<br><br>The script does the following:<br>1. connects to the database and gets all the information about all recordings<br>
2. generates names for links<br>3. removes old links in the link-directory<br>4. creates the new links<br><br>Output:<br>da@brutus:~/scripts$ ./genreclinks.rb<br>Created link: /home/da/storage/recordings/TV4.0420.Rent hus.mpg =&gt; /home/da/storage/.recordings/3004_20080420152258.mpg<br>
Created link: /home/da/storage/recordings/TV3.0420.Top Model 9(Del 9 säsong 9).mpg =&gt; /home/da/storage/.recordings/2101_20080420190300.mpg<br><br>If you want to run it you need the mysql gem.<br><br>Cheers<br>Daniel Åkerud<br>
<br>