Skip to content

Commit

Permalink
SP use name for disc content
Browse files Browse the repository at this point in the history
disc based folder names are often poor, to put it mildly, rely on name instead.
  • Loading branch information
Audionut committed Feb 9, 2025
1 parent b2427bd commit e0f0406
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/trackers/SP.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,10 @@ async def edit_name(self, meta):
else:
name = meta['uuid']
else:
name = meta['uuid']
if meta.get('is_disc') is True:
name = meta['name']
else:
name = meta['uuid']
name, _ = os.path.splitext(name)
return name

Expand Down

0 comments on commit e0f0406

Please sign in to comment.