Skip to content

Commit

Permalink
Modify MTV naming
Browse files Browse the repository at this point in the history
  • Loading branch information
Audionut committed Oct 11, 2024
1 parent d85ae96 commit 65b7938
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/trackers/MTV.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,12 +270,6 @@ async def edit_group_desc(self, meta):
async def edit_name(self, meta):
if meta['scene'] is True:
mtv_name = meta['video']
else:
mtv_name = meta['uuid']
# Try to use original filename if possible
if meta['source'].lower().replace('-', '') in mtv_name.replace('-', '').lower():
if not meta['isdir']:
mtv_name = os.path.splitext(mtv_name)[0]
else:
mtv_name = meta['name']
if meta.get('type') in ('WEBDL', 'WEBRIP', 'ENCODE') and "DD" in meta['audio']:
Expand All @@ -286,6 +280,9 @@ async def edit_name(self, meta):
if 'DD+' in meta.get('audio', '') and 'DDP' in meta['uuid']:
mtv_name = mtv_name.replace('DD+', 'DDP')
mtv_name = mtv_name.replace('Dubbed', '').replace('Dual-Audio', 'DUAL')
if meta['source'].lower().replace('-', '') in mtv_name.replace('-', '').lower():
if not meta['isdir']:
mtv_name = os.path.splitext(mtv_name)[0]
# Add -NoGrp if missing tag
if meta['tag'] == "":
mtv_name = f"{mtv_name}-NoGrp"
Expand Down

0 comments on commit 65b7938

Please sign in to comment.