• If you need help or want to discuss things, you now can also join us on our Discord Server!
  • A first preview of the unlimited version of SinusBot can be found in the Upcoming Changes thread. A version for Windows will follow, but we don't have a release date, yet.
Youtube Webinterface

Youtube Webinterface 3.0

No permission to download
Required SinusBot Version
1.0
Compatible Backends
  1. TeamSpeak 3
  2. Discord
German

Ein Youtube Such Interface, zum abspielen / downloaden / einreihen von Videos ohne mühsam den Link herauszusuchen. Zusätzlich bietet es Funktionen um über den Chat die Videos von einer Playlist einzureihen und sogar über die normale Suche (nicht das neue Webinterface) mit Youtube direkt zu suchen.

Chatbefehle:
Code:
!playlist <PlaylistURL> <AnzahlDerZuEingereihtenVideos>
!playlist https://www.youtube.com/playlist?list=PLKOXXePgWciOO61ZUSzTDQQGyD_546BGA 10

Ebenfalls kann man über die aktivierte direkte Suche in den Scripteinstellungen direkt mit der normalen Suche über Youtube nach Videos suchen. Dazu muss diese Option aktiviert sein. Diese darf nur einmal pro Bot aktiv sein, da sonst die Ergebnisse doppelt vorkommen.

  • Sinusbot Beta Version ab 1.0.0-alpha.4-311d85f
  • Einen Youtube Data API Key für Browser
  • Ein funktionsfähiges Youtube-dl (!yt <link> muss funktionieren)

  1. Folgendes im Scripts Ordner ausführen
    Code:
    wget -qO- https://github.com/mxschmitt/YoutubeWebinterface/archive/master.tar.gz | tar -xzf  - --strip 1
    Unter Windows einfach das Archiv manuell herunter laden und im scripts Ordner entpacken, sodass darin dann die youtube.js und der youtube Order liegt.
    (Dies sollte im Scripts Ordner sein --> Bild
  2. Den YT Data API Key (Browser) in einer Instanz im Webinterface eintragen -->
    1. Besuche die Seite
    2. Erstelle ein Projekt
    3. Aktiviere die YouTube Data API
    4. Klicke auffolgenden Button
    5. Klick auf API-Schlüssel
    6. Wähle dort den "Öffentlichen" Key für "Webbrowser" aus und klicke auf Erstellen
    7. Daraufhin findest du im folgenden Fenster den Key, welche du in den Scripteinstellungen im Webinterface einträgst
    [*][*][*][*][*][*][*]
  3. Bot neustarten
  4. Script aktivieren --> "Youtube Webinterface"
  5. Nun kannst du das Interface so aufrufen: <DeineSinusbotAdresse>/scripts/youtube/
    d.h. z.B. 127.0.0.1:8087/scripts/youtube/

Gehe die folgenden Schritte durch:
- Ist das Script richtig installiert: youtube.js und ein youtube Ordner im Scripts Ordner von deiner SinusBot installation
- Hast du den SinusBot neugestartet
- Hast du das Script aktiviert
- Versuche deinen Cache zu leeren: Incognito Tab / other browser um das zu testen
- Benutzt du die neuste SinusBot version?

English

A Youtube Webinterface for searching Youtube videos and playing/downloading/enqueuing them without grabbing the link. Additional there is a feature to enqueue titles of a youtube playlist over the chat and you can search via the normal webinterface directly on youtube and enqueue title of it.

Chat commands:
Code:
!playlist <PlaylistURL> <AmountOfEnqueuedVideos>
!playlist https://www.youtube.com/playlist?list=PLKOXXePgWciOO61ZUSzTDQQGyD_546BGA 10

You can use the direct search when you've activated it in the script settings. The direct search can only be on one instance enabled because there are else double items in the search result.

  • Sinusbot Beta Version above 1.0.0-alpha.4-311d85f
  • Youtube Data API Key (Browser)
  • A working Youtube-dl installation(check for !yt <link>)

  1. Run the following code in the scripts directory
    Code:
    wget -qO- https://github.com/mxschmitt/YoutubeWebinterface/archive/master.tar.gz | tar -xzf  - --strip 1
    If you are using Windows, download the archive manually and extract it in the scripts directory so that the youtube.js and the youtube folder is in it.
    This is the filetree from the scripts directory Image
  2. Paste the youtube API Key for Browser just in one activated script in the webinterface -->
    1. Visit the follow Site
    2. Create a project
    3. Enable the YouTube Data API
    4. Click on thefollowing button
    5. Click on API Key
    6. There you select the type Browser, which should be public and click on finish
    7. In the following window, you will see your API Key, which you can copy into the Scriptsettings
    [*][*][*][*][*][*][*]
  3. Restart Bot
  4. Activate the script --> "Youtube Webinterface"
  5. Now you can access the webinterface
  6. <YourSinusbotIPorDomain>/scripts/youtube/
    for example 127.0.0.1:8087/scripts/youtube/

Check the following this:
- Is the script installed correctly, youtube.js and folder youtube should be in your scripts directory of the SinusBot
- Have you restarted the SinusBot
- Have you enabled the Script
- Try to clear you Cache / Incognito Tab / other browser for testing
- Latest SinusBot version?

GJmzjxE.png


Thanks for the JavaScript support from @irgendwer.
Author
mxschmitt
Downloads
5,885
Views
25,612
First release
Last update
Rating
4.74 star(s) 42 ratings

More resources from mxschmitt

Latest updates

  1. Updated to the Scripting Engine v8 for SinusBot 1.0

    In this minor release, we fixed the issues that come along with the SinusBot scripting engine...
  2. Minor changes

    - added direct search - updated to the new scripting engine - added discord support - fixed not...
  3. Youtube Webinterface

    New features: Selected Instance is now equal to the normal selected of the main page Fixed...

Latest reviews

Vielen Dank für das Bereitstellen des Plugins.
Läuft das Plugin aktuell noch oder nicht mehr?

Ich habe zur Zeit das Problem, dass beim Abspielen eines YT-Links die Meldung "Success! The Video will be sucessfully played now." erscheint, aber nichts abgespielt wird.

Betrieben wird der SinusBot auf einem Windows 10 - Rechner.
Wie läuft das hier mit youtube-DL, das läuft hier ja nur in der Eingabeaufforderung. Muss die .exe für den SinusBot in einem bestimmten Verzeichnis sein, damit ein Zugriff möglich ist?

Habe hier z.Z. AtomicParsley, ffmpeg und youtube-DL in einem Ordner, um es unter WIN10 zum Laufen zu bringen. Manuell läuft es auch über die Eingabeaufforderung, aber wie sieht das mit dem "automatisierten" Zugriff aus dem SinusBot aus?

Danke schon mal im Voraus.
Our number one request at Clanwarz, available to everyone, with a YouTube API key preinstalled behind a proxy server. Max is a great coder!
Where I can give permission tu users?
Hi. Managed to install ... looks good. Shows what i play via normal sinusbot but i cant find any song via search. Added api key still i try keywords and press Search and nothing happens. Thank you!
Version 3.0 funktioniert irgendwie nicht mir Discord
Vielen Dank für das Update, funktioniert wunderbar!
Bei mir kommt nichts wenn ich suche...
Aber erst seit neuestem, ich hatte eine Version installiert, dann ging es garnicht mehr und jetzt neu installiert!

Ich komme zwar auf das Interface, aber ich kann nichts suchen...
The All Music page is not changed. HEEELP
Tolles Script! DANKESCHÖN! Eine frage jedoch: Ist es möglich es einzustellen dass man die radio streams nicht ändern kann bzw nur den einen bot steuren kann? Habe nun einige einstellungsmöglichkeiten durch und immer wieder kann man zwar die music nicht ändern allerdings den stream schon.
When i open the link for the webinterface i just land on the "All Music" page. Can you help me?
Top