Skip to content

Commit fc2daac

Browse files
bazilinskyyclaude
andcommitted
Locating: chapters naming other towns 15-150 km from the title's town split the drive at them
"TIRANE - ELBASAN ..." (2A5NEjDZJnE, albertvideomaker) with chapters Tirana 0:00 ... Bradashesh 20:08 was proposed as Tirana all through (user, 2026-11-26): chapters were read only when the title gave no town. Now also over a guessed one, when every other town the chapters name is 15-150 km from it (not a city's districts, Hollywood, Shibuya, nor far namesakes). Of 79 reviewed videos with such chapters the 8 passing put 6,468 s in the reviewer's locality against the guess's 5,453 (Matteson for Chicago's suburbs the one miss). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 93580a3 commit fc2daac

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

‎propose_segments.py‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10184,6 +10184,24 @@ def locate_now(p, df, home, sig_path=None, meta=None, boilerplate=frozenset()):
1018410184
es[0]['locality'], es[0]['guessed'] = screen[0], True
1018510185
p['note'] = (f"{p['note']}; locality {screen[0][0]} from a label on the screen at "
1018610186
f"{int(screen[1]) // 60}:{int(screen[1]) % 60:02d}").lstrip('; ')
10187+
# chapters naming other towns CHAPTER_TOWN_KM from the one the title gave split the drive at them: "TIRANE -
10188+
# ELBASAN" with chapters "Tirana", ..., "Bradashesh" (2A5NEjDZJnE; user, 2026-11-26) was all Tirana. Not a city's
10189+
# own districts or namesakes far off (Hollywood, Shibuya; Garden Grove): of 79 reviewed videos with
10190+
# such chapters, the 8 passing put 6,468 s in the reviewer's locality against the guess's 5,453
10191+
if meta and len(es) == 1 and es[0].get('locality') and es[0].get('guessed') and not p.get('route') \
10192+
and not es[0].get('gps'):
10193+
guess = es[0]['locality']
10194+
near_home = (lambda name: town_near(name, home, df)) if home else None
10195+
stretches = chapter_localities(video_chapters(meta), df, near_home)
10196+
others = {tuple(x[2]) for x in stretches} - {tuple(guess)}
10197+
at = _locality_anchor(guess, df)
10198+
if at and others and all((o := _locality_anchor(list(x), df))
10199+
and CHAPTER_TOWN_KM[0] <= _km(at[3], at[4], o[3], o[4]) <= CHAPTER_TOWN_KM[1]
10200+
for x in others):
10201+
p['entries'] = split_by_stretches(es[0]['segments'], stretches)
10202+
p['note'] = (f"{p['note']}; localities from the chapters: "
10203+
+ ', '.join(_stretch_label(a, loc) for a, _, loc in stretches)).lstrip('; ')
10204+
es = p.get('entries') or []
1018710205
if meta and len(es) == 1 and not es[0].get('locality') and not p.get('route'):
1018810206
e = es[0]
1018910207
near_home = (lambda name: town_near(name, home, df)) if home else None
@@ -10221,6 +10239,7 @@ def locate_now(p, df, home, sig_path=None, meta=None, boilerplate=frozenset()):
1022110239
# 37 h of such stretches of 10+ min and approved 7.5 h (143 videos); in the others the two were about even. Not in a
1022210240
# city of METRO_POP or more, whose freeways are its own (user, 2026-11-16): there such cuts held 3.4 h approved and
1022310241
# 5.2 h rejected (31 videos: Los Angeles, New York, Philadelphia, Istanbul), in smaller towns 4.3 h and 42.9 h
10242+
CHAPTER_TOWN_KM = (15, 150) # see locate_now
1022410243
ONE_PLACE_HIGHWAY = {**PARAMS, 'quiet_min_s': 600}
1022510244
# ... and a one-town video that by day is all highway, with no town in the picture, keeps every rural and highway
1022610245
# cut: "Calais to Croatia by Car - ... - Italy - Venice West to Meolo" (1AJ5FIkNWA4, g4shf; user, 2026-11-25: "videos

0 commit comments

Comments
 (0)