fix: workaround around merged parts

This commit is contained in:
2023-06-20 22:11:10 +07:00
parent efc7ff2be9
commit f549166e2e
2 changed files with 7 additions and 1 deletions

View File

@ -15,7 +15,10 @@ class Latest:
self.raw = raw
def get_name(self):
return self.path.split("/")[-1]
name = self.path.split("/")[-1]
if name == "":
name = self.segments[0]["path"].split("/")[-1][:-4]
return name
@staticmethod
def from_dict(data):