[Profile] fix sorting podcasts
[mygpo.git] / mygpo / data / tasks.py
blob99ee586a71fc85169b6310ad5c94dba157a4171b
1 from mygpo.celery import celery
2 from mygpo.data.feeddownloader import PodcastUpdater
5 @celery.task
6 def update_podcasts(podcast_urls):
7 """ Task to update a podcast """
8 updater = PodcastUpdater()
9 podcasts = updater.update_queue(podcast_urls)
10 return list(podcasts)