repo.or.cz
/
mygpo.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
refactor retrieval of devices
[mygpo.git]
/
mygpo
/
data
/
tasks.py
blob
edd62ea44fb782bd3f4413e5b145ac20018db528
1
from
mygpo
.
cel
import
celery
2
from
mygpo
.
data
.
feeddownloader
import
PodcastUpdater
3
4
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
)