Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Listen to Youtube with tizonia (command line)

Off-Topic discussions about science, technology, and non Debian specific topics.
Post Reply
Message
Author
User avatar
bester69
Posts: 2072
Joined: 2015-04-02 13:15
Has thanked: 24 times
Been thanked: 14 times

Listen to Youtube with tizonia (command line)

#1 Post by bester69 »

- 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)
http://forums.debian.net/viewtopic.php? ... 02#p730002

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

:arrow: For remote control, we need tizonia-remote,
http://forums.debian.net/viewtopic.php? ... 6&start=60
bester69 wrote:STOP 2030 globalists demons, keep the fight for humanity freedom against NWO...

Post Reply