TwVideoManager.misc.models module¶
-
class
TwVideoManager.misc.models.
Directory
(name: str, path: str, parent: Any, siblings: Optional[List[TwVideoManager.misc.models.File]])[source]¶ Bases:
object
Wrap class for sub-files and sub-directories.
Parameters: -
names
¶
-
size
¶
-
subdirectories
¶
-
subfiles
¶
-
-
class
TwVideoManager.misc.models.
File
(name: str, path: str, size=None, meta: Any = '')[source]¶ Bases:
object
Wrap class for sub-files on
Directory
.Parameters: - name (str) – the name of the file (without extension).
- path (str) – the path of the file (with full filename with the extension).
- size (int) – the size of the file (in Bytes)
- meta (Any) – metadata of the file.
- extension (str) – the extension of the file, starting with a dot. Can be None if the file extension is unexplicit.
-
size
¶
-
class
TwVideoManager.misc.models.
VideoFile
(name: str, path: str, _size: Optional[int], meta: Any, extension: str, author: str, date: Optional[datetime.datetime], file: _io.BufferedReader)[source]¶ Bases:
TwVideoManager.models.Video
,TwVideoManager.misc.models.File
Video files in local data directory
Parameters: - name (str) – The name of the video file
- extension (str) – The extension of the video file
- file (TextIOWrapper) – File object of the video file
- author (str) – Streamer ID of the video file
- date (Optional[datetime]) – Record-Started time of the video file