TwVideoManager.models module

class TwVideoManager.models.Video(author: str, date: Optional[datetime.datetime])[source]

Bases: object

Basic video structure

Parameters:
  • author (str) – Streamer ID of the video
  • date (Optional[datetime.datetime]) – Record-Started time of the video
static parse_time(time: str)[source]

Parse a date-time string into datetime.datetime object

time must be matched the pattern %Y%m%d_%H-%M-%S.mp4 or %Y%m%d_%H-%M-%S.

Parameters:time (str) – Time string to parse as a date
Return datetime.datetime:
 Parsed data as a datetime.datetime object
set_date(time: Union[str, datetime.datetime])[source]

Parse and set the record-started time of Video