-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdata.py
22 lines (22 loc) · 788 Bytes
/
data.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
class VideoInfo:
def __init__(self, title=None, description=None,
tags=None, category=None,
thumbnail_url=None, url=None,
comments=None, views=None, subscribers=None,
likes=None, dislikes=None, data=None):
if data is None:
self.data = {
'Title': title,
'Description': description,
'Tags': tags,
'Category': category,
'ThumbnailURL': thumbnail_url,
'URL': url,
'Comments': comments,
'Views': views,
'Subscribers': subscribers,
'Likes': likes,
'Dislikes': dislikes
}
else:
self.data = data