Skip to main content

mopidy-dial

Latest PyPI version CI build status Test coverage

Mopidy extension that exposes a DIAL/SSDP endpoint for YouTube and YouTube Music on the local network. It allows YouTube clients on the same LAN to discover Mopidy as a cast target and keep playback state in sync with the app.

Installation

Install from PyPI:

python3 -m pip install mopidy-dial

For a Mopidy installation that uses a config directory, add the extension under the Mopidy config and restart the service.

Configuration

Add the extension to your Mopidy configuration:

[dial]
enabled = true
friendly_name = Mopidy

The available option is:

  • enabled: enables the extension
  • friendly_name: name advertised to YouTube apps on the local network; defaults to Mopidy

If you use a mopidy.conf file, the section above is all you need for the extension itself.

What this extension does

This project implements a small local-network bridge between Mopidy and the YouTube Lounge/DIAL protocol used by YouTube apps. In practice, it does the following:

  • advertises a DIAL device over SSDP on the LAN
  • creates and manages the YouTube Lounge session used by the app
  • forwards playback state changes from Mopidy back to the connected client
  • supports YouTube Music as a second session with the matching theme

This is intended for use alongside mopidy-youtube or similar YouTube-backed playback sources.

Usage

  1. Install the extension and ensure Mopidy is running on the same LAN as your phone or TV.
  2. Add the configuration shown above to your Mopidy config.
  3. Start Mopidy.
  4. Open YouTube or YouTube Music and look for the advertised Mopidy device.
  5. Connect from the app to begin casting or controlling playback.

Project resources

Development

Set up development environment

Clone the repo using, for example, GitHub CLI:

gh repo clone natumbri/mopidy-dial

Enter the directory, and install dependencies using uv:

cd mopidy-dial/
uv sync

Running tests

To run all tests and linters in isolated environments, use tox:

tox

To only run tests, use pytest:

pytest

To format the code, use ruff:

ruff format .

To check for lint issues with ruff, run:

ruff check .

To check for type errors, use pyright:

pyright .

Setup before first release

Before the first release, you must enable trusted publishing on PyPI so that the release.yml GitHub Action can create the PyPI project and publish releases to PyPI.

When following the instructions linked above, use the following values in the form at PyPI:

  • Publisher: GitHub
  • PyPI project name: mopidy-dial
  • Owner: natumbri
  • Repository name: mopidy-dial
  • Workflow name: release.yml
  • Environment name: pypi (must match environment name in release.yml)

Making a release

To make a release to PyPI, go to the project's GitHub releases page and click the "Draft a new release" button.

In the "choose a tag" dropdown, select the tag you want to release or create a new tag, e.g. v0.1.0. Add a title, e.g. v0.1.0, and a description of the changes.

Decide if the release is a pre-release (alpha, beta, or release candidate) or should be marked as the latest release, and click "Publish release".

Once the release is created, the release.yml GitHub Action will automatically build and publish the release to PyPI.

Credits

Metadata

Release files for mopidy-dial 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mopidy-dial 0.0.2
File Size Uploaded Provenance Actions
mopidy_dial-0.0.2.tar.gz 35.9 kB With provenance Details for mopidy_dial-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mopidy-dial 0.0.2
File Interpreter ABI Platform Actions
mopidy_dial-0.0.2-py3-none-any.whl Python 3 none any Details for mopidy_dial-0.0.2-py3-none-any.whl

Total release size: 68.4 kB

Release files / mopidy_dial-0.0.2.tar.gz

Download URL mopidy_dial-0.0.2.tar.gz
Size 35.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e8e9ebfad99fa3923c7534c5e656346aea1bc8e1936d4402b9115a154d036431
BLAKE2b-256 checksum
How to use checksums
932ffc7cd5680f3511c38cd201baa90a51551a8e4d67427ddc7f9aec92751ab8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

Release files / mopidy_dial-0.0.2-py3-none-any.whl

Download URL mopidy_dial-0.0.2-py3-none-any.whl
Size 32.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
23611039c0b028247a5c25a3f5c187a26aefd5465a79da16a570722edcb3267b
BLAKE2b-256 checksum
How to use checksums
1f78ec4b856c658066388f34a6990f283691f3e7960357ac1493be9406f2a8dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

Security for mopidy-dial 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mopidy_dial-0.0.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page