1
0
Fork
You've already forked exist.io-pocketcasts
0
Track your daily podcast listening minutes in PocketCasts (app, web, and desktop) as an attribute in Exist.io.
  • Python 100%
Daniel Aleksandersen e467143279 Fix import error
2025年02月23日 22:12:28 +01:00
exist_client @a2121bc324 Add exist.io-client submodule 2025年02月23日 17:55:25 +01:00
systemd Fix configuration option typo 2025年02月23日 18:36:46 +01:00
.gitignore Ignore __pycache__ 2025年02月23日 21:59:24 +01:00
.gitmodules Add exist.io-client submodule 2025年02月23日 17:55:25 +01:00
.mailmap Mailmap 2025年02月23日 18:07:53 +01:00
exist-pocketcasts.py Fix import error 2025年02月23日 22:12:28 +01:00
LICENSE Initial commit 2025年02月23日 16:51:08 +00:00
README.md Documentation 2025年02月23日 18:37:32 +01:00

PocketCasts service integration for Exist.io

Track your daily podcast listening minutes in PocketCasts as an attribute in Exist.io.

Setup

Install a copy of the repository:

git clone --recurse-submodules https://codeberg.org/da/exist.io-pocketcasts.git

How it works

The program submits data to Exist and then exits. It needs to be run at least once per day (a few minutes before midnight in your local time zone). On every run, it checks for new episodes in your PocketCasts archive, and submits your listening time to Exist.

It is recommended that you use the provided systemd unit files to manage the program’s lifecycle. It will run the program every few hours during the day, plus just before midnight.

Configuration

Provide configuration options as environmental variables. All configuration options are required.

EXIST_CLIENT_ID=
EXIST_CLIENT_SECRET=
EXIST_OAUTH2_RETURN="http://localhost:9009/"
POCKETCASTS_USERMAIL=
POCKETCASTS_PASSWORD=

You can obtain the two first values and supply the third by registering your client as an Exist app.

Optional configuration options:

PLAYBACK_SPEED=1.0
ADS_MINUTES_SKIPPED_PER_HOUR=

If you skip ahead, you should subtract that from your listening time. Skipped playback time is recorded as listened time by PocketCasts. The value will vary from podcast to podcast and day to day. Supply an average value (six to ten minutes per hour is a typical range).

systemd

The systemd directory contains example systemd service unit files for running the program periodically as a systemd service. You may need to adjust the paths to the ExecStart program and the EnvironmentFile file where you store your config.