Git Product home page Git Product logo

youtube-webos's Introduction

youtube-webos

YouTube App with extended functionalities

Configuration Screen Segment Skipped

Features

Note: Configuration screen can be opened by pressing 🟩 GREEN button on the remote.

Pre-requisites

  • Official YouTube app needs to be uninstalled before installation.

Installation

Configuration

Configuration screen can be opened by pressing 🟩 GREEN button on the remote.

Autostart

In order to autostart an application the following command needs to be executed via SSH or Telnet:

luna-send-pub -n 1 'luna://com.webos.service.eim/addDevice' '{"appId":"youtube.leanback.v4","pigImage":"","mvpdIcon":""}'

This will make "YouTube AdFree" display as an eligible input application (next to HDMI/Live TV, etc...), and, if it was the last selected input, it will be automatically launched when turning on the TV.

This will also greatly increase startup performance, since it will be runnning constantly in the background, at the cost of increased idle memory usage. (so far, relatively unnoticable in normal usage)

In order to disable autostart run this:

luna-send-pub -n 1 'luna://com.webos.service.eim/deleteDevice' '{"appId":"youtube.leanback.v4"}'

Building

  • Clone the repository
git clone https://github.com/webosbrew/youtube-webos.git
  • Enter the folder and build the App, this will generate a *.ipk file.
cd youtube-webos

# Install dependencies (need to do this only when updating local repository / package.json is changed)
npm install

npm run build && npm run package

Development TV setup

Configuring webOS TV CLI tools with Developer Mode App

This is partially based on: https://webostv.developer.lge.com/develop/getting-started/developer-mode-app

  • Install Developer Mode app from Content Store
  • Enable developer mode, enable keyserver
  • Download TV's private key: http://TV_IP:9991/webos_rsa
  • Configure the device using ares-setup-device (-a may need to be replaced with -m if device named webos is already configured)
    • PASSPHRASE is the 6-character passphrase printed on screen in developer mode app
ares-setup-device -a webos -i "username=prisoner" -i "privatekey=/path/to/downloaded/webos_rsa" -i "passphrase=PASSPHRASE" -i "host=TV_IP" -i "port=9922"

Configuring webOS TV CLI tools with Homebrew Channel / root

  • Enable sshd in Homebrew Channel app
  • Generate ssh key on developer machine (ssh-keygen)
  • Copy the public key (id_rsa.pub) to /home/root/.ssh/authorized_keys on TV
  • Configure the device using ares-setup-device (-a may need to be replaced with -m if device named webos is already configured)
ares-setup-device -a webos -i "username=root" -i "privatekey=/path/to/id_rsa" -i "passphrase=SSH_KEY_PASSPHRASE" -i "host=TV_IP" -i "port=22"

Installation

npm run deploy

Launching

  • The app will be available in the TV's app list or launch it using ares-cli.
npm run launch

To jump immediately into some specific video use:

npm run launch -- -p '{"contentTarget":"v=F8PGWLvn1mQ"}'

youtube-webos's People

Contributors

0xbadeaffe avatar alyyousuf7 avatar anewdawn avatar fire332 avatar friedchickenbutt avatar informatic avatar jtran2795 avatar throwaway96 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

youtube-webos's Issues

Ads on the first tile.

Since a little while now, there are ads appearing intermittently on the first tile of the top row, with no way to disable or block them.

loss of internet connection

Thanks for the app!

There is a problem starting the application about 1 out of 5 times when turning on the TV after a long break (overnight or several hours). In this case, the application, after loading and after a pause, reports that there is no network connection. It helps to launch several "heavy" applications (there are no problems with the network) or reboot. I'm thinking maybe this will clear some cache or unload the application from RAM. After these manipulations, the application starts normally.

55sm8600pla, Devmode
FW 05.20.06
webOS 4.9.5-6

Speed adjustment not working

When using this package, changing the speed modifer doesn't seem to take effect. The video still plays at 1.0x speed no matter if 0.25x or 2.0x is selected. This happens with the friedchickenbutt version as well, but works as expected with the original unmodded version.

Temporarily disabling adblock and sponsorblock had no effect on these results.

Tv: lg oled b9
Webos: 05.00.15

Add auto-4k

Hi, it would be good to add a feature force the highest quality resolution. Thanks

Overskipping

If there's a dedicated ad segment, this app will skip over it, but too far ahead, and typically 5-10 seconds of a video will be unwatchable.

LG C1 65" Voice Search Not Working

Hello,
I have reviewed older tickets on this (incl #14) and it doesn't seem to discuss the problem I'm having.

Expected behaviour: Open YouTube adfree, click yellow button on magic remote, speak search terms and search is automatically conducted.

Actual behaviour: When I have YouTube Adfree opened, I press the yellow button on the magic remote to conduct a voice search, it goes to voice search screen (with mic button highlighted, and keyboard). I have to click on the mic button. After clicking mic button, red mic shows up but does not record voice. Mic icon is static and does not have a "fluctuate" motion to indicate hearing voice.

Webos 6 / IPK v 0.3.1

Please let me know if I can supply any other data.

voice search

voice search does not work
opening links does not work during voice search in the system, it just opens the application

webos 5+

the best application for bypassing ads, unfortunately for all 5+ webos users it is of little use without these functions

No preview "gif" of videos

Hiho, I recently rooted my TV and installed this app.

I can enable "show previews with sound", when enabled, it takes 3-4 seconds (which is pretty long, but I don't know how long it took on the official app. I never used it) for the preview to show, but I don't like it with sounds on, so I disabled it. Previews on the official app are pretty much instantaneous.
But here are no previews at all. That's a bummer.

Also, when I scroll to all my subscriptions it takes pretty long 😅 on the official app it's smoother/faster.
Some other transitions are also smoother on the official app, it's hard to describe. But that's not a big issue.

Keyboard not working in search

Hi!

When using external keyboard it isn't working for Youtube search. For all other apps it works and numbers, arrows etc. work also for this. But not alphabetics.

This seems to be problem for original Youtube as well and it's quite old issue.

Do you think it could be fixed with some javascript under the hood?

Same problem if opening the https://www.youtube.com/tv directly in TVs web browser.

See

Awesome app by the way!

No way to remove Sponsorblock Toast

I am ecstatic that we have YT with Sponsorblock, its unbearable without it, but can you please add an option to remove the notifications in the bottom right corner?

SponsorBlock not working

First off this app is awesome!!!
But just started having an issue.
SponsorBlock is not working.
AdBlocking is working fine.

Doesn't skip any Sponsor segments at all during videos.
Tried on 2 TV's.
One Rooted and one using Developer Mode.
Have tried SponsorBlock on my computer and it works just as expected on the same video.

Does not save videos to YouTube

Hello, please solve the problem in YouTube, does not save the place where the video stops after re-enabling the video starts first on version 0.2.1. Check everything properly and update the new version. If you fix everything, thank you very much in advance!!!

No progress tracking

When a video has been partially or fully watched, YouTube only recognizes that the video was started, but will not recognize how much has been watched.

E.g. if 5 minutes of a 10 minute video is watched, then a user exits the video and enters it again, the video will start from the beginning instead of at the 5 minute mark.

Video history is not saved

Hello, I do not know how else to write to you, I sent the data and you did not answer whether you would solve the problem with the history in YouTube, does not save the history where I finished watching the video.

Error in webos app. club

Hello, tell me what happened to the webos app. club, it turns for a long time and gives an error
IMG_20220422_173308
IMG_20220422_173308

Sponsorblock broken

Hi, Sponsorblock integration no longer works since 0.1.1 update running on webos 5.2.1.
It's enabled in app settings, but it's not skipping promotions, nor displaying colored segments in videos.

Does not save YouTube browsing history

Hello, version 0.3.0 does not save the video browsing history, if you exit and do not finish watching, then after logging in, the video starts from the beginning, is it possible to use some command to make the video save the browsing history of webos 3.9

TV enters Screensaver only on specific channel

Hi,

a rather strange/funny issue: I'm on 0.20 and it's working like a charm. But funnily on videos by Linus Tech Tips, only on videos by this channel but seemingly on all videos by this channel, after a two minutes or something my TV enters screensaver mode although the video is running :D
Never happened when watching videos by other channels I frequently visit.

I'm really interested in what makes this happen from technical perspective, so if you could have a look at it and let me know that'd be great :D Maybe I'll have a look at debug view, but as I'm not into the code at all, dunno if I could read anything out of it.

Thanks!

Side menu (icons) disappeared

For the last few days I noticed all the icons gone and replaced by strange symbols and today the menu completely disappeared making the app quite unusable.

I tried uninstalling the app and installing it again (0.3.1 from the homebrew "store") but it did not help.

5D6B3FFE-7E20-43C2-B410-33290CF34215

[IDEA] Bring up the video description as one of the buttons on overlay

Until recently, I was sure the yt app just doesn't show video descriptions at all - until I found out it's at the very bottom of "paused video overlay", down under all sponsored and recommended videos - and I'm sure I am not alone.

It would be very useful to add "Open video description" as one of the buttons, maybe after the like&dislike buttons?

Playback speed not working

Using the latest release (v0.3.1), the playback speed control is not working. Changing the speed to 1.25x, 1.5x, 1.75x or 2x does not change the playback speed of the video, it is still playing back at 1x regardless of setting. Disabling the adblock (through the green button menu) will magically make the playback speed works again.

Let me know if I can provide additional info or logs, thanks!

Outdated dependencies and broken build config

image

Dependencies are severely out of date. I've manually checked through the newer major versions of each dep and they can be upgraded without any further change as they don't break anything we care about. With the dependencies out of date, these errors occur:
image

Additionally, @webosose/ares-cli is only intended for use with the open source version of webos and not LG TV's version since it's missing ares-novacom, as the employee on the LG developer forums can attest to that. Additionally, @webosose/ares-cli causes npm to spew a lot of audit errors when installing so I recommend removing this package as this can cause real audit problems to be missed.

For the webpack config, using es5 for targets will cause this error:
image
I recommend moving the target in babel.config.json to a separate browserslist file and set target: 'browserslist' in webpack's config instead.

Related videos/channels/topics

Hello!

First of all, I want to thank you and your team for your spectacular work. State of the art YouTube has become unwatchable due to adds, and this app is a huge quality of life improvement.

But I was wondering if there is an issue with video history, video recommendations, or maybe the video suggestion algorithm. With the original YouTube app, after days of exploring and watching some videos/channels, it would start suggesting related topics, (mainly new or recently uploaded) videos, and channels, even without being logged in with my google account.

I cannot see the same behavior in this app, at least by not logging in. After watching some videos, and closing and reopening the app, it flushes all watched video history (except the text search history), so I need to search again for channels or new videos of the same topics. Is there any configuration related to this? Is the logging into google account needed for this feature? Or maybe it is disabled due to the trackers blocking features?

Thanks in advance.

Returns an error in the browser

Hello, on the lg webos 3.9.0 TV, when typing any page in the browser, it gives an error, is it possible to somehow update certificates, can you tell me what commands you need to type.
IMG_20220207_163558

Autostart on non rooted 65SM8600PLA

TV info : ```
modelName : 65SM8600PLA
sdkVersion : 4.9.0
firmwareVersion : 05.20.06
boardType : M16P3_DVB_EU
otaId : HE_DTV_W19H_AFADABAA

`
ares-novacom --run "luna-send-pub -n 1 'luna://com.webos.service.eim/addDevice' '{"appId":"youtube.leanback.v4","pigImage":"","mvpdIcon":""}'" -d tv`
`{"returnValue":false,"errorCode":"EIM.101","errorText":"JSonObject Constructor : JObject is NULL"}
`

App store auto update overwriting

The app store auto updates YouTube which overwrites YouTube Adfree. Can we bump the version up a few times or something else to prevent this?

Error during installation via Homebrew Channel

When selecting Youtube Adfree in the homebrew channel app and hitting the "install" button, the following error shows up:

An error occured during installation: Unable to exec luna-send-pub: Error: Failed to call getIDs


Also:

I cant see Youtube Adfree as an App on my TV when, but WebOS Dev Manager shows me the launch button.
When clicking it, it will start the official Youtube app.

Clicking uninstall will not work on both, the official youtube app and the youtube adfree app.

[IDEA] Adding comment section view/adding comments

First of all: Thank you for this app!

Adblock and sponsorblock is what makes YT on tv usable at all for me, you're truly legends.

What would make the app even more superior from official app: is adding comment section.

option to disable subtitles

Since a while I have to disable the subtitles in every single video I watch. (if it has subtitles)
An option to disable subtitles for whole youtube would be nice.

[issue] Youtube AdFree stopped reproducing videos

Hello everybody!

Yesterday the app was working fine, but today I cannot play any videos at all. They all got stuck at the beginning, presumably trying to fetch an add and being blocked by not being able to.

Anybody else is having this issue?

Thanks in advance.

Can't build the code. Missing ares.js file.

Hi,
Can you help me with fixing following error?
morpheus@NUC:~/youtube-webos$ npm install
npm ERR! code ENOENT
npm ERR! syscall chmod
npm ERR! path /home/morpheus/youtube-webos/node_modules/@webosose/ares-cli/bin/ares.js
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, chmod '/home/morpheus/youtube-webos/node_modules/@webosose/ares-cli/bin/ares.js'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

Thanks
KB

The problem is in YouTub

Hello, I do not know how else to write to you, I sent the data and you did not answer whether you would solve the problem with the history in YouTube, does not save the history where I finished watching the video.

YouTube Updates

Hello, the HOMEGROWN YouTube CHANNEL has been updated, and the old version has remained on the webos YouTube club, please update

[Polish language only] Autostart aplikacji z marketu.

Witaj @Informatic
Jest możliwość dodania aplikacji do źródeł/autostartu z oficjalnego sklepu? Chodzi o 'siptv' który niestety nie jest podatny na komendę z README youtube-webos homebrew.
luna-send-pub -n 1 'luna://com.webos.service.eim/addDevice' '{"appId":"siptv","pigImage":"","mvpdIcon":""}'
to nie działa, podejrzewam, że ma odniesienie tylko do homebrew które siedzi w innym folderze niż sklepowe aplikacje.

Aplikacja nie zawiera przedrostków com.xx.xx jest w folderze siptv po prostu:
/media/cryptofs/apps/usr/palm/applications/siptv/

Z góry dziękuję za pomoc.

Readme instructions on how to update app

I'm missing instructions on how to update the app. I did the manual install via the official WebOS SDK. Do I need to remove the app first before I can install an updated .ipk? Or is it possible to install the new .ipk without removing the previous version first? Is app data retained when upgrading? I guess when I remove and reinstall the app data is gone.

Question about uninstalling the official app before installation

Could you please tell me what happens if the official YouTube app is not uninstalled before installation?
(From the README: "Official YouTube app needs to be uninstalled before installation")

Asking because I was wondering if the Youtube Kids app needs to be uninstalled as well.

An error appears on the HOMEGROWN CHANNEL

Здравствуйте после установки рут на экране с верху вылазит табличка и не исчезает всё перепробывал и выключал и перезагружал не чего не помогает, делал сброс до заводских несколько раз и все равно вылазит через каждые 10 секунд, что делать помогите решить эту проблему или дайте старую прошику рут
IMG_20220121_224128
Webos 3.9 LG 32LJ594U-ZA

Youtube does not save the video stop location

Hello, will you ever solve the problem with YouTube it is impossible to watch like this, you have to rewind to the place where you finished watching, the video does not save the place where you finished watching, everything is correctly configured and connected. Update be so kind and fix the bugs.

YT Ad-free causes my TV to "overload"

Hi there,

first of all I want to thank you all for this great work. Google has exceeded every level of ad-tolerance since they force 2-3 ads for every single short clip. That is such a pain, thanks to you I can still enjoy watching youtube.

But having still the same problem after performing a factory reset, I wanted to hear if I am alone with thit problem or not.

Since a few weeks now, when I use yt adfree (0.3.1), after watching a while, the sound suddenly stops working (eARC sound to external AR). The video continues. Switching to TV internal sound still works, but switching back to AR remains broken. That is just the beginning. After this "process" has started, the tv starts do break down. After a few more minutes, the yt stream starts buffering (endless). I can go still go back to the menu and search for other videos, but I cannot start any new videos, only buffering.

Thats not even the weird part. When this situation is reached, I can not use ANY streaming app. Netflix, Prime, Disney+, RTL+, DAZN, SkyQ (german tv broadcasters).
All of these apps seem to work, they start up, but same as yt, they do not run any streams, buffering will not end.

The only thing that keeps working is DVB-S television. But also just with TV internal sound.
When restarting the TV, everything is back to normal. I have already switched off the Quick start+ option, did not help.

2 days ago I made a factory reset, reinstalled everything. Seemed to work better for a while, but the same problem occured today.

I am using yt adfree since ~November last year. I did not have this problem until ~May this year. So maybe something has changed within WebOS which triggers this problem?!
To me it feels like there is some buffer or cache overflow so the videos cannot buffer the minimum amount they need to start. Doesnt matter which service I use.

Unfortunately only yt adfree causes this problem. I can watch TV for hours in a row as long as I do not touch yt adfree. But it will not even need 20 minutes to break if I use it then.

Anyone having similar problems? Thanks for your support.

My Specs:

Device: 75NANO906NA
Firmware: 04.40.08
WebOS version: 5.4.1
YT Adfree: 0.3.1
Homebrew Channel: 0.5.0

TV is not rooted, just using Developer mode. Since yt adfree and moonlight are the only apps I use, I felt no need so far to root it. But as mentioned it worked like a charm until some weeks ago.

Best regards
Mawi

Sometimes all buttons return to menu

WebOS version: 3.4.0-6107 (dreadlocks-digya)

Whenever the TV comes out of screensaver, and also occasionally other times (I suspect just before the screensaver starts, but not sure), pressing any button will exit the playing video and return to the menu. Not the button press used to end screensaver, but the following button press after screensaver is closed.

This can be avoided if, when the video is paused, I sometimes press buttons on the remote every few seconds (like navigating options buttons without clicking on any). But that is not easy to keep up.

Voice search

A very good app, but there is an annoying problem.
Voice search via LG Magic Remote does not work. After the voice request, the youtube popup appears, but there is no search result. Normal search works.

TV 55SM8600PLA
WebOS 4.9.3-5380409
Firmware 05.10.30

Is it possible to stop autoplay when casting from phone to YouTube adfree?

Hi there, appreciate your work on this project. This is the only truly adfree YouTube app that I've been able to find that allows for casting videos (like Chromecast) from a phone YouTube app, without any ads.

One issue I am noticing is that after every video finishes playing, there is a 5 second countdown before it automatically starts playing another video. I have to rush to hit the back button on the LG remote to stop it, which becomes a hassle after every video.

I have tried looking all over to find a setting to disable this, both in the app settings as well as settings on my phone. I did turn "off" the setting called "Autoplay" in the settings, however I think this only affects videos played directly in the app, not ones casted from a phone.

I am at a loss for how to change this. Is there a method that I am missing for changing this? Or perhaps it is a feature that must be added to the app?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.