Exemple #1
0
def get_choices():
    shows = Show.get_all_ordered()
    return [(str(show.idnr), {
        "name": show.ordered_name,
        "new": show.is_new,
        "tvrage_id": show.tvrage_id
    }) for show in shows]
Exemple #2
0
def get_choices():
    shows = Show.get_all_ordered()
    return [(str(show.idnr),
            {"name": show.ordered_name, "new": show.is_new,
            "tvrage_id": show.tvrage_id}) for show in shows]
Exemple #3
0
def update(request):
    shows = Show.get_all_ordered()
    for show in shows:
        show.add_update_task()
    Episode.add_clear_cache_task("series")
    return HttpResponse("Done: %d" % (len(shows)))
Exemple #4
0
def get_choices():
    shows = Show.get_all_ordered()
    return [(str(show.idnr), "%s%s" % (show.ordered_name, int(show.is_new)), show.tvrage_id) for show in shows]
Exemple #5
0
def update(request):
    shows = Show.get_all_ordered()
    for show in shows:
        show.add_update_task()
    Episode.add_clear_cache_task("series")
    return HttpResponse("Done: %d" % (len(shows)))