Listen to Youtube with tizonia (command line)

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

Listen to Youtube with tizonia (command line)

Postby bester69 » 2020-12-06 04:04

- Listen to Youtube with tizonia (command line)
:!: https://docs.tizonia.org/manual/youtube.html


I made following script (youtrack) to make easier to listen youtube's music.:
Examples.:

Listen chains searched
youtrack "relaxing music" >> It searches for relaxing music and play it shuffled
youtrack "ASMR" >> Play inmediatly random ASMR

Listen given movies/playlist URL
youtrack "https://www.youtube.com/watch?v=PYY3Q-nuMe0" >> Listen URL movie
youtrack "https://www.youtube.com/watch?v=<<PlaylistURL>>" >> Play a given playlist URL shuffled

Listen movies from given youtube channel
youtrack "https://www.youtube.com/channel/UCqFbF_CD2CJ_jwiQCfCJqEQ" >> Play random movies from any given channel

youtrack.sh
Code: Select all
#!/bin/bash
#
export APIV3=$(sudo ~/scripts/secrets.sh XXYY5)

clear
killall tizonia
tizonia --help youtube

case "$1" in
    *"youtube"*"list"* ) 
    echo "es youtube lista"
        tizonia --youtube-api-key="$APIV3" --youtube-audio-playlist "$1" --shuffle
        ;;
      *"channel"* ) 
        echo "es Canal todos videos"
        tizonia --youtube-api-key="$APIV3" --youtube-audio-channel-upload "$1" --shuffle
        ;;
      *"youtube"* ) 
        echo "es youtube video"
        tizonia --youtube-api-key="$APIV3" --youtube-audio-stream "$1"
        ;;       
    * )
        echo "es una búsqueda"
        ##error 404 tizonia --youtube-api-key="$APIV3" --youtube-audio-mix-search "$1"
        tizonia --youtube-api-key="$APIV3" --youtube-audio-search "$1" --shuffle
        ;;
    esac


More Examples of tizonia-youtube use.:
$ tizonia --youtube-audio-mix-search 'the final countdown'
$ tizonia --youtube-audio-channel-playlist 'UCGJdzJQ3R1BpahSvcFq23HA masters of metal'
$ tizonia --youtube-audio-channel-uploads 'UCGJdzJQ3R1BpahSvcFq23HA'
$ tizonia --youtube-audio-stream v2AC41dglnM


:!: For the youtube API (create a youtube API3)
- Youtube API3 is very easy to get from (yotube.developer)

Install.: snap install tizonia
Update.: snap refresh tizonia


-----------------------------------------------
:arrow: Listen to radio with tizonia (command line)
viewtopic.php?f=3&t=147906&p=730002#p730002

:arrow: Listen Podcasts with tizonia (command line)
viewtopic.php?f=3&t=148000

: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: 1815
Joined: 2015-04-02 13:15

Return to Offtopic

Who is online

Users browsing this forum: No registered users and 12 guests

fashionable