Pete Holmes of "The Pete Holmes Show" on TBS. (Jeremy Freeman/TBS)

Trouble strikes on “How I Met Your Mother” (CBS at 8 p.m.) this week when Lily receives a disconcerting text from Marshall’s travel companion, Daphne. Marshall then attempts to recruit Barney, Robin and Ted to erase the message before his wife sees it.

RETURNING SHOW: Yandy struggles after losing her fiance on the Season 4 opener of “Love & Hip Hop” (VH1 at 8). The newest rapper on the scene, Nya, seeks stardom while Joe and Tahiry await life-changing news. Peter’s new artist reveals something shocking and Rich and Erica set some new boundaries.

Caroline goes on a shopping spree and buys Max some new sheets on “2 Broke Girls” (CBS at 8:30), but she fails to realize that those sheets and Max’s old pillowcase have sentimental value.

The HBO documentary “Seduced and Abandoned” (9), which follows Alec Baldwin and James Toback as they attempt to make a deal to produce their version of “Last Tango in Paris” at the Cannes Film Festival, is reviewed by Hank Stuever on this page.

A mysterious woman is found dead with ritualistic symbols scattered in her apartment on “Castle” (ABC at 10). A monk quickly becomes a prime suspect, and Castle suspects a conspiracy. Meanwhile, Castle struggles to accept Alexis’s new living arrangements.

Ellen’s sister visits at the most inopportune time and Duncan forces her to leave on “Hostages” (CBS at 10). Later, Ellen is called in for questioning and must play it cool when Duncan assists the interrogation.

Tori Spelling puts all the rumors to rest with host Giuliana Rancic on her special, “E! Entertainment Special: Tori Spelling” (E! at 10). We learn how she juggles her family and career as she discusses her struggles and success in Hollywood.

TV host Charles Barkley and Olympic skier Lindsey Vonn join “The Late Show With David Letterman” (CBS at 11:35), along with musical guest King Krule.

Musician-turned-TV judge Adam Levine and comedian Ali Wentworth come to “The Tonight Show With Jay Leno” (NBC at 11:35), with musical guests Steve Nieve and Elvis Costello.

Actor Dax Shepard and singer Kelly Rowland are on “Jimmy Kimmel Live” (ABC at 11:35), with musical guest Smallpools.

SERIES PREMIERE: TBS throws its hat in the ring for late-night talk with “The Pete Holmes Show” (midnight). Comedian Pete Holmes is host to a cast of characters and sets in a show that began as a podcast and went viral.

— Rachel Lubitz