Both services relied on automated piracy programs that scour the internet for content, and store it on servers in the U.S. and Canada before making it available to subscribers. Authorities say they rivaled the libraries of Netflix, Amazon Prime and Hulu and cost copyright owners millions.