Beispiel #1
0
def sync_series(request):
    for show in Show.objects.all():
        tvdb.add_show(show.tvdbid)
    return HttpResponseRedirect(reverse('app.views.index'))
Beispiel #2
0
def add_show(request, id):
    show = tvdb.add_show(id)
    return HttpResponseRedirect(reverse('app.views.show', args=[show.id]))