completely implemented downloading from youtube

This commit is contained in:
Hellow
2023-06-13 20:10:11 +02:00
parent 79c38387c8
commit 73576b0453
4 changed files with 168 additions and 20 deletions

View File

@@ -205,6 +205,19 @@ class ID3Timestamp:
time_format = self.get_time_format()
return time_format, self.date_obj.strftime(time_format)
@classmethod
def fromtimestamp(cls, utc_timestamp: int):
date_obj = datetime.datetime.fromtimestamp(utc_timestamp)
return cls(
year=date_obj.year,
month=date_obj.month,
day=date_obj.day,
hour=date_obj.hour,
minute=date_obj.minute,
second=date_obj.second
)
@classmethod
def strptime(cls, time_stamp: str, format: str):
"""