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 News on YOUTUBE!

Share your HowTo, Documentation, Tips and Tricks. Not for support questions!.
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 News on YOUTUBE!

#1 Post by bester69 »

:arrow: LISTENING TO NEWS on Youtube

We can listen News on live youtube channels countries :o

Requirements.:
- mpv, youtube-dl
- mps-youtube

- playerctl (optional to toggle,play-pause, play-next stream); you can use mps own controls :idea:

- we will use mps-youtube
https://github.com/mps-youtube/mps-youtube

the command use it for looking for live news category on youtube is.:
mpsyt "/<<search>> -c news -l,1-" :idea:


So, we create a script to look for specific News or defalut news query.:

mpstrack.sh

Code: Select all

#!/bin/bash
#
pkill mpsyt
pkill mpv

if [ -z "$1" ]
then
mpsyt "/news -c news -l,1-" 
else
mpsyt "/$1 -c news -l,1-" 
fi
to look for spanish news.: mpstrack noticias :idea:

Image

youtrack news
Image

-----------------------------------------
we will set configure several mps-youtube settings by using set
  • set player mpv
    set playerargs --no-video (to play only audio with mpv)
    set mpris true (optional; in order to use mpris and playerctl control)
    api_key xxxxxxxx (your api youtube)
resulting like this.:
Image
bester69 wrote:STOP 2030 globalists demons, keep the fight for humanity freedom against NWO...

User avatar
sunrat
Administrator
Administrator
Posts: 6412
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 461 times

Re: Listen to News on YOUTUBE!

#2 Post by sunrat »

Sky news?! :| Do you have a script for real news? :mrgreen:
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

User avatar
craigevil
Posts: 5391
Joined: 2006-09-17 03:17
Location: heaven
Has thanked: 28 times
Been thanked: 39 times

Re: Listen to News on YOUTUBE!

#3 Post by craigevil »

Or you can just use a browser or Freetube and play it in the background. Or use a browser to search Youtube then copy the link and have vlc play it.

mps-youtube in Debian has bugs:
grave bugs of mps-youtube (→ 0.2.8-1) <Outstanding>
b1 - #877035 - mps-youtube: crashes with TypeError after search
b2 - #952583 - mps-youtube: Mps-youtube failes to find anything because google disabled its api key... and a 2 more minor issues
Raspberry PI 400 Distro: Raspberry Pi OS Base: Debian Sid Kernel: 5.15.69-v8+ aarch64 DE: MATE Ram 4GB
Debian - "If you can't apt install something, it isn't useful or doesn't exist"
My Giant Sources.list

User avatar
bester69
Posts: 2072
Joined: 2015-04-02 13:15
Has thanked: 24 times
Been thanked: 14 times

Re: Listen to News on YOUTUBE!

#4 Post by bester69 »

craigevil wrote:Or you can just use a browser or Freetube and play it in the background. Or use a browser to search Youtube then copy the link and have vlc play it.

mps-youtube in Debian has bugs:
grave bugs of mps-youtube (→ 0.2.8-1) <Outstanding>
b1 - #877035 - mps-youtube: crashes with TypeError after search
b2 - #952583 - mps-youtube: Mps-youtube failes to find anything because google disabled its api key... and a 2 more minor issues
Its a pitty this project is kind of death..cos its amazing what you can do with mps-youtube... fortunelly still works most of it...I just found out playlist searches doesnt work.. normal searches do work... I very recommed this peace of gold app for many things.. tizonia cant play live youtube streams yet

As an alternative, you could use Qmplay2 which cames with an embbeded youtube panel for searching and bookmarks..its works very well and you can add all radio channels to playlist.. so you've it all available thought live stations guess changes url ID from time to time.
Another good one would be to use or headset youtube player.. which is a minimalistic gui browser which play always using minimal resolution to not consume much cpu.. furthermore you can save stations
https://headsetapp.co/

Image
bester69 wrote:STOP 2030 globalists demons, keep the fight for humanity freedom against NWO...

User avatar
bester69
Posts: 2072
Joined: 2015-04-02 13:15
Has thanked: 24 times
Been thanked: 14 times

Re: Listen to News on YOUTUBE!

#5 Post by bester69 »

sunrat wrote:Sky news?! :| Do you have a script for real news? :mrgreen:
yes, but that require a Paypal contribution :twisted:
bester69 wrote:STOP 2030 globalists demons, keep the fight for humanity freedom against NWO...

User avatar
craigevil
Posts: 5391
Joined: 2006-09-17 03:17
Location: heaven
Has thanked: 28 times
Been thanked: 39 times

Re: Listen to News on YOUTUBE!

#6 Post by craigevil »

I use Freetube: https://freetubeapp.io/

https://freetubeapp.io/#download
https://flathub.org/apps/details/io.fre ... p.FreeTube

Privacy Policy https://freetubeapp.io/privacy.php

What is Freetube?
FreeTube is a YouTube client for Windows, Mac, and Linux built around using YouTube more privately. You can enjoy your favorite content and creators without your habits being tracked. All of your user data is stored locally and never sent or published to the internet. FreeTube grabs data by scraping the information it needs (with either local methods or by optionally utilizing the Invidious API). With many features similar to YouTube, FreeTube has become one of the best methods to watch YouTube privately on desktop.
Raspberry PI 400 Distro: Raspberry Pi OS Base: Debian Sid Kernel: 5.15.69-v8+ aarch64 DE: MATE Ram 4GB
Debian - "If you can't apt install something, it isn't useful or doesn't exist"
My Giant Sources.list

Post Reply