Sone-162-javhd-today-04192024-javhd-today02-23-... May 2026
# Extract source (e.g., JAVHD) if "JAVHD" in filename.upper(): features["source"] = "JAVHD"
# 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
# Extract movie ID (e.g., SONE-162) movie_match = re.search(r'([A-Z]+-\d+)', filename) if movie_match: features["movie_id"] = movie_match.group(1) SONE-162-JAVHD-TODAY-04192024-JAVHD-TODAY02-23-...
# Detect duplicate JAVHD-TODAY pattern if filename.count("JAVHD-TODAY") > 1: features["is_duplicate_tag"] = True
If you're building a classifier or search feature: # Extract source (e
"filename_cleaned": "SONE-162 04192024", "has_date": true, "has_javhd": true, "word_count": 5, "digit_group_count": 3, "possible_quality": "unknown", "possible_part": 2
It looks like you're referencing a filename pattern from a JAV (Japanese Adult Video) source — possibly an MP4 file naming convention that includes a code (), a site label ( JAVHD ), and dates. # Extract source (e.g.
# Extract segment (e.g., 02, 23) seg_match = re.findall(r'\b(\d2)\b', filename) if len(seg_match) > 1: features["segment"] = seg_match[-1] # last 2-digit number


