refactor retrieval of devices
[mygpo.git] / mygpo / data / tasks.py
blobedd62ea44fb782bd3f4413e5b145ac20018db528
1 from mygpo.cel 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)