The state court in Schleswig ruled on Thursday that there was no reason to believe Catalonia's former leader Carles Puigdemont risked persecution in Spain. He has been ordered to stay in Germany while extradition proceedings continue.
He was arrested in northern Germany in late March on the way back from a trip to Finland.
This afternoon, the German court said his extradition was possible on the basis of the corruption charges - but not on the more serious charge of rebellion.
Puigdemont can leave prison as soon as he posts the bail, a court spokeswoman said on Thursday.
The Spanish government is continuing to crack down on politicians and other officials who played a role in organizing and facilitating last year's Catalan independence referendum, which was deemed illegal in September 2017 by Spain's Constitutional Court.
German prosecutors argued earlier this week that the main charge of rebellion is equivalent to Germany's criminal offense of treason.
However, the court disagreed Thursday, saying Puigdemont can't be extradited for rebellion.
Catalan separatist leader set free, pending a decision on extradition.
"The government is sure that Spain's justice system will take the appropriate measures given these new circumstances, to ensure respect for the laws of our country", the source added.
Lamela said Trapero and the three others carried out a "premeditated strategy that was perfectly coordinated" to help achieve secession during the lead-up to a banned independence referendum in Catalonia on October 1 and the day of the vote itself.
Two more members of the regional police and an official with the regional interior department were also indicted. But he then came under severe pressure when Spanish national authorities asked his regional police force to help prevent the October 1 referendum, which triggered Spain's worst political crisis in decades.