class Video: def __init__(self, title, year, language, resolution, type, video_codec, audio_codec): self.title = title self.year = year self.language = language self.resolution = resolution self.type = type self.video_codec = video_codec self.audio_codec = audio_codec
The string you've provided seems to describe a video file: Actor In Law 2016 -Urdu- 720p HDRip x264 AAC - ...
def __str__(self): return f"Title: {self.title}\nYear: {self.year}\nLanguage: {self.language}\nResolution: {self.resolution}\nType: {self.type}\nVideo Codec: {self.video_codec}\nAudio Codec: {self.audio_codec}" class Video: def __init__(self
for part in parts[1:]: part = part.strip() if 'Urdu' in part: video_info['language'] = 'Urdu' elif '720p' in part: video_info['resolution'] = '720p' elif 'HDRip' in part: video_info['type'] = 'HDRip' elif 'x264' in part: video_info['video_codec'] = 'x264' elif 'AAC' in part: video_info['audio_codec'] = 'AAC' elif '2016' in part: video_info['year'] = '2016' return Video(video_info['title'], video_info['year'], video_info['language'], video_info['resolution'], video_info['type'], video_info['video_codec'], video_info['audio_codec']) Actor In Law 2016 -Urdu- 720p HDRip x264 AAC - ...
Buying a bunch of clothes because they look nice in the shop is not a good strategy for building a wardrobe. It implies that the look of your clothes is more important than your look. But clothes should have no other purpose than to bring out your natural beauty and to highlight it.
The wardrobe guide will help you discover those garments that truly suit you.
