Sone-162-javhd-today-04192024-javhd-today02-23-... Review
return features filename = "SONE-162-JAVHD-TODAY-04192024-JAVHD-TODAY02-23-..." print(parse_jav_filename(filename))
"filename_cleaned": "SONE-162 04192024", "has_date": true, "has_javhd": true, "word_count": 5, "digit_group_count": 3, "possible_quality": "unknown", "possible_part": 2 SONE-162-JAVHD-TODAY-04192024-JAVHD-TODAY02-23-...
# Extract date (MMDDYYYY) date_match = re.search(r'(\d2)(\d2)(\d4)', filename) if date_match: try: date_str = f"date_match.group(1)/date_match.group(2)/date_match.group(3)" features["release_date"] = datetime.strptime(date_str, "%m/%d/%Y").date().isoformat() except ValueError: pass "%m/%d/%Y").date().isoformat() except ValueError: pass