Mopidy extension to access the Austrian ORF radio stations
Project description
mopidy-orfradio
Mopidy extension to access the Austrian ORF radio stations. It provides access to the live streams and the 7 day archive.
Note that timestamps from the API are somewhat inaccurate (especially on non-music segments). This can cause a slight glitch between tracks, or in very few extreme cases the beginning getting cut off. The implementation avoids cutting off the end of tracks, with the trade off of sometimes appending a few seconds from the next to the previous.
Installation
Install by running:
python3 -m pip install mopidy-orfradio
See https://mopidy.com/ext/orfradio/ for alternative installation methods.
Configuration
Before starting Mopidy, you must add configuration for mopidy-orfradio to your Mopidy configuration file:
[orfradio]
# Stations to display
#
# Default:
stations =
oe1
oe3
fm4
campus
bgl
ktn
noe
ooe
sbg
stm
tir
vbg
slo
# Remove from list to automatically skip tracks of the type.
#
# Available types: [M]usik, [B]eitrag, [BJ]ournal, [N]achrichten,
# [J]ingle, [W]erbung, [S]onstiges
#
# Default:
archive_types =
M
B
BJ
N
# Live stream is available as 128 or 192 kbit/s. The archive always plays
# at 192 kbit/s.
#
# Default:
livestream_bitrate = 192
Project resources
Development
Set up development environment
Clone the repo using, e.g. using gh:
gh repo clone mopidy/mopidy-orfradio
Enter the directory, and install dependencies using uv:
cd mopidy-orfradio/
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 lints with ruff, run:
ruff check .
To check for type errors, use pyright:
pyright .
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
- Original author: Tobias Girstmair, David Tischler
- Current maintainer: Tobias Girstmair
- Contributors
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mopidy_orfradio-2.3.0.tar.gz.
File metadata
- Download URL: mopidy_orfradio-2.3.0.tar.gz
- Upload date:
- Size: 39.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a954e18e479bbeb845914a01bb77aec105a68da12d5f89bb6be1c5d9b629de2
|
|
| MD5 |
a622b65cbd5f9f225f023a03ab9a7ccc
|
|
| BLAKE2b-256 |
947b81eaf9ee36f1d8b4160ff51fc84e4910b036a84900043e32b0fa1359c3a8
|
Provenance
The following attestation bundles were made for mopidy_orfradio-2.3.0.tar.gz:
Publisher:
release.yml on mopidy/mopidy-orfradio
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mopidy_orfradio-2.3.0.tar.gz -
Subject digest:
0a954e18e479bbeb845914a01bb77aec105a68da12d5f89bb6be1c5d9b629de2 - Sigstore transparency entry: 737113753
- Sigstore integration time:
-
Permalink:
mopidy/mopidy-orfradio@966fc8018f10789c5dfb36bf7ba2fee2e329f924 -
Branch / Tag:
refs/tags/v2.3.0 - Owner: https://github.com/mopidy
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@966fc8018f10789c5dfb36bf7ba2fee2e329f924 -
Trigger Event:
release
-
Statement type:
File details
Details for the file mopidy_orfradio-2.3.0-py3-none-any.whl.
File metadata
- Download URL: mopidy_orfradio-2.3.0-py3-none-any.whl
- Upload date:
- Size: 14.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c34ea45acbaf3ca5a733e988deb503d45e04fafbfab433122fc5d3464b66de9e
|
|
| MD5 |
0865e149ba1139132fbdb853046e79b0
|
|
| BLAKE2b-256 |
0b85632b9b124af68c072ce4b7c350a6adac59d870f5177d9a3f11a0afd89776
|
Provenance
The following attestation bundles were made for mopidy_orfradio-2.3.0-py3-none-any.whl:
Publisher:
release.yml on mopidy/mopidy-orfradio
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mopidy_orfradio-2.3.0-py3-none-any.whl -
Subject digest:
c34ea45acbaf3ca5a733e988deb503d45e04fafbfab433122fc5d3464b66de9e - Sigstore transparency entry: 737113771
- Sigstore integration time:
-
Permalink:
mopidy/mopidy-orfradio@966fc8018f10789c5dfb36bf7ba2fee2e329f924 -
Branch / Tag:
refs/tags/v2.3.0 - Owner: https://github.com/mopidy
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@966fc8018f10789c5dfb36bf7ba2fee2e329f924 -
Trigger Event:
release
-
Statement type: