Skip to content

Commit 47a82a0

Browse files
bazilinskyyclaude
andcommitted
Highway: a short piece between highway stretches is left out also when the title names a road by number
bB9u_pZb2bw (g4shf, "Strasbourg - A4 onto A35 City Centre") was offered 9:44-10:41 between two highway stretches (user: just highway driving). The rule that drops such pieces (up to HIGHWAY_GAP_S) held only for a title naming a highway or a British motorway; a road number such as A4, A35, E531 counts now. Of 18 such reviewed pieces in titles with a road number, all were rejected. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent e080566 commit 47a82a0

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎propose_segments.py‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2391,6 +2391,10 @@ def fade_events(path, k=3, ratio=0.42, change=0.5):
23912391
# right and none worse (XDBi8ukETEA, -TY9uuHDcP8, 7oAdCb9eINM); 30 lost 9eI2niyrIwo, -2,718 s
23922392
STITCH_SKY_JUMP = 5
23932393
HIGHWAY_GAP_S = 600 # a piece up to this long between rural/highway stretches of a highway title's video: no town
2394+
# ... also a title naming a road by its number, "A4", "A35", "E531" (bB9u_pZb2bw, "Strasbourg - A4 onto A35 City
2395+
# Centre": 9:44-10:41 between highway stretches; user, 2026-11-26: just highway driving): of 18 such reviewed pieces
2396+
# all were rejected
2397+
ROAD_NUMBER = re.compile(r'(?<![\w-])[AE]-?\d{1,3}(?![\w-])')
23942398
DRIVER_GAP_S = 600 # footage between two camera-on-the-driver stretches up to this long is the driver too
23952399
DRIVER_CUT_SHARE = 0.2 # face frames in a minute from which a camera on the driver is cut, not only noted
23962400
WAIT_S, WAITS_PER_HOUR = 20, 3 # few waits at lights: see propose
@@ -10777,7 +10781,8 @@ def mapping_videos(df):
1077710781
# a highway in the title is analysed, not left out: such drives pass through towns on the way, which
1077810782
# the rural and highway checks and a GPS overlay find (user, 2026-10-11: uVHGEdTyAXk, Galt to Tulare)
1077910783
if hit := (HIGHWAY_TITLE.search(title_text(meta['title']))
10780-
or (motorway_title(meta['title']) and MOTORWAY_TITLE.search(meta['title']))):
10784+
or (motorway_title(meta['title']) and MOTORWAY_TITLE.search(meta['title']))
10785+
or ROAD_NUMBER.search(meta['title'])):
1078110786
notes.append(f"the title mentions '{hit.group(0)}': check that only driving through towns is left")
1078210787
# ... and a short piece between two rural or highway stretches is no town on the way (1Rz63qdJN38
1078310788
# 17:21-20:08; user, 2026-10-16): in reviewed videos with a highway title, of 31 such pieces up to

0 commit comments

Comments
 (0)