diff --git a/vrobbler/apps/scrobbles/models.py b/vrobbler/apps/scrobbles/models.py index d9ab2c3..b213515 100644 --- a/vrobbler/apps/scrobbles/models.py +++ b/vrobbler/apps/scrobbles/models.py @@ -1504,6 +1504,9 @@ class Scrobble(TimeStampedModel): if media.calories: scrobble_data["log"] = FoodLogData(calories=media.calories).asdict + if mtype not in LONG_PLAY_MEDIA.values(): + scrobble_data.pop("long_play_complete", None) + scrobble = cls.create(scrobble_data) if mtype in LONG_PLAY_MEDIA.values(): diff --git a/vrobbler/templates/_longplay_scrobblable_list.html b/vrobbler/templates/_longplay_scrobblable_list.html index 2589376..e6d48fc 100644 --- a/vrobbler/templates/_longplay_scrobblable_list.html +++ b/vrobbler/templates/_longplay_scrobblable_list.html @@ -20,7 +20,7 @@ {{obj}} {% if request.user.is_authenticated %} {{obj.scrobble_count}} - {% if obj.scrobble_set.last.long_play_complete == True %}Yes{% endif %} + {% if obj.scrobble_set.last.long_play_complete == True %}Yes{% else %}No{% endif %} Scrobble Finish {% endif %} diff --git a/vrobbler/templates/books/book_detail.html b/vrobbler/templates/books/book_detail.html index 560da9c..e725321 100644 --- a/vrobbler/templates/books/book_detail.html +++ b/vrobbler/templates/books/book_detail.html @@ -62,7 +62,7 @@ {% for scrobble in scrobbles.all|dictsortreversed:"timestamp" %} {{scrobble.local_timestamp}} - {% if scrobble.long_play_complete == True %}Yes{% endif %} + {% if scrobble.long_play_complete == True %}Yes{% else %}No{% endif %} {% if scrobble.in_progress %}Now reading{% else %}{{scrobble.session_pages_read}}{% endif %} {% for author in scrobble.book.authors.all %}{{author}}{% if not forloop.last %}, {% endif %}{% endfor %} diff --git a/vrobbler/templates/bricksets/brickset_detail.html b/vrobbler/templates/bricksets/brickset_detail.html index 6c3f203..2bdb216 100644 --- a/vrobbler/templates/bricksets/brickset_detail.html +++ b/vrobbler/templates/bricksets/brickset_detail.html @@ -45,7 +45,7 @@ {% for scrobble in scrobbles.all|dictsortreversed:"timestamp" %} {{scrobble.local_timestamp}} - {% if scrobble.long_play_complete == True %}Yes{% endif %} + {% if scrobble.long_play_complete == True %}Yes{% else %}No{% endif %} {% if scrobble.in_progress %}Now reading{% else %}{{scrobble.session_pages_read}}{% endif %} {% endfor %}