/toby-blazor

A simple YouTube player written in C# / Blazor Server Side

Primary LanguageC#MIT LicenseMIT

Toby (Blazor)

Requires: .NET 8

This is a simple YouTube player for your favorite videos.

This is a rewrite of Toby using C# and Blazor. This project is using the server-side hosting model.

Usage

NOTE: Currently the database shipping in the repo is a slightly modified one from Toby. It's pre-populated with videos I like. Use the command /all to list them or /manage to delete them all. Or if using Visual Studio you can just delete the included database and run the Entity Framework migration to create a new empty database.

NOTE: If you want to search YouTube you'll need a YouTube Data API key. This code needs to be added to an environment variable on your machine called YOUTUBE_API_KEY.

To obtain a YouTube Data API key you need a Google account and need to go to Google's developer console to obtain one.

Search commands:

  • /all or /ls: lists all videos in the database
  • /clear: clear search results
  • /crp or /clear-recently-played: clear recently played
  • /group [name] or /g [name]: lists videos in a specific group
  • /favorites or /fav: list favorite videos
  • /manage or /mg: video management
  • /manage-recently-played or /mgrp: recently played management
  • /manage-groups or /mgg: group management
  • /recently-played or /rp: list all recently played videos
  • [search term]: search locally for video
  • /youtube [search term] or /yt [search term]: search YouTube for videos

NOTE: When using manage there is a search box to search within the videos you are managing. You can use /all to show all videos after a narrow search.

The Recently Played videos are limited to 30 videos.

Screenshots

Basic UI with Recently Played Preview

Basic UI with Recently Played Preview

Video Playback

Video Playback

Video Management

Video Management

Group Management

Group Management

Folder Layout

  • server: Blazor server-side project
  • electron: Run Toby inside Electron
    • Run Toby then start Electron (this will be changed in the future so that all you need to do is run Electron and it'll start Toby up)

Author(s)

Frank Hale <frankhale@gmail.com>

Date

23 June 2024

License

MIT - see LICENSE