Listen Podcasts with tizonia (command line)

If it doesn't relate to Debian, but you still want to share it, please do it here
Post Reply
Message
Author
User avatar
bester69
Posts: 1900
Joined: 2015-04-02 13:15
Been thanked: 1 time

Listen Podcasts with tizonia (command line)

#1 Post by bester69 »

Listening to podcasts with tizonia (command line)
:!: https://docs.tizonia.org/manual/tunein.html

youpodcast "el sueño de andromeda" >> (tizonia --tunein-search "$chain" --tunein-type "shows")

youpodcast.sh
It searches for podcasts in tunein database, and gives results in mode normal/shuffle

Code: Select all

#!/bin/bash
#
tizontune="/home/$USER/.cache/tizontuneshuffle.txt"
clear
killall tizonia
tizonia --help tunein

touch "$tizontune"
 if [ "0" == "$1" ] ;  then  echo "0" > $tizontune  ; opt="MODO NORMAL" ; fi
 if [ "1" == "$1" ] ;  then  echo "1" > $tizontune  ; opt="MODO SHUFFLE" ; fi
 if [ "0" == "$1" ] || [ "1" == "$1" ] ; then echo "$opt" ; exit ; fi

if [ -z "$2" ]
then
    chain="'$1'"
else
    chain="'$1' $2"
fi

##Opción shuffle
OP=$(cat $tizontune)
if [  "1" == "$OP" ]
then
    echo "1" > $tizontune
    echo "MODO SHUFFLE"
    tizonia --tunein-search  "$chain" --shuffle --tunein-type "shows"
    else
    echo "0" > $tizontune
    echo "MODO NO SHUFFLE"
    tizonia --tunein-search  "$chain" --tunein-type "shows"
fi
Examples.:
youpodcast 0 >> Switch to mode normal (NO SHUFFLE)
youpodcast 1 >> Switch to mode shuffe

youpodcast <<Canal podcast>>
youpodcast <<Canal podcast>> <<filter search>>

-----------------------------------------------
:arrow: Listen to Youtube with tizonia (command line)
http://forums.debian.net/viewtopic.php?f=3&t=148232

:arrow: Listen to radio with tizonia (command line)
http://forums.debian.net/viewtopic.php? ... 02#p730002

:arrow: For remote control, we need tizonia-remote,
http://forums.debian.net/viewtopic.php? ... 6&start=60
bester69 wrote:You wont change my mind when I know Im right, Im not an ...

Post Reply