Some HD recorder are able to record videos on their internal Harddisk, but they are not able to make these files available over the network. Ther is actualy no http- ftp- or SMB-Server available on theses devices. But they can stream the videos via UPNP® / DLNA® into the network.
Therefore it was the aim to load all the available files from the device on the NAS, where they can be made available via all known protocolls. By doing this the videos can be integrated into normal backup procedure and the disk space on the HD recorder is of no importance anymore.
By now this goal is not fully achived, but the software is already capable of identifying and downloading the files from the device and also obeying some filter options. This is not a permanetly running server process with permanent check for available files, but you have to start the downloading manually on the command line of the NAS.
The configuration can be set via config-file or the commandline at program start. Ther is (still) no Synology website for configuration.
<GLOBAL> <COMMENT>My own Clientname</COMMENT> <CLIENTNAME>Test application</CLIENTNAME> <COMMENT>My own IP-Adress, shall be used with multihomed hosts, if in doubt leave it empty</COMMENT> <CLIENTIP>Fill in the IP of the NAS</CLIENTIP> <COMMENT>My own Portnumber, usually 49152, if in doubt use 0 or omit the port</COMMENT> <CLIENTPORT>0</CLIENTPORT> <COMMENT>The path were the videos are stored</COMMENT> <VIDEOPATH>/volume1/video/</VIDEOPATH> <COMMENT>Target for all logging activity</COMMENT> <LOGPATH>/var/packages/DLNADownloader/target/var/log/</LOGPATH> <COMMENT>The central log file</COMMENT> <LOGFILE>DLNADownload.log</LOGFILE> <COMMENT>A bash compatible script file witch downloads all not currently loaded files to the current directory</COMMENT> <CURLFILE>CURLscript.sh</CURLFILE> <COMMENT>List all local video files</COMMENT> <LOCALFILE>Videotable-local</LOCALFILE> <COMMENT>List all remote video files</COMMENT> <REMOTEFILE>Videotable-remote</REMOTEFILE> <COMMENT>List all remote video files except locally available</COMMENT> <DOWNLOADFILE>Videotable-new-remote</DOWNLOADFILE> <COMMENT>Level of debug</COMMENT> <DEBUG>0</DEBUG> </GLOBAL> <DEVICE> <COMMENT>The name of the device which shall be backuped</COMMENT> <FRIENDLYNAME>DVD</FRIENDLYNAME> <IGNORE>0</IGNORE> </DEVICE> <DEVICE> <COMMENT>The name of the device which shall not be noticed</COMMENT> <FRIENDLYNAME>Any_other_device</FRIENDLYNAME> <IGNORE>1</IGNORE> </DEVICE> <NOLOAD> <COMMENT>The name of a file that shall not be downloaded</COMMENT> <MATCH>Some_media_File</MATCH> <MATCH>\[LiveView\].*</MATCH> </NOLOAD> <AUTOSTRUCT> <COMMENT>Files with this name (regex) shall be downloaded to the named directory</COMMENT> <MATCH>.*-Some_media_File</MATCH> <DIRECTORY>%%VIDEOPATH%%xxx/yyy/</DIRECTORY> </AUTOSTRUCT> <AUTOSTRUCT> <COMMENT>Files with this name (regex) shall be downloaded to the named directory</COMMENT> <MATCH>.*</MATCH> <DIRECTORY>%%VIDEOPATH%%Neu/</DIRECTORY> </AUTOSTRUCT>
Copyright ©2017 Sönke Huckfeldt
This software is free software, distributed under the terms of the GNU General Public License, version 3 or (at your choice) newer. This means that if you want to use this software or parts of the sourcecode in a program that you release or distribute to anyone, the program must be free software and have a GPL-compatible license. If you would like advice on making your license GPL-compatible, contact licensing@gnu.org.
This software is provided in the hope that it may be useful, but without any warranty, see GNU General Public License for further details.
You should have received a copy of the GNU General Public License together with this software. If not please download from http://www.gnu.org/licenses/.
The part of the software created by me is free of third party rights. All used libraries are free software, but the respective licence terms apply. Please notice all details and information on this topic in this file.
/***************************************************************************** * UPNP-Downloader * * * * Copyright ©2017 by Sönke Huckfeldt webmaster (at) huckfeldt.eu * * * * Licensed under GNU General Public License 3.0 or later. * * Some rights reserved. See this README and COPYING. * * * * License http://www.gnu.org/licenses/ * *****************************************************************************/
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.