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, version

optional arguments:
  -h, --help            show this help message and exit
  -H HOST, --host HOST  set mpd host (default localhost)
  -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 information 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.

Version

Print version and exit.

Podcast aggregator

Podcasthandler can be used as stand alone audio player manually inserting the correct audio file url. However, it could be simpler to use a podcast aggregator!

You can set it as the default audio player using the ncurses gui. Please note that ncurses is a terminal interface, so if you are using a graphical software, you should always start the program in a terminal window, with a command like that:

$ xterm -e podcasthandler play -g -H localhost -u

Newsboat

If your are using Newsboat, you can add 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.6.2.tar.gz (20.4 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.6.2-py3-none-any.whl (22.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for podcasthandler-0.6.2.tar.gz
Algorithm Hash digest
SHA256 7e526f86a33dee3706cda42f57293ebcd3359c265a14cfa346528dd634ba9eb9
MD5 70b6e6e4947b4ba78c12e1745f92aebf
BLAKE2b-256 3b5bd5cd273013ad5dec8f2d8633d399a8bc18b60df83aefb3db461c7206630f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: podcasthandler-0.6.2-py3-none-any.whl
  • Upload date:
  • Size: 22.0 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/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for podcasthandler-0.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8e31fe093e8380b5c1b9e5713711b438e3667e5e1975be6f45544b12a44deaba
MD5 2225afbfde24525ea6116754da3f5f04
BLAKE2b-256 1e499ae53bfc146220978604cbdcbcb0cb503fbb7e17680818f772039ec4bf58

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