GAZIANTEP, Turkey — The worst day on the set of “Banned in Syria,” the actors agreed, was when the sniper struck in June. A location scout was preparing for the day’s filming when a single bullet killed him instantly.

The cast and crew continued undeterred. That is the bargain when you sign up to produce a rebel television series in the wartime Syrian city of Aleppo with little pay, no insurance and militias that want you dead.

During a marathon filming in June to rush this season’s episodes to air in time for Ramadan, the producers of “Banned in Syria” overcame obstacles from the lethal to the prosaic. A second crew member was wounded in crossfire and died several days later. Barrel bombs and shells derailed scenes. Out of respect, filming also paused during the frequent passing funerals. At the end of each day, the technicians struggled with the painfully slow Internet connections as they uploaded footage to film editors at the office just across the border here in Gaziantep.

The creators of “Banned in Syria,” a show that parodies all sides in Syria’s civil war, are desperate for their work to succeed as profitable entertainment — and as political satire.