User avatar
startrek.steve
Posts: 383
Joined: Thu Aug 30, 2012 7:19 pm

What can I download podcasts with on the Pi?

Sat Sep 08, 2012 6:52 pm

I use Icepodder and Hpodder on my ubuntu machine. Hpodder would be superb on the Pi (Its a command line one) but its not in the repos!
Any recommendations?
Steve
Pi 2 running LibreElec Krypton, Pi 2 running Wheezy Desktop, Pi 1 headless Wheezy, downloading Radio, Pi 1 running Picore headless Media Server, Pi Zero to be an Old Time Radio Project. Pi 3 testing. Pi Zero W downloading Radio shows headless.

User avatar
bonelifer
Posts: 128
Joined: Thu Jan 12, 2012 4:01 am
Location: http://www.phpbb.com/community/memberli ... e&u=147848
Contact: Website

Re: What can I download podcasts with on the Pi?

Sat Sep 08, 2012 6:57 pm

Is gpodder in the repo? It has a cli interface as well as a desktop interface. I have it on my mythbuntu machine and set it up to update and then download via cron.

User avatar
nommo
Posts: 40
Joined: Sun Jun 10, 2012 10:17 am
Location: UK

Re: What can I download podcasts with on the Pi?

Tue Jan 29, 2013 12:07 pm

Sorry for the necroposting... I too want to download podcasts via CLI on my RasPi.

I'm running Raspbian and after reading this used:

Code: Select all

sudo apt-get-install gpodder 
The command line client is called using:

Code: Select all

gpo
When I try to download using:

Code: Select all

gpo download http://feeds.feedburner.com/mobydickbigread
I get:

Code: Select all

 /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)
0 episodes downloaded.
Does anyone know what that means? I saw a bug report on the gpodder site from a couple of years ago that says this was fixed in version 2.19 (the one I installed from the repository is version 2.20).

Has anyone else seen this issue or know why it might be occuring? It seems gpo is trying to do something in a GUI but I'm not so sure...
I ate all the Pi

User avatar
nommo
Posts: 40
Joined: Sun Jun 10, 2012 10:17 am
Location: UK

Re: What can I download podcasts with on the Pi?

Tue Jan 29, 2013 4:51 pm

