/^
The storage vfs that TYTD accesses
^/
public abstract Storage;
/^
The directory of where the database is (should be the same physical folder as the Storage vfs if you want ffmpeg)
^/
public abstract DatabaseDirectory;
/^
Package manager object
^/
public PackageManager;
/^
All the plugin webpages
^/
public Servers;
/^
vfs: The storage vfs that TYTD accesses
dbDir: The directory of where the database is (should be the same physical folder as the Storage vfs if you want ffmpeg)
^/
public Downloader(vfs, dbDir)
/^
Download a video
id: video id or url
res: see Resolution
^/
public DownloadVideo(id, $res)
/^
Download a playlist
id: playlist id or url
res: see Resolution
^/
public DownloadPlaylist(id, $res)
/^
Download a channel
id: channel id or url
res: see Resolution
^/
public DownloadChannel(id, $res)
/^
Get the thumbnail of a plugin
^/
public GetPluginThumbnail(name)
/^
Download video, playlist or channel
url: id or url
res: see Resolution
^/
public DownloadItem(url, $res)
/^
Redirect url to info page
^/
public PageRedirect(url)
public GetQueueItems(offset, count)
/^
Get videos
set offset to the page (starting at 0)
set count to how many items per page
^/
public GetVideos(query, offset, count)
/^
Get playlists
set offset to the page (starting at 0)
set count to how many items per page
^/
public GetPlaylists(query, offset, count)
/^
Get playlist contents
set offset to the page (starting at 0)
set count to how many items per page
^/
public GetPlaylistContents(id, offset, count)
/^
Get channel contents
set offset to the page (starting at 0)
set count to how many items per page
^/
public GetChannelContents(id, offset, count)
/^
Get channels
set offset to the page (starting at 0)
set count to how many items per page
^/
public GetChannels(query, offset, count)
/^
Get the video path
res: see Resolution
^/
public GetVideoPath(v, res)
/^
Get video info
vid can be a video url from youtube or just the id
^/
public GetVideo(vid)
/^
Get playlist info
id can be a playlist url from youtube or just the id
^/
public GetPlaylist(id)
/^
Get channel info
id can be a channel url from youtube or just the id
^/
public GetChannel(id)
/^
Get the list of personal list names
^/
public GetPersonalLists()
/^
Set the description of a personal list
^/
public SetPersonalListDescription(name, description)
/^
Get the description of a personal list
^/
public GetPersonalListDescription(name)
public GetPersonalListTempUrl(name)
/^
^/
public GetPersonalListContents(name, offset, count)
public QueueRemoveItem(id)
public QueueClear()
public AddToPersonalList(name, id)
public RemoveFromPersonalList(name, id)
public RemovePersonalList(name)
public SetSubscriptionBell(url, bell)
public GetSubscriptionBell(url)
public GetSubscriptionUrls()
public RemoveSubscription(url)
public VideoStarted;
public VideoProgress;
public BeforeQueued;
public CurrentVideo;
public CurrentVideoProgress;
public VideoEnded;
public Bell;
public Plugins;
/^
The mutex (for database)
^/
public Mutex;
public Running;
/^
Get Video Queue count
^/
public getVideoQueueCount()
public Config;
public SaveConfig()
public GetPlaylistThumbnail(id, res)
public GetChannelThumbnail(id, res)
public LoadPlugins()
public Start()
/^
Log stuff
^/
public LOG(text)
public Stop()
public TryDownloadVideoThumbnail(v, res)
public GetVideoThumbnail(v, res)
/^
Open the database
^/
public OpenDB()
/^
Get whether package is installed
version must be the current version as a Version not string
returns 0 if not, 1 if installed or 2 if can update
^/
public PackageState(name, version)
/^
Install plugin
version must be a Version not a String
^/
public PackageInstall(name, version)
/^
Uninstall plugin
^/
public PackageUninstall(name)
/^
Get the TYTD Tag
^/
public getTYTDTag()
/^
Download video info if it does not exist
pass in a video id or url
^/
public PutVideoInfoIfNotExists(vid)
/^
Put video info from info into database
^/
public PutVideoInfo(info)
public DiscoverVideosBasic(q, $continuation)
public Discover(q, $continuation)
/^
Make a video manifest request
^/
public ManifestRequest(vid)
public GetSessionToken(ctx)
public Logout(ctx)
public CreateAccount(ctx, username, password, flags)
public FlushExpired()
public IsLoggedIn(ctx)
public GetSSO(appname)
public WhoAmI(ctx)
public Passwd(ctx, oldPassword, newPassword, logout)
public Auth(username, password)
public Login(username, password, doesExpire)
/^
Send the database as http response
^/
public SendDatabase(ctx)
public RegisterSSO(req)