double check file_size in metadata class
This commit is contained in:
parent
ca38dc30a5
commit
bc3f41e0ef
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user