double check file_size in metadata class

This commit is contained in:
blacktwin 2020-03-08 11:40:43 -04:00
parent ca38dc30a5
commit bc3f41e0ef

View File

@ -101,6 +101,8 @@ class Metadata(object):
if self.media_info:
self.parts = self.media_info[0].get('parts')
self.file = self.parts[0].get('file')
if not self.file_size:
self.file_size = self.parts[0].get('file_size')
if self.media_type == 'episode' and not self.title:
episodeName = self.full_title.partition('-')[-1]
self.title = episodeName.lstrip()