Listen Podcasts with tizonia (command line)

If it doesn't relate to Debian, but you still want to share it, please do it here

Listen Podcasts with tizonia (command line)

Postby bester69 » 2020-11-15 01:37

Listening to podcasts with tizonia (command line)

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 radio with tizonia (command line)
viewtopic.php?f=3&t=147906&p=730002#p730002

:arrow: For remote control, we need tizonia-remote,
viewtopic.php?f=3&t=126446&start=60
bester69 wrote:You wont change my mind when I know Im right, Im not an ...
User avatar
bester69
 
Posts: 1802
Joined: 2015-04-02 13:15

Return to Offtopic

Who is online

Users browsing this forum: No registered users and 8 guests

fashionable