🔍 Parsed: John Wick Chapter 2 (2017) ✅ Renamed: HDMovies4u.Hair-John.Wick.Chapter.2.2017.BluRay.1080p.x264.mkv -> John Wick: Chapter 2 (2017).mkv 📝 Overview: After returning to the criminal underworld to repay a debt, John Wick discovers that a large bounty has been put on his head. Append this to the rename function:
def clean_title_from_filename(filename): """ Extract title & year from messy filename like: "HDMovies4u.Hair-John.Wick.Chapter.2.2017.BluRay..." Returns: (clean_title, year) """ # Remove common pirate group tags and extensions name = re.sub(r'(HDMovies4u|.Hair|.BluRay|.WEB-DL|.x264|.x265|.AC3|.DTS|.mp4|.mkv|.avi)', '', filename, flags=re.I) # Replace dots/spaces/hyphens name = re.sub(r'[.-_]', ' ', name) # Extract year (19xx or 20xx) year_match = re.search(r'\b(19|20)\d2\b', name) year = year_match.group(0) if year_match else None # Remove year from title if year: name = re.sub(r'\b' + year + r'\b', '', name).strip() # Remove extra spaces and capitalize words name = ' '.join(name.split()) return name, year HDMovies4u.Hair-John.Wick.Chapter.2.2017.BluRay...
It looks like you're referencing a filename from a site () for the movie John Wick: Chapter 2 (2017) in BluRay quality. 🔍 Parsed: John Wick Chapter 2 (2017) ✅