(AP) -- A German court has ruled that online video platform YouTube must install filters to prevent users from uploading some music videos whose rights are held by a music-royalties collecting body.

German news agency dapd reported that the Hamburg state court on Friday mostly sided with Germany's GEMA, which represents about 60,000 German writers and musicians.

GEMA took Inc.'s unit to court over 12 temporarily uploaded for which no royalties were paid.

YouTube has maintained that it bears no legal responsibility for the uploaded content - saying it checks and sometimes blocks content when users alert the firm about alleged violations of laws.

It was not immediately clear whether the ruling will be appealed.