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.1.tar.gz (20.2 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.1-py3-none-any.whl (21.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: podcasthandler-0.6.1.tar.gz
  • Upload date:
  • Size: 20.2 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.6.1.tar.gz
Algorithm Hash digest
SHA256 7be1edce6b50d5961449533c37ae7922d01dff1fb1220a60c20bde25202f6743
MD5 4ad99df50a2fa5ee8e5c503aaa504b37
BLAKE2b-256 c1b460074bb70081d9bd9a02ccbc6492ac3f496691ae0f49cd49e91377803880

See more details on using hashes here.

File details

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

File metadata

  • Download URL: podcasthandler-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 21.9 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.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 131b3f0dac05c6856c783cec9097ae0a250022252b059ecf685a7013ed25e772
MD5 b8ef75dfbb66d0788e0d47568a22dafd
BLAKE2b-256 89c39de25738c977af6cfb3a085d81025e79f1eb3c28cdc554512b1d826289b1

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