package
Version:
v1.1.12
Opens a new window with list of versions in this module.
Published: Jul 8, 2020
License: MIT
Opens a new window with license information.
Imports: 13
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package media manages video library functionality.
SortByTimestamp sorts the playlist by Timestamp
SortByViews sorts the playlist by Views
By is the type of a "less" function that defines the ordering of its Playlist arguments.
Sort is a method on the function type, By, that sorts the argument slice according to the function.
Library manages importing and retrieving video data.
NewLibrary returns new instance of Library.
Add adds a single video from a given file path.
AddPath adds a media path to the library.
Import adds all valid videos from a given path.
Playlist returns a sorted Playlist of all videos.
Remove removes a single video from a given file path.
Path represents a media library path.
Video represents metadata for a single video.
ParseVideo parses a video file's metadata and returns a Video.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.