{"id":16514855,"url":"https://github.com/schnatterer/dsdl","last_synced_at":"2025-04-04T19:15:27.229Z","repository":{"id":38251348,"uuid":"131071178","full_name":"schnatterer/dsdl","owner":"schnatterer","description":"DiskStation DownLoader - gets files from Synology DiskStation Manager","archived":false,"fork":false,"pushed_at":"2023-07-12T19:18:54.000Z","size":1619,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-11T04:39:55.714Z","etag":null,"topics":["audio-station","diskstation","dsaudio","dsm","dsphoto","photo-station","photostation","synology","synology-api","synology-disk-station","synology-dsm-api","synology-nas","synology-photos","termux"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/schnatterer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-25T22:40:14.000Z","updated_at":"2024-04-04T17:04:18.000Z","dependencies_parsed_at":"2023-02-09T03:45:54.239Z","dependency_job_id":null,"html_url":"https://github.com/schnatterer/dsdl","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schnatterer%2Fdsdl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schnatterer%2Fdsdl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schnatterer%2Fdsdl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schnatterer%2Fdsdl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/schnatterer","download_url":"https://codeload.github.com/schnatterer/dsdl/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247234930,"owners_count":20905854,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["audio-station","diskstation","dsaudio","dsm","dsphoto","photo-station","photostation","synology","synology-api","synology-disk-station","synology-dsm-api","synology-nas","synology-photos","termux"],"created_at":"2024-10-11T16:14:13.922Z","updated_at":"2025-04-04T19:15:27.209Z","avatar_url":"https://github.com/schnatterer.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"dsdl\n====\n\n[![Build](https://github.com/schnatterer/dsdl/actions/workflows/build.yaml/badge.svg)](https://github.com/schnatterer/dsdl/actions/workflows/build.yaml)\n[![NPM Version](http://img.shields.io/npm/v/dsdl.svg?style=flat)](https://www.npmjs.org/package/dsdl)\n[![QGate](https://sonarcloud.io/api/project_badges/measure?project=info.schnatterer.dsdl\u0026metric=alert_status)](https://sonarcloud.io/dashboard?id=info.schnatterer.dsdl)\n[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=info.schnatterer.dsdl\u0026metric=coverage)](https://sonarcloud.io/dashboard?id=info.schnatterer.dsdl)\n[![TecDebt](https://sonarcloud.io/api/project_badges/measure?project=info.schnatterer.dsdl\u0026metric=sqale_index)](https://sonarcloud.io/dashboard?id=info.schnatterer.dsdl)\n\nDiskStation Downloader (formerly photostationtagdownloader / pstd)\n\nDownloads files from [Synology DiskStation Manager](https://www.synology.com/dsm). Supports downloading\n* photos (all photos of a tag / \"smart album\") via [Synology Photos](https://www.synology.com/dsm/feature/photos) / [Photo Station](https://www.synology.com/dsm/feature/photo_station) and\n* audio (all songs of a playlist) via [Audio Station](https://www.synology.com/dsm/feature/audio_station)\n\n\n# Table of contents\n\n\u003c!-- Update with `doctoc --notitle README.md --maxlevel 5`. See https://github.com/thlorenz/doctoc --\u003e\n\u003c!-- START doctoc generated TOC please keep comment here to allow auto update --\u003e\n\u003c!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --\u003e\n\n- [Features](#features)\n  - [Photos](#photos)\n  - [Audio](#audio)\n- [Installation](#installation)\n  - [npm](#npm)\n  - [Prebuilt binaries](#prebuilt-binaries)\n  - [Docker](#docker)\n  - [Clone repo](#clone-repo)\n- [Usage](#usage)\n    - [General parameters](#general-parameters)\n    - [DS Audio](#ds-audio)\n    - [Synology Photos](#synology-photos)\n    - [DS Photo](#ds-photo)\n    - [Non-interactive password](#non-interactive-password)\n\n\u003c!-- END doctoc generated TOC please keep comment here to allow auto update --\u003e\n\n# Features\n\n## Photos\n\n* Set tags (i.e. [IPTC keywords](http://www.iptc.org/std/photometadata/documentation/userguide/index.htm#!Documents/generalimagecontent.htm)) for photos, grouping them into \"smart albums\" (DS photo)\n* dsdl downloads those for you. For some reasons this cannot be achieved using the Photo Station web app, nor native Android or Windows apps.\n\n## Audio\n\n* Group your songs into playlists\n* dsdl downloads those for you. You can also do this via the web UI (where the playlist is zipped) or with [DS audio](https://www.synology.com/dsm/feature/audio_station#download) but it does not seem to work reliably, and it cannot be scripted 😉\n\n# Installation\n\n## npm\n\nYou can install it as global package [from npm](https://www.npmjs.com/package/dsdl)\n\n```shell\nnpm install -g dsdl\n\ndsdl --version\n```\n\nNote that, ff running on android via [termux](https://termux.com/) and want to trigger dsdl from a termux widget,\nyou need to perform the following once after installation/upgrade:\n\n```shell\ntermux-fix-shebang $(which dsdl)\n```\n\n## Prebuilt binaries\n\nGet the binary for your specific OS from the [release page](https://github.com/schnatterer/dsdl/releases).\n\n```bash\nDSDL_VERSION=2.00\nsudo wget -O /usr/local/bin dsdl \\\n  https://github.com/schnatterer/dsdl/releases/download/${DSDL_VERSION}/dsdl-linux-x64\nsudo chmod +x /usr/local/bin/dsdl\n\ndsdl --version\n```\n\n## Docker\n\n[See quay.io](https://quay.io/repository/schnatterer/dsdl)\n\n```bash\ndocker run --rm -ti -v $(pwd):/dsdl quay.io/schnatterer/dsdl \\\n  audio --user your-photostation-user --output /dsdl http://diskstation/photo\n```\n\nMake sure uid/gid `1000` are allowed to write into current folder.\n\n## Clone repo\n\nOf course, you can also run the latest version by cloning this repo.\n\n```bash\ngit clone https://github.com/schnatterer/dsdl \u0026\u0026 cd dsdl\nyarn install\n\nnode src/cli/dsdl.js photo --version\n```\n\n# Usage\n\n* DS Audio\n```shell\ndsdl audio --user your-user --output music/ http://diskstation:5000/\n```\n* Synology Photos (DSM 7+) -\n```shell\ndsdl photos --user your-user --output music/ http://diskstation:5000/\n```\n* DS Photo (DSM \u003c 7)\n```shell\ndsdl photo --user your-diskstsation-user --output photos/ http://diskstation/photo\n```\n\nYou will be prompted for the password.\n\n### General parameters\n\n* `--folder-structure`\n  * Default: `list` - creates subdirs for each list.\n  * `flat` - writes all photos to a single folders.\n  * `server` - creates same folder structure as on server (Works only for audio).  \n    Or is there a way to get the album for a photo via the Synology Photo Station / Foto API?\n\n### DS Audio\n\n* `--playlists` - downloads specific playlists. Note that playlists containing spaces must be quoted. Multiple playlists can either be specified\n  * comma separated (e.g. `--playlists \"tag one\",numberTwo`) or\n  * by using multiple parameters (e.g `--playlists \"tag one\" --playlists numberTwo`)\n* `--m3u` - Create m3u playlist files for each downloaded playlist\n\n### Synology Photos\n\nNote that for synology photos right now a maximum of 5000 photos can be downloaded for a single tag\n\n* `--tags` - downloads specific tags. Note that tags containing spaces must be quoted. Multiple tags can either be specified\n  * comma separated (e.g. `--tags \"tag one\",numberTwo`) or\n  * by using multiple parameters (e.g `--tags \"tag one\" --tags numberTwo`)\n\n### DS Photo\n\n* `--tags` - downloads specific tags. Note that tags containing spaces must be quoted. Multiple tags can either be specified\n  * comma separated (e.g. `--tags \"tag one\",numberTwo`) or\n  * by using multiple parameters (e.g `--tags \"tag one\" --tags numberTwo`)\n\n### Non-interactive password\n\nIf running in batch/non-interactive/headless mode, you you can just pipe it to `dsdl`.\nNote that passwords showing up in the shell history or log files are a potential security risk.\n\n```bash\necho \"PW\" | dsdl photo -u ...\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschnatterer%2Fdsdl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fschnatterer%2Fdsdl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschnatterer%2Fdsdl/lists"}