InspectorLewisAfter nine seasons of “Inspector Lewis,” the solid police saga winds up with its last hurrah — three feature-length episodes, starting tonight, on “Masterpiece” (PBS, 9 p.m.). The series, starring Kevin Whatley, is itself a spinoff of “Inspector Morse,” which ran many years and had many of the same qualities.

As he deals with a meddling new boss played by Steve Toussaint, Lewis tries to connect a body found in a well to the death of an artist, as Laurence Fox’s Detective Sgt. Hathaway tries to get to know his father. Then there will be two episodes left to go.

Elsewhere, another detective, one named Box, marks up a map to trace Naz’s steps on “The Night Of” (HBO, 9 p.m.).

Olympics pour out of every possible NBC property, with its main focus on prime time, where Katie Ledecky and Dana Vollmer go for gold on the U.S. women’s swimming team as Simone Biles leads the U.S. women gymnasts. Earlier, it’s U.S. vs. Senegal (NBC Sports, 11 a.m.) in women’s basketball.

“Ray Donovan” (Showtime, 9 p.m.) confronts a Hollywood agent.

Cam’s comments in an interview is taken out of context on “Survivor’s Remorse” (Starz, 10 p.m.).

The last classic dive in Vegas is the focus of the season premiere of “Bar Rescue” (Spike, 9 p.m.).

Laurel is being investigated in the bug infestation she’s been fighting so long on “BrainDead” (CBS, 10 p.m.).

Club expansion spreads Ghost thin on “Power” (Starz, 9 p.m.).

it’s Burr vs. Hamilton but no songs in the season finale of “Legends & Lies” (Fox News, 8 p.m.), the perfectly named series for its network.

Zendaya plays five different characters in the one-hour “K.C. Undercover” (Disney, 8 p.m.) set in a traveling circus.

“Basketball Wives LA” (VH1, 8 p.m.) go on a peacemaking trip to Big Bear Lake.

Nominations for eviction are revealed on “Big Brother” (CBS, 8 p.m.).

“Chopped” (Food, 9 p.m.) takes on fried chicken.

Heroin and meth leads to no good on “Intervention” (A&E, 9 p.m.).

Kansas attorneys relocate to Cozumel on “Mexico Life” (HGTV, 9 and 9:30 p.m.).

“Ozzy and Jack’s World Detour” (History, 10 p.m.) travels to Mt. Rushmore.

“Extreme Waterparks” (Travel, 9 p.m.) goes to Rio as well.

Jim’s brother comes to visit on “The Jim Gaffigan Show” (TVLand, 10 p.m.).

“My Big Fat American Gypsy Wedding” (TLC, 10 p.m.) has a biker theme.

Football rivalries are typically over the top on “Vice Principals” (HBO, 10:30 p.m.).

A prime suspect is found but lost on “The Tunnel” (PBS, 10:30 p.m., check local listings).

A rock photographer causes crisis backstage and an iPad is stolen in “Roadies” (Showtime, 10 p.m.).

Probably a bad idea to export this group to Cuba: “Keeping Up with the Kardashians” (E!, 9 p.m.).

Jean Harlow is the star all day on Turner Classic Movies with “Riffraff” (6 a.m.), “Saratoga” (8 a.m.), “Beast of the City” (10 a.m.), “Personal Property” (11:45 a.m.), “China Seas” (1:15 p.m.), “Dinner at Eight” (4 p.m.), ‘Libeled Lady” (6 p.m.), “Red Dust” (8 p.m.), “Bombshell” (9:30 p.m.), “Wife vs. Secretary” (11:15 p.m.), “Reckless” (1 a.m.), “Red-Headed Woman” (2:45 a.m.) and “Suzy” (4:15 a.m.). There is also a 1993 documentary on the actress: “Harlow: the Blonde Bombshell” (3 p.m.).

Baseball has San Francisco at Washington (TBS, 1:30 p.m.).

NFL starts up with the preseason Hall of Fame Game of Indianapolis vs. Green Bay (ESPN, 8 p.m.) from Canton, Ohio.

Final rounds are played in the Travelers Championship (Golf Channel, 1 p.m. and CBS, 3 p.m.).

Auto racing has the Cheez-It 355 (USA, 2:30 p.m.) from Watkins Glen.

It’s Cleveland at Los Angeles (ESPN2, 6 p.m.) in the first round of arena football playoffs.

Sunday Talk

ABC: Rudy Giuliani, former acting CIA director Michael Morell. CBS: Sens. Jeff Flake and Tom Cotton. NBC: Tim Kaine, Florida Gov. Rick Scott, retired Army Lt. Gen. Michael Flynn. CNN: John Kasich. Fox News: Newt Gingrich, Rep. Xavier Becerra.