Page 1 of 3 123 LastLast
Results 1 to 10 of 26

Thread: HOWTO: get Podcasts without Ipodder

  1. #1
    Join Date
    Feb 2005
    Location
    EU
    Beans
    549
    Distro
    Ubuntu 12.04 Precise Pangolin

    HOWTO: get Podcasts without Ipodder

    Podcasts are a nice way to get periodical mp3 downloads via RSS. ( Check out Lugradio , great show! )
    I had some problems setting up Ipodder (and it seems that i'm not alone) but here is an easy & working alternative Bashpodder . The program consists of 3 scripts, one conf file and has even a gui

    Requires:
    wget (comes with every standard install)
    bash (comes with every standard install)
    sed (comes with every standard install)
    xmms (or every other mp3 player)
    xdialog


    open terminal & type

    Code:
    sudo apt-get install xdialog
    now type:

    Code:
    mkdir bashpodder
    cd bashpodder
    dowload bashpodder files:

    Code:
    wget http://linc.homeunix.org:8080/scripts/bashpodder/user_contributed/brian_hefferan/bashpodder.shell
    wget http://linc.homeunix.org:8080/scripts/bashpodder/bp.conf
    wget http://linc.homeunix.org:8080/scripts/bashpodder/gui/bpgui.sh
    wget http://linc.homeunix.org:8080/scripts/bashpodder/gui/convert.sh
    now make the scripts executeable
    Code:
    chmod -R 744 bashpodder.shell
    chmod -R 744 bpgui.sh
    chmod -R 744 convert.sh
    after that, open the configuration file
    Code:
    gedit bp.conf
    just copy in here the links to the rss podcast feeds, or delete the example feeds you are not interrested in. Then close gedit.

    run the script
    Code:
    ./bpgui.sh
    Usage:
    First thing to do is mark "Re-Import Podcast List", click ok and wait a bit, then "Launch BashPodder dowload client" and the script will use wget to download the mp3s, when it's done you can launch the podcasts with xmms with the menu entry "View/Launch downloaded podcasts", if you have another player just replace xmms in the script bpgui.sh in line 24 & 36 with you favourite media player.


    Readme & Pics: here
    Author: Linc
    Last edited by mtron; July 4th, 2005 at 12:32 AM.

  2. #2
    Join Date
    Oct 2004
    Location
    Kingston, On
    Beans
    Hidden!

    Re: HOWTO: get Podcasts without Ipodder

    If they released a six-hour DVD of lugradio-live! I would buy it and watch it in one sitting.


    Mark Shuttleworth will be there and take part in the mass-debate!

  3. #3
    Join Date
    Dec 2004
    Beans
    50

    Re: HOWTO: get Podcasts without Ipodder

    Hey, yeah! I've been using this for a couple of months... it's a nice fuss-free way to get podcasts. Never knew there was a gui. I've just been using the shell script and setting it up to run as a weekly cron job.

  4. #4
    Join Date
    Feb 2005
    Beans
    28
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: HOWTO: get Podcasts without Ipodder

    Wow, great. I couldn;t get this installed before... thanks!

  5. #5
    Join Date
    Apr 2005
    Beans
    40

    Re: HOWTO: get Podcasts without Ipodder

    Maybee it would be a good idea to add lynx to the "needed before start" list, I know linux is about keeping user occupied for the missing bit but lets see if we can't cut down on that just a tad.

    Sorry about the negativity but I am on a 64bit system.

  6. #6
    Join Date
    Apr 2005
    Beans
    40

    Re: HOWTO: get Podcasts without Ipodder

    And just for the record. This totally solved my problem and BETA ipodder as it should be called on linux, is wiped from my system. Next step is to check out some of the really nice alternative bp.conf files out there.

  7. #7
    Join Date
    Dec 2004
    Location
    Utah, USA
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: HOWTO: get Podcasts without Ipodder

    I use one of the contrib bashpodder shells, this one can handle bittorrent, has first only (download only the last podcast on a rss feed), and catch up.

    bashpodder.shell
    Code:
    #!/bin/bash
    # By Linc 10/1/2004
    # Find the latest script at http://linc.homeunix.org:8080/scripts/bashpodder
    # If you use this and have made improvements or have comments
    # drop me an email at linc dot fessenden at gmail dot com
    # I'd appreciate it!
    #
    # This revision by Brian Hefferan 2004/02/06, adding configuration options.
    # No warranty. It seems to work for me, I hope it works for you.
    # Questions /corrections on the additions by Brian Hefferan can be sent to
    # brian at heftone  dot  com
    
    #default values can be set here. Command-line flags override theses.
    verbose=
    wget_quiet='-q'  #default is -q
    wget_continue=
    catchup_all=
    first_only=
    unix2dos=
    usetorrents=
    sync_disks=
    fetchlist='bp.conf'
    
    function usage
    {
      echo "
    Usage: $0 [OPTIONS]
    Options are:
    -v, --verbose          display verbose messages. Also enables wget's continue
                          option.
    --catchup_all          write all urls to the log file without downloading the
                          actual podcasts. This is useful if you want to subscribe
                          to some podcasts but don't want to download all the back
                          issues. You can edit the podcast.log file afterwards to
                          delete any url you still wish to download next time
                          bashpodder is run.
    --first_only           grab only the first new enclosed file found in each feed.
                          The --catchup_all flag won't work with this option. If
                          you want to download the first file and also permanently
                          ignore the other files, run bashpodder with this option,
                          and then run it again with --catchup_all.
    -bt --bittorrent       launch bittorrent for any .torrent files downloaded.
                          Bittorrent must be installed for this to work. The
                          the script and bittorrent process will continue running
                          in the foreground indefinitely. You can use ctr-c to
                          kill it when you want to stop participating in the
                          torrent.
    --sync_disks           run the "sync" command twice when finished. This helps
                          makes sure all data is written to disk. Recommended if
                          data is being written directly to a portable player or
                          other removable media.
    -u, --url_list         ignore bp.conf, instead use url(s) provided on the
                          command line. The urls should point to rss feeds.
                          If used, this needs to be the last option on the
                          command line. This can be used to quickly download just
                          a favorite podcast, or to take a few new podcasts for a
                          trial spin.
    -h, --help             display this help message
    
    "
    }
    
    if [ -n "$verbose" ]; then wget_quiet='';wget_continue='-c';fi
    if test -f urls.temp;then rm urls.temp;fi
    
    # Make script crontab friendly:
    cd $(dirname $0)
    
    while [ "$1" != "" ];do
       case $1 in
                 -v|--verbose ) verbose=1
                                wget_continue='-c'
                                wget_quiet=''
                             ;;
                -u|--url_list ) shift
                                while [ "$1" != "" ];do
                                   echo "$1" >> urls.temp
                                   shift
                                done
                                if test ! -f urls.temp
                                   then
                                       echo "Error: -u or --url_list option specified, but no urls given on command line. quitting."
                                       exit 1;
                                fi
                                fetchlist='urls.temp'
                             ;;
                --catchup_all ) catchup_all=1
                             ;;
                 --first_only ) first_only=1
                             ;;
                 --bittorrent ) usetorrents=1
                             ;;
                 --sync_disks ) sync_disks=1
                             ;;
                    -h|--help ) usage
                                exit
                             ;;
       esac
       shift
    done
    
    # datadir is the directory you want podcasts saved to:
    datadir=$(date +%Y-%m-%d)
    
    # Check for and create datadir if necessary:
    if test ! -d $datadir
          then
          mkdir $datadir
    fi
    
    if test ! -f bp.conf && test ! -f urls.temp;
    then
       echo "Sorry no bp.conf found, and no urls in command line. Run $0 -h for usage."
       exit
    fi
    
    # Read the bp.conf file and wget any url not already in the podcast.log file:
    while read podcast
          do
          seenfirst=
          if [ -n "$verbose" ]; then echo "fetching rss $podcast...";fi;
          for url in $(wget -q "$podcast" -O - | tr '\r' '\n' | tr \' \" | \
                       sed -n 's/.*url *= *"\([^"]*\)".*/\1/p' )
                  do
              if [ -n "$first_only" ] && [ -n "$seenfirst" ]; then break;fi
              echo $url >> temp.log
              if [ -n "$catchup_all" ];
              then
                  if [ -n "$verbose" ]; then echo " catching up $url...";fi
              elif   ! grep "$url" podcast.log > /dev/null ;
              then
                 if [ -n "$verbose" ]; then echo "  downloading $url...";fi
                 wget $wget_continue $wget_quiet -P $datadir "$url"
              fi
              seenfirst=1
          done
    done < $fetchlist
    
    if test ! -f temp.log && [ -n "$verbose" ];then echo "nothing to download.";fi
    
    if test -f urls.temp; then rm urls.temp;fi
    
    # Move dynamically created log file to permanent log file:
    cat podcast.log >> temp.log
    sort temp.log | uniq > podcast.log
    rm temp.log
    
    # Use bittorrent to download any files pointed from bittorrent files:
    if [ "$usetorrents" ]
    then
        if ls $datadir/*.torrent 2> /dev/null
        then
              btlaunchmany.py $datadir
        fi
    fi
    
    # Create an m3u playlist:
    ls -1rc $datadir | grep -v m3u > $datadir/podcast${datadir}.m3u
    if [ -n "$unix2dos" ];then unix2dos $datadir/podcast${datadir}.m3u;fi;
    
    if [ -n "$sync_disks" ]
    then
        if [ -n "$verbose" ]; then echo "running sync..";fi;
        sync
        if [ -n "$verbose" ]; then echo "running sync again..";fi;
        sync
    fi
    
    if [ -n "$verbose" ]; then echo "done.";fi;
    Last edited by Technoviking; June 16th, 2005 at 04:36 PM.
    Mike: "The hardest questions in life are the ones worth answering"
    E-Mail | Blog | Gmail | technoviking on irc.freenode.net, identi.ca , and Twitter

  8. #8
    Join Date
    Apr 2005
    Beans
    40

    Re: HOWTO: get Podcasts without Ipodder

    Hey thanks man, it was something along those lines I was looking for, as SDR does use BT.

  9. #9
    Join Date
    Jun 2005
    Beans
    7

    Re: HOWTO: get Podcasts without Ipodder

    I keep getting an error: "grep: podcast.log: No such file or directory"
    do i just creat a file called podcast.log?
    "vim podcast.log"

  10. #10
    Join Date
    Apr 2005
    Beans
    40

    Re: HOWTO: get Podcasts without Ipodder

    Well so did I, just create an empty file by that name and run again, I ran into the same problem with the new_mp3 file.

    I have used one of the customized scripts from the bashpodder page for days now and it really works well.

Page 1 of 3 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •