Git Product home page Git Product logo

tp-ytdm-plugin's Introduction

TouchPortal Youtube Music Desktop Plugin

Description

This is an integration for TouchPortal that Allow you to control Youtube Music Desktop app

Action/States/Events

action

  • [Action] YT Music Playback Play/Pause (Allows you to Pause/Play current Song)
  • [Action] YT Music Playback Next/Previous (let you play previous song or next song)
  • [Action] YT Music Control Like/Dislike (Allows you to Like or Dislike current playing Song)
  • [Action] YT Music Control Volume (Allows you Increase/Decrease volume Note: Values is unchangable)
  • [Action] YT Music Playback seek (Allows you to Forward/Rewind by 10 Seconds)
  • [Action] YT Music Playback Repeat (Allows you to change Repeat States to OFF/ONE/ALL)
  • [Action] YT Music add Current Track to Playlist (Allows you to add current playing song to a X playlist)
  • [Action] YT Music Set seek (Allows you to set position of the Song)
  • [Action] YT Music Set Volume (Allows you to set volume from 0 to 100%)
  • [Action] YT Music Playback Play/Pause (Allows you to Pause/Play current Song)
  • [Action] YT Music Play Track (Allows you to play X queue song)
  • [Action] YT Music Add to Library (Allows you to add current song to your library)
  • [Action] YT Music Playback Shuffle (Shuffles current Song queue)

Events

  • [Events] YT Music is Paused (Trigger True/False if Song is paused)
  • [Events] YT Music Song like States (Trigger if Like states is INDIFFERENT/LIKE/DISLIKE)
  • [Events] YT Music is Advertisement (Trigger if current is Playing Ads True/False)
  • [Events] YT Music Song Reoeat States (Trigger if Repeat states changes to OFF/ONE/ALL)

States

  • [States] YT Music Song Title (Show current Song title)
  • [States] YT Music Cover Art (Show current playing Song cover)
  • [States] YT Music Song Author (Show current Song Author)
  • [States] YT Music Current Album (Show current Song Album)
  • [States] YT Music PlayerhasSong (Show if player is playing Song True/False)
  • [States] YT Music Play/Pause States (Show if current song is Paused True/False)
  • [States] YT Music Current Volume (Show current Volume 0-100 in percent)
  • [States] YT Music Song Length (Show how long is the Song format 00:00)
  • etc... you get the point

image

image

installation

  • Make sure you have latest version of YTMD installed should be Version 1.13+ otherwise Download it Youtube Music Desktop app
  • Download latest version of YTMD Plugin

image

  • Open TouchPortal and click Import Plugin and Select the Downloaded .tpp file

image

  • If this is your first Plugin you may need to restart TouchPortal then it warns you if you trust this Plugin and click Trust this
  • Now we will need to enable Web communication in Youtube Music Desktop on main menu hit gear icon near your Youtube account icon
  • and Goto Integrations and Enable Remote control

image

  • and Then let's head over to TouchPortal Settings. Type the password from YTMD from Protect remote control with password (Should be in blue color) in Passcode entry in the TouchPortal YouTube Music Desktop Plugin settings.

image

Settings

image

  • IPv4 address This allows you to control Other PC running YTMD Default localhost means your own PC
  • Passcode This is used for authorization to communicate YTMD
  • beta There is Some features that is under testing If your willing to test it Change it to True Default is False
  • Lyrics Range in order to use This it requires you to enable beta. This is used for Scrolling Lyrics default is -5,5 -5 means how far past it will go and 5 means how many newer lyrics going to show so -5,5 will have 10 lines of Lyrics [-5, -4, -3, -2, -1, 0, 1, 2 ,3 ,4]. Suggesting max of 30 lines of lyrics the More lyrics line the longer it will update
  • Check for Update Default True, When is True it will check for new version If new version is here it will open a browser window to the New version. Change to - False If you do not want to check updates and open browser window.
  • Status This Shows if Youtube Music Desktop is open or not.

Info

If there is any Issues/Suggestions or anything feel free make new Issue In this Github Or you can email me!

tp-ytdm-plugin's People

Contributors

alipoodle avatar killerboss2019 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

tp-ytdm-plugin's Issues

All buttons except play button, don't work