FYI Gave up and grabbed PodGrab.py instead (from Github as the other guy's site is down): https://github.com/nightowl77/PodGrab
I ate all the Pi

User avatar
startrek.steve
Posts: 383
Joined: Thu Aug 30, 2012 7:19 pm

Re: What can I download podcasts with on the Pi?

Fri Feb 01, 2013 9:22 am

Im now running Mashpodder, a tweaked version of Bashpodder, it runs like a dream, better than any other command-line podcast client, give it a try!

Steve
Pi 2 running LibreElec Krypton, Pi 2 running Wheezy Desktop, Pi 1 headless Wheezy, downloading Radio, Pi 1 running Picore headless Media Server, Pi Zero to be an Old Time Radio Project. Pi 3 testing. Pi Zero W downloading Radio shows headless.

ticrandall
Posts: 19
Joined: Sat Oct 19, 2013 2:39 pm

Re: What can I download podcasts with on the Pi?

Thu Oct 24, 2013 4:32 pm

Can this run with another phyton script? I'm trying to use it with this: http://stevenhickson.blogspot.com/2013/ ... ooper.html.

So I can have updated weather inline with some promotional videos.. But I can't get mashpodder to start.. I get command not found, I know the file is there.

User avatar
DeeJay
Posts: 2027
Joined: Tue Jan 01, 2013 9:33 pm
Location: East Midlands, UK

Re: What can I download podcasts with on the Pi?

Thu Oct 24, 2013 5:29 pm

ticrandall wrote:Can this run with another phyton script? I'm trying to use it with this: http://stevenhickson.blogspot.com/2013/ ... ooper.html.

So I can have updated weather inline with some promotional videos.. But I can't get mashpodder to start.. I get command not found, I know the file is there.
From a trivial glance I don't see why they should not co-exist.

Would you care to post the result of doing -

Code: Select all

ls -al
while in the directory into which you have installed mashpodder.sh ?

(Firstly to prove that the file exists, and secondly to check that it is executable.)
How To Ask Questions The Smart Way: http://www.catb.org/~esr/faqs/smart-questions.html
How to Report Bugs Effectively: http://www.chiark.greenend.org.uk/~sgtatham/bugs.html

ticrandall
Posts: 19
Joined: Sat Oct 19, 2013 2:39 pm

Re: What can I download podcasts with on the Pi?

Thu Oct 24, 2013 7:57 pm

I most certainly will. This could be something trivial, as.. I have almost no idea what I'm doing.

[email protected] ~/podcasts $ ls -al
total 36
drwxr-xr-x 2 root root 4096 Oct 17 02:52 .
drwxr-xr-x 17 pi pi 4096 Oct 24 16:17 ..
-rw-r--r-- 1 root root 17972 Oct 24 14:39 mashpodder.sh
-rw-r--r-- 1 root root 1156 Oct 24 14:15 mp.conf
-rw-r--r-- 1 root root 316 Jan 29 2009 parse_enclosure.xsl

And my trying:

[email protected] ~/podcasts $ mashpodder.sh
-bash: mashpodder.sh: command not found
[email protected] ~/podcasts $ sudo mashpodder.sh
sudo: mashpodder.sh: command not found
[email protected] ~/podcasts $

as per one set of instructions I was to copy mashpodder.sh into usr/bin/maspodder,

[email protected] ~ $ mashpoder
-bash: mashpoder: command not found
[email protected] ~ $ sudo mashpodder
sudo: mashpodder: command not found

[email protected] /usr/bin $ mashpodder
-bash: /usr/bin/mashpodder: Permission denied
[email protected] /usr/bin $ sudo mashpodder
sudo: mashpodder: command not found
[email protected] /usr/bin $

User avatar
DeeJay
Posts: 2027
Joined: Tue Jan 01, 2013 9:33 pm
Location: East Midlands, UK

Re: What can I download podcasts with on the Pi?

Thu Oct 24, 2013 8:24 pm

ticrandall wrote:I most certainly will. This could be something trivial, as.. I have almost no idea what I'm doing.

[email protected] ~/podcasts $ ls -al
total 36
drwxr-xr-x 2 root root 4096 Oct 17 02:52 .
drwxr-xr-x 17 pi pi 4096 Oct 24 16:17 ..
-rw-r--r-- 1 root root 17972 Oct 24 14:39 mashpodder.sh
-rw-r--r-- 1 root root 1156 Oct 24 14:15 mp.conf
-rw-r--r-- 1 root root 316 Jan 29 2009 parse_enclosure.xsl
From the same location in the system - [email protected] ~/podcasts $ - try this -

Code: Select all

chmod +x mashpodder.sh
./mashpodder.sh
And my trying:

[email protected] ~/podcasts $ mashpodder.sh
-bash: mashpodder.sh: command not found
[email protected] ~/podcasts $ sudo mashpodder.sh
sudo: mashpodder.sh: command not found
[email protected] ~/podcasts $

as per one set of instructions I was to copy mashpodder.sh into usr/bin/maspodder,

[email protected] ~ $ mashpoder
-bash: mashpoder: command not found
[email protected] ~ $ sudo mashpodder
sudo: mashpodder: command not found

[email protected] /usr/bin $ mashpodder
-bash: /usr/bin/mashpodder: Permission denied
[email protected] /usr/bin $ sudo mashpodder
sudo: mashpodder: command not found
[email protected] /usr/bin $
I'm not sure if the typing errors - mashpodder; mashpoder; maspodder - were part of the advice or your transcription error, but it's all very confused. It doesn't matter what you call your executable, but you have to be consistent in spelling and case.
How To Ask Questions The Smart Way: http://www.catb.org/~esr/faqs/smart-questions.html
How to Report Bugs Effectively: http://www.chiark.greenend.org.uk/~sgtatham/bugs.html

ticrandall
Posts: 19
Joined: Sat Oct 19, 2013 2:39 pm

Re: What can I download podcasts with on the Pi?

Thu Oct 24, 2013 8:55 pm

Well, those spelling errors were not the issue, although they were what I typed when retrying everything.. I had looked at spelling before and it was correct. The chmod seems to have done the trick.. now on to further errors!,

Thank you very much! That was extremely helpful.

ticrandall
Posts: 19
Joined: Sat Oct 19, 2013 2:39 pm

Re: What can I download podcasts with on the Pi?

Thu Oct 24, 2013 9:13 pm

I changed podcast dir to mashpodder to follow along with directions I am attempting to follow.. and I get this? Same thing, lacking permissions? I know..im getting greedy now. Ive been trying to get this project completed for over a week.. Running out of time.

[email protected] ~/mashpodder $ sudo ./mashpodder.sh
$BASEDIR does not exist. Please re-check the settings at the top of
mashpodder.sh and try again.
[email protected] ~/mashpodder $

The top of mashpodder.sh file:


# BASEDIR: Base location of the script and related files. If you have an
# escaped space in the directory name be sure to keep the double quotes.
# Default is "$HOME/mashpodder". This is commented out on purpose to start
# with in order to force the user to review this USER CONFIGURATION section
# and set the various options. Uncomment and set to desired path. Mashpodder
# will not create this directory for you.
BASEDIR="$HOME/mashpodder"



[email protected] ~/mashpodder $ ls -al
total 36
drwxr-xr-x 2 root root 4096 Oct 17 02:52 .
drwxr-xr-x 17 pi pi 4096 Oct 24 21:04 ..
-rwxr-xr-x 1 root root 17974 Oct 24 21:09 mashpodder.sh
-rw-r--r-- 1 root root 1156 Oct 24 14:15 mp.conf
-rw-r--r-- 1 root root 316 Jan 29 2009 parse_enclosure.xsl

User avatar
DeeJay
Posts: 2027
Joined: Tue Jan 01, 2013 9:33 pm
Location: East Midlands, UK

Re: What can I download podcasts with on the Pi?

Fri Oct 25, 2013 8:03 am

ticrandall wrote:

Code: Select all

[email protected] ~/mashpodder $ sudo ./mashpodder.sh
Why?

I thought you said my suggestion had worked?

What happens if you use -

Code: Select all

./mashpodder.sh
(from the location where it is installed)



Generic advice: don't just include 'sudo' in your commands for the sake of it - in the right place it is invaluable and makes otherwise impossible things possible, but in the wrong place it can be dangerous and can stop simple things happening correctly. See this blog post for a discussion of the issues.
How To Ask Questions The Smart Way: http://www.catb.org/~esr/faqs/smart-questions.html
How to Report Bugs Effectively: http://www.chiark.greenend.org.uk/~sgtatham/bugs.html

ticrandall
Posts: 19
Joined: Sat Oct 19, 2013 2:39 pm

Re: What can I download podcasts with on the Pi?

Fri Oct 25, 2013 11:09 am

Sorry, I forget people can't decode my lack of information. What you told me to do worked perfectly. The next post was another problem. Thank you again for the help, and for the sudo information.. I am still learning linux as I go while trying to get things to work on the Pi.

ticrandall
Posts: 19
Joined: Sat Oct 19, 2013 2:39 pm

Re: What can I download podcasts with on the Pi?

Mon Oct 28, 2013 2:58 pm

Whaaatt am I don't wrong here? Mashpodder instructions:

2: The first section to change is where the mashpodder script is itself, in my case, this is /home/steve/mashpodder. go to line 16 which should read BASEDIR="$HOME/mashpodder" if your location of the mashpodder directory is the same as mine ie /home/dave/mashpodder (If your login name is dave of course) then no change is required. $HOME is in my case /home/steve, you dont need to put $HOME/steve/mashpodder as it takes the username from $HOME.

My mashpodder.sh file:

#!/bin/bash
#
# $Id: mashpodder.sh 49 2013-01-09 14:39:56Z [email protected] $
#
# Mashpodder by Chess Griffin <[email protected]>
# Copyright 2009-2013
# Licensed under the GPLv3
#
# Originally based on BashPodder by Linc Fessenden 12/1/2004

### START USER CONFIGURATION
# Default values can be set here. Command-line flags can override some of
# these but not all of them.

# BASEDIR: Base location of the script and related files. If you have an
# escaped space in the directory name be sure to keep the double quotes.
# Default is "$HOME/mashpodder". This is commented out on purpose to start
# with in order to force the user to review this USER CONFIGURATION section
# and set the various options. Uncomment and set to desired path. Mashpodder
# will not create this directory for you.
BASEDIR"=$HOME/pi/mashpodder" (I've tried $HOME/mashpodder, no dice either, same result)

# PODCASTDIR: Location of podcast directories listed in mp.conf. If you have
# an escaped space in the directory name be sure to keep the double quotes.
# Default is "$BASEDIR/podcasts". Thanks to startrek.steve for reporting the
# issues that led to these directory changes. Mashpodder will create this
# directory if it does not exist.
PODCASTDIR="$BASEDIR/podcasts"

results of sudo ./mashpodder (without sudo permission denied) : [email protected] ~/mashpodder $ sudo ./mashpodder.sh
./mashpodder.sh: line 21: BASEDIR=/root/pi/mashpodder: No such file or directory
$BASEDIR has not been set. Please review the USER CONFIGURATION section at
the top of mashpodder.sh and set $BASEDIR and any other applicable options.

or

[email protected] ~/mashpodder $ ./mashpodder
-bash: ./mashpodder: No such file or directory

its there, [email protected] ~/mashpodder $ ls -al
total 36
drwxr-xr-x 2 root root 4096 Oct 17 02:52 .
drwxr-xr-x 17 pi pi 4096 Oct 28 14:31 ..
-rwxr-xr-x 1 root root 17977 Oct 28 14:49 mashpodder.sh
-rw-r--r-- 1 root root 1156 Oct 24 14:15 mp.conf
-rw-r--r-- 1 root root 316 Jan 29 2009 parse_enclosure.xsl


Please, and thank you in advanced.

Edit: I gave pi ownership of files, no change.

User avatar
DeeJay
Posts: 2027
Joined: Tue Jan 01, 2013 9:33 pm
Location: East Midlands, UK

Re: What can I download podcasts with on the Pi?

Mon Oct 28, 2013 3:15 pm

To get it to run at all, go back to my advice last Thursday which you said worked -

Code: Select all

./mashpodder.sh
Then get the configuration right. Edit mashpodder.sh and change the BASEDIR definition to match your installation. As stated at [2] in the information quoted in your most recent question, it probably needs to be BASEDIR="$HOME/mashpodder"
How To Ask Questions The Smart Way: http://www.catb.org/~esr/faqs/smart-questions.html
How to Report Bugs Effectively: http://www.chiark.greenend.org.uk/~sgtatham/bugs.html

ticrandall
Posts: 19
Joined: Sat Oct 19, 2013 2:39 pm

Re: What can I download podcasts with on the Pi?

Mon Oct 28, 2013 3:23 pm

DeeJay wrote:To get it to run at all, go back to my advice last Thursday which you said worked -

Code: Select all

./mashpodder.sh
Then get the configuration right. Edit mashpodder.sh and change the BASEDIR definition to match your installation. As stated at [2] in the information quoted in your most recent question, it probably needs to be BASEDIR="$HOME/mashpodder"

I might be confused.. when I type ./mashpodder.sh it comes back telling me:

$BASEDIR has not been set. Please review the USER CONFIGURATION section at
the top of mashpodder.sh and set $BASEDIR and any other applicable options.

In mashpodder.sh "user configuration" file the line reads: BASEDIR"=$HOME/mashpodder"

I apologize if I am making this difficult, to me it seems to be set up correctly, it just doesn't like my BASEDIR, saying that it hasn't been set, but in the file it is set!

So, I believe I followed the 'install' directions, I simply copied the files to the required destination.. Was that correct, or is there more to 'installing'?

And Thank you for your very quick reply.

User avatar
DeeJay
Posts: 2027
Joined: Tue Jan 01, 2013 9:33 pm
Location: East Midlands, UK

Re: What can I download podcasts with on the Pi?

Mon Oct 28, 2013 3:25 pm

In mashpodder.sh "user configuration" file the line reads: BASEDIR"=$HOME/mashpodder"
That's not right...

Compare the punctuation of the PODCASTDIR definition just below in the same file...
How To Ask Questions The Smart Way: http://www.catb.org/~esr/faqs/smart-questions.html
How to Report Bugs Effectively: http://www.chiark.greenend.org.uk/~sgtatham/bugs.html

ticrandall
Posts: 19
Joined: Sat Oct 19, 2013 2:39 pm

Re: What can I download podcasts with on the Pi?

Mon Oct 28, 2013 4:57 pm

DeeJay wrote:
In mashpodder.sh "user configuration" file the line reads: BASEDIR"=$HOME/mashpodder"
That's not right...

Compare the punctuation of the PODCASTDIR definition just below in the same file...

Thank you for sticking with me! I looked and looked and looked some more.. You are most generous oh Linux wizard.

User avatar
DeeJay
Posts: 2027
Joined: Tue Jan 01, 2013 9:33 pm
Location: East Midlands, UK

Re: What can I download podcasts with on the Pi?

Mon Oct 28, 2013 5:03 pm

Thanks for the appreciation, but more importantly are you now making progress?
How To Ask Questions The Smart Way: http://www.catb.org/~esr/faqs/smart-questions.html
How to Report Bugs Effectively: http://www.chiark.greenend.org.uk/~sgtatham/bugs.html

ticrandall
Posts: 19
Joined: Sat Oct 19, 2013 2:39 pm

Re: What can I download podcasts with on the Pi?

Mon Oct 28, 2013 5:27 pm

I am! Managed to get a podcast downloaded.. Now I am looking into having it renamed when it is moved into the proper folder.

The Video Looper script I am using only updates the play list after stopped and restarted. My thoughts, based on my current abilities with python/linux, was to somehow figure out how to get mashpodder to rename every podcast download to the same file name. Ie, instead of cbsnews102713, and the following day cbsnews102813, after downloading mashpodder would move the file into the proper folder with one common name, ie cbsnews. That way the file changes and 'updates' but the name does not, and I do not have to stop/start the script. The other thought I had was of course to put something into the phython script to have it stop/start automatically after so many run through of the playlist, however I thought there would be a noticeable delay shown on the tv.

Return to “General discussion”