Padres: Manny Machado and the Padres wrote their own Hollywood ending on the home field of their biggest rivals Tuesday night. The Padres stunned the Dodgers with a game-ending triple play to preserve a 4-2 victory over the NL West leaders that clinched a playoff spot for the Padres. “We won it! We won it!” yelled Fernando Tatis Jr. The party was on in the Padres’ darkened clubhouse, with music pumping and lights flashing as players drenched each other in alcohol. “Couldn’t have scripted it any better, man,” manager Mike Shildt said over the din. “What a play by Manny, a phenomenal play.” With the Padres leading by three runs in the ninth inning, Kiké Hernández hit an RBI single that cut it to 4-2 and put runners at first and second. Miguel Rojas hit a sharp grounder to Machado at third base, and he stepped on the bag before going around the horn for the triple play. The Dodgers challenged the out call at second base, but the ruling was upheld after a video review. The only other teams to turn a triple play on the same day they clinched a postseason berth were the 2020 Brewers, and the Cubs in 1910 and 1907. The Padres’ was the first of those to end the game. It was the Padres’ first triple play since June 10, 2010, against the Mets. After missing the postseason last year, the Padres earned the eighth playoff berth in franchise history. They’re guaranteed at least a NL wild card.

Astros: The Astros clinched their fourth straight AL West title with a 4-3 win over the visiting Mariners on Tuesday night, overcoming a terrible start to reach the playoffs for an eighth consecutive year. The Astros are the first team to win four straight AL West crowns sincethe A’s won five in a row from 1971-75. It’s the first time they’ve won four consecutive division titles, after winning three in a row twice before. The Astros limped out to a 7-19 record and trailed the Mariners by a season-high 10 games on June 18. But the Astros won their next seven to start a 13-2 stretch as they improved to 46-42 by July 5. They moved past the Mariners into first place in mid-August and cruised home to the division crown.

Orioles: The Orioles are headed to the playoffs in consecutive years for the first time since the 1990s, clinching no worse than a wild-card berth thanks to a 5-3 win over the host Yankees on Tuesday night paired with the Twins’ loss to the Marlins. The Orioles won the AL East last season but have only a remote chance of overtaking the Yankees for the division title this year.

Yankees: LHP Nestor Cortes has a strained flexor in his pitching elbow and was put on the 15-day IL on Wednesday in a blow to the Yankees’ rotation heading into the playoffs. The 29-year-old Cortes (9-10, 3.77 ERA) was 4-0 with a 1.58 ERA in his last seven starts.

Guardians: All-Star OF Steven Kwan was activated from the 10-day IL, a boost for the AL Central champs. Kwan, 27, had been sidelined with a back issue. He led the majors with a .352 average at the All-Star break, but was hitting just .201 in 50 games before being placed on the IL.