Skip to main content

Easily play podcasts

Project description

Podcast Handler

A simple tool to play and keep track of your podcasts.

It consist in a simple command-line script and a simple ncurses gui to listen to your podcasts in streaming, without downloading them.

It saves the current elapsed time, so you can stop listening and than continue later restarting from the correct position.

You can manually insert the url of the audio file in the command line, or set it as the default player in your favourite podcast aggregator (I use newsboat, more info above)

Requirements

  1. Python >= 3.0
  2. Music Player Daemon (link)

Install

To install the package use the python package installer pip:

	pip install podcasthandler

Please note that the music server mpd should be running in your computer, in order to use the program.

You can also download the source code from GitLab:

	git clone https://gitlab.com/fnt400/podcasthandler.git

Usage

Here's the help file:

usage: podcasthandler [-h] [-H HOST] [-u URL] [-p POSITION] [-g] command

positional arguments:
  command               play, stop, status, restart, gui

optional arguments:
  -h, --help            show this help message and exit
  -H HOST, --host HOST  set mpd host (default filod)
  -u URL, --url URL     set podcast episode url
  -p POSITION, --position POSITION
                        set podcast position (mm:ss)
  -g, --gui             start with curses gui

And here's the available commands:

Play

Play a specified url. Without the URL argument, it continues the last played url.

With the POSITION argument, it starts playing from a specific position (minutes:seconds)

You can set the mpd host (if you have other mpd instances in your local network), the next time, if not specified, it will use the same host.

Examples:

	$ podcasthandler play

With this command it will continue playing the last file you listened to, from the correct position in the last mpd server you used (probably your own computer, so "localhost").

	$ podcasthandler play -u "https://www.buzzsprout.com/1263722/5071877-unfettered-freedom-ep-3-facebook-zoom-appimage-kdenlive-new-linux-users.mp3?blob_id=20355212" -H 192.168.1.50 -p 5:24

With this command it will start playing that audio file address in the computer at 192.168.1.50 from 5 minutes and 24 seconds.

Stop

Stop playing.

Status

It displays generic informations about what you are listening to or what you listened the last time.

Restart

Restart from the beginning of the file.

Gui

Start the ncurses gui (only when a file is playing, otherwise you can use command play with the "-g" option).

Newsboat config

You can set podcasthandler to be used in Newsboat adding this line to the config file (usually in ~/.config/newsboat/config).

	browser "podcasthandler play -g -H localhost -u %u"

You can select the playable file within the article, pushing the key "1".

Known Bugs

  • gui crashes on window resize

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

podcasthandler-0.5.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

podcasthandler-0.5.0-py3-none-any.whl (21.1 kB view details)

Uploaded Python 3

File details

Details for the file podcasthandler-0.5.0.tar.gz.

File metadata

  • Download URL: podcasthandler-0.5.0.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for podcasthandler-0.5.0.tar.gz
Algorithm Hash digest
SHA256 7e47f7b25792669b8fe0491b506c1dea93a84b551c342260c83997a9837ad421
MD5 79b85cccd7088a1eb1b31abb986e7eef
BLAKE2b-256 7ef81f165bdc28538807ce55da2624da5693e36074525d51699ea7bc152d089e

See more details on using hashes here.

File details

Details for the file podcasthandler-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: podcasthandler-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 21.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for podcasthandler-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 703b681c714dfa4ce4b757f2c5010ff20043c180926bc106aa03ba017cc0b493
MD5 c4f11b5e8285911b5ca56b2e36eb08ef
BLAKE2b-256 975d045ede73f465adabb22e25f59097e4a8f4bb5a87a31f94c0ec5735d7077f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page