I have premium version, but i haven't rgb and edges graphic update.
I don't think this is the problem. I've installed the plugin following the instructions, but only play and pause button works, the others do nothing

New version of YTMD does not have a passcode

1
Screenshot_1
Hello, I just formatted the PC and I was recovering the Touchportal backup and when I tried to reconnect the Touchportal plugin with YTMD (with the latest version 2.0.1) but in the YTMD integration settings the passcode option does not appear. appeared in previous versions.
Is there a way to connect the TP plugin with this version of YTMD or do I have to go back to previous versions?
If the answer is to go back to a previous version, what is the latest version that is compatible?
Thanks

failed to import plugin

bonjour je ne peux pas import le plugin j'ai bien la dernière versions de touch portal et la dernière version de ytmd mais sa me marque tous le temp "failed to load plugin"

YTMD is Not open

I have the newest version of ytmd and of the plugin, when i look in touch portal under plugins it says "tymd is not open"
I´ve tried changed ips and resintalling stuff, nothing helped.
Pls help :( thanks

Version 2.10 doesn't work with the latest YTMD

I'm not sure why and how but the plugin doesn't work at all. I'm using the latest YTMD and plugin. Beside this, there is something wrong with the .tpp. If I use the latest .tpp I'm only able to install the version 210. If I look at the screenshots I can see the latest version is 250. If I check the source code in the .tp I can see the latest version is 250. I also tried to create the .exe from the .py but it didn't really worked out for me.

Dislike Function working different than dislike in ytmd

The dislike feature seems to just skip to the next track and not interact with the dislike flag in YouTube Music.

When I dislike a track through the plug-in it goes to the next track, but it does not actually dislike the track on YTmD. However, if I dislike a track in YTmD it goes to the next song and when I go back to the track it shows as DISLIKED both in the app and through the plug-in. Similarly, if the track is disliked I can clear the dislike in the YTmD app and the song continues to play, but if I try to hit the dislike through the plug-in it skips to the next track ad the dislike flag is still set on the song.

I made a quick video to show the issue. hope it helps
https://drive.google.com/file/d/1kHP3E_JxP_L5RS4lM4ehcDWiUZWzCAaI/view?usp=sharing

Next/Previous song state not working

Hello, when I press on the next song, the "next song" state doesn't indicate the right state of the real next song of youtube music.

Can someone help me please?

Feature: Play/Pause Event

This is a great plugin. Is there a possibility of adding a play/pause event? This could be used for declaratively changing the button icon from a play to pause.

Volume change not working

Using a button with Volume Up by 5% or Volume Down by 5% results in no action. Sometimes it also pops up a Failed to execute script TouchPortalYTMD error message.

It doesn't seem like log.txt has any useful info, anyways here's the relevant section:

09:09:43.536 - [LOG] (192.168.1.223) Received request on port 12134...
09:09:43.538 - [LOG] (192.168.1.223) Waiting for request on port 12134...
09:09:43.581 - [LOG] (192.168.1.223) Received request on port 12134...
09:09:43.583 - [LOG] (192.168.1.223) Waiting for request on port 12134...
09:09:43.584 - [LOG] (192.168.1.223) Received request on port 12134...
09:09:43.585 - [LOG] (Actions) Button State UP for index: (5, 2) on page media
09:09:43.586 - [LOG] (192.168.1.223) Waiting for request on port 12134...
09:09:43.587 - [LOG] (Actions) Doing action plugin
09:09:44.986 - [LOG] (State System) Changed state Trackcurrentdurationhuman from 3:16 to value 3:26
09:09:44.992 - [LOG] (State System) Changed state SeekBarStatus from 68 to value 72

YTM Playback Action Key switches to "Liked Music" Playlist

Hey, everytime i try to play music from anywhere else than liked music im instantly ported to my "Like Music" autoplaylist after using the Pause Action Key from the YTMD Plugin. Im using the 220 Plugin Build and YMTD v.1.14.2
If you need more Information comment or message me on Discord (Username: leveldown).

Volume slider moves but playback volume does not change

I set a slider in Touch Portal to control the Youtube Music volume. When I use the slider in Touch Portal I can see the volume slider in Youtube Music move but the the volume coming out of the speakers stays the same. If I move the slider in Youtube Music then the volume actually changes.

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.