Vegamovieshd Blackadam2022v3720phdcamriphindidub1xbet-vegamoviestomkv May 2026
import re def sanitize_movie_name(filename): # Strip common site/group prefixes cleaned = re.sub(r'^[a-zA-Z0-9]+HD\b', '', filename, flags=re.IGNORECASE).strip() # Isolate Year to find the end of the title year_match = re.search(r'(19|20)\d2', cleaned) if year_match: year = year_match.group(0) title_raw = cleaned.split(year)[0].strip() # Add spaces between CamelCase words (e.g., BlackAdam -> Black Adam) title = re.sub(r'(?<=[a-z])(?=[A-Z])', ' ', title_raw) return f"title (year)" return cleaned # Output: Black Adam (2022) print(sanitize_movie_name("VegamoviesHD BlackAdam2022V3720pHDCAMRipHINDIDUB1XBET-Vegamoviestomkv")) Use code with caution. Copied to clipboard Recommended Third-Party Tools
: The most powerful tool for automatically matching files to TheMovieDB and renaming them perfectly.
: A full-featured manager that handles renaming and downloads artwork/subtitles.