Crates.io | podsync |
lib.rs | podsync |
version | 0.1.5 |
source | src |
created_at | 2023-03-03 00:10:36.623006 |
updated_at | 2024-05-29 19:41:40.991582 |
description | A server to sync podcasts with, mirroring the gpodder API. Designed for use with AntennaPod |
homepage | https://github.com/bobrippling/podsync |
repository | https://github.com/bobrippling/podsync |
max_upload_size | |
id | 799271 |
size | 144,852 |
A HTTP server for syncing podcast app state, mirroring the gpodder API. Designed for use with AntennaPod's sync service.
podsync doesn't cover the full gpodder API, just enough to get AntennaPod to work:
POST api/2/auth/{username}/login.json
POST api/2/auth/{username}/logout.json
GET api/2/devices/{username}.json
POST api/2/devices/{username}/{device}.json
GET api/2/subscriptions/{username}/{device}.json
POST api/2/subscriptions/{username}/{device}.json
GET api/2/episodes/{username}.json
POST api/2/episodes/{username}.json
podsync uses the RUST_LOG
environment variable for logging. To generate logs similar to a webserver:
export RUST_LOG=podsync=info
# or for debugging:
export RUST_LOG=podsync=trace
# for warp/endpoint output:
export RUST_LOG=podsync=info,warp=info
See the log crate for more details
podsync uses sqlx in offline mode for builds (see build.rs
for more).
To update the schema:
export DATABASE_URL=sqlite://pod.sql
cargo install sqlx-cli
cargo sqlx prepare -- --tests --features backend-sql
git commit -m 'Update sqlx snapshot' sqlx-data.json