Skip to content

Add support for pa-dlna #29

Description

@claui

Background

pulseaudio-dlna seems unsupported and is no longer available on recent Debian suites.
On the AUR, it has been moved to pulseaudio-dlna-cygn, and it’s unclear how long that package is going to be supported.

I need to add support for pa-dlna to funiculi so it remains functional in the long run.

Overview

See following patch snippet:

diff --git a/README.md b/README.md
index 571e35b..cdfa196 100644
--- a/README.md
+++ b/README.md
@@ -14,6 +14,7 @@ You need the following software installed on your system:
 - [`ncat`](https://github.com/nmap/nmap/tree/master/ncat#readme)
 
 - [`pulseaudio-dlna`](https://github.com/Cygn/pulseaudio-dlna)
+  or [`pa-dlna`](https://gitlab.com/xdegaye/pa-dlna)
 
 ## Installation
 
diff --git a/debian/control b/debian/control
index 6f32684..f069bb5 100644
--- a/debian/control
+++ b/debian/control
@@ -18,7 +18,12 @@ Rules-Requires-Root: no
 
 Package: funiculi
 Architecture: all
-Depends: ${python3:Depends}, ${misc:Depends}, ncat, pulseaudio-dlna, python3-colorama, python3-fire
+Depends: ${python3:Depends},
+         ${misc:Depends},
+         ncat,
+         pa-dlna | pulseaudio-dlna,
+         python3-colorama,
+         python3-fire
 Description: Control Denon amplifiers from the command line (Python 3)
  CLI tool to interact with Denon AVR amplifiers over the local network.
  Turn the unit on and off, change volume, and stream music to it over

Draft

  • Inspect the URN that pa-dlna outputs and find that URN in the UPNP descriptor XML file of the device
  • Deduce a suitable Xpath to extract the URN from the UPNP descriptor automatically
  • Using the upstream documentation, try to figure out whether a custom, temporary configuration file might coerce pa-dlna into connecting with a given URN
  • If so: write code for downloading the descriptor file, use the xmltodict package to parse the descriptor file for the correct URN, and use tempfile.NamedTemporaryFile to write a temporary configuration file for pa-dlna so it connects to the correct device
  • Debian control file: add dependency to pa-dlna
  • Update documentation

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions