Original: It worked out for both parties involved, however, as the show did better in the ratings than it had on Thursdays, while UPN received much better ratings on Fridays than it did before, with its movie night.
Simplified: However, it worked out for both parties involved, as the show did better in the ratings than it had on Thursdays, while UPN got much better ratings on Fridays than it did before, with its movie night.