[chevereto] fix 'id' for links without file name (#8307)

e.g. https://jpg6.su/img/LecXGS/
This commit is contained in:
Mike Fährmann
2025-09-27 18:45:14 +02:00
parent 6af79f32b7
commit 53389143cb
2 changed files with 18 additions and 1 deletions

View File

@@ -75,7 +75,7 @@ class CheveretoImageExtractor(CheveretoExtractor):
fromhex=True)
file = {
"id" : self.path.rpartition(".")[2],
"id" : self.path.rpartition("/")[2].rpartition(".")[2],
"url" : url,
"album": text.remove_html(extr(
"Added to <a", "</a>").rpartition(">")[2]),