-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVideo.py
More file actions
31 lines (25 loc) · 929 Bytes
/
Video.py
File metadata and controls
31 lines (25 loc) · 929 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#Video class
from Media import Media
class Video(Media):
def __init__ (self, callNum, title, subject, note, desc, dist, series, label):
super().__init__(callNum, title, subject, note)
self.m_desc = desc
self.m_distributor = dist
self.m_series = series
self.m_label = label
def display(self):
print("===============================Search Results===============================\n")
print("Media Type: Video\n")
super().display()
print("Description: ",self.m_desc)
print("Distributor: ",self.m_distributor)
print("Series: ",self.m_series)
print("Label: ",self.m_label)
def compare_other(self,search_other):
found1 = self.m_desc.find(search_other)
found2 = self.m_notes.find(search_other)
found3 = self.m_distributor.find(search_other)
if found1 == -1 and found2 == -1 and found3 == -1:
return False
else:
return True