First commit

This commit is contained in:
2025-10-15 00:07:35 -05:00
commit 5e354c05be
69 changed files with 4598 additions and 0 deletions

View File

@@ -0,0 +1 @@
func PluginInit() new Plugin();

View File

@@ -0,0 +1,29 @@
/^
%PROJECT_NAME Class
^/
class Plugin {
public Plugin()
{
/*
You can access these anywhere in the plugin
TYTD.GetVideoId(id): get the youtube video id from url or id
TYTD.GetPlaylistId(id): get the youtube playlist id from url or id
TYTD.GetChannelId(id): get the youtube channel id from url or id
TYTD.Config[key]: get a string setting for this plugin
TYTD.Config[key] = value: set a string setting for this plugin (is presistant)
TYTD.Config.Directory: a crosslang SubdirFilesystem for the Files directory in plugin directory
TYTD.Config.DirectoryPath: same directory but the actual path of it for FS.Local
Resolution, SubscriptionBell, TYTD.Downloader (the instance, you can't create your own instance of it): See https://cpkg.tesseslanguage.com/package_docs?name=Tesses.YoutubeDownloader&version=1.0.0.0-prod
*/
Console.WriteLine("Run your initialization here");
}
public Server = new PluginServer();
public Close()
{
Console.WriteLine("Do any finishing work");
}
}

View File

@@ -0,0 +1,8 @@
class PluginServer
{
public Handle(ctx)
{
ctx.WithMimeType().SendText(<div><h1>Hello, world from @%PROJECT_NAME<h1><p>Path: {ctx.Path}, OriginalPath: {ctx.OriginalPath}</p></div>);
return true;
}
}