TMZ’s Harvey Levin isn’t thrilled that a thinly veiled version of himself turned up in the ninth episode of Showtime’s “Ray Donovan.”

“I haven’t seen it. I heard about it,” Levin told The Post’s Richard Johnson.

Asked if he was flattered to be portrayed by Jay Thomas as “Marty Grossman,” the operator of the fictional Stalker.com, Levin diplomatically replied, “I like the show.”

The scene opens with Liev Schreiber, as Ray Donovan, marching into Marty’s office saying, “You’re not gettin’ a dime outta Tommy Wheeler. Kill the photos. Kill the story.” Marty, at his desk in a tight polo shirt, drops the F-bomb a couple of times and promises to post photos of Tommy in a tuxedo with a “he-she in a full bridal gown,” telling the threatening fixer, “I’m not scared of you anymore.” Ray replies, “You should be.” “I’m going to time it exactly,” Marty says.“It’s going to be great when Tommy’s up there accepting his award, and all of those cellphones start beeping.” Donovan later uses a baseball bat to make sure that doesn’t happen.

We’re sure that doesn’t happen to Harvey.