Fix bug in finishing scrobbles

This commit is contained in:
2023-03-06 01:03:40 -05:00
parent 3fc716420c
commit 4d5e979a1a
3 changed files with 2 additions and 3 deletions

View File

@ -627,7 +627,7 @@ class Scrobble(TimeStampedModel):
]
)
return
check_scrobble_for_finish(self, force_finish)
check_scrobble_for_finish(self, force_finish=force_finish)
def pause(self) -> None:
if self.is_paused:

View File

@ -369,7 +369,7 @@ def import_audioscrobbler_file(request):
@api_view(["GET"])
def scrobble_finish(request, uuid):
user = request.user
success_url = reverse_lazy("vrobbler-home")
success_url = request.META.get("HTTP_REFERER")
if not user.is_authenticated:
return HttpResponseRedirect(success_url)

View File

@ -36,7 +36,6 @@ def lookup_video_from_imdb(imdb_id: str) -> dict:
except IndexError:
plot = ""
logger.debug(f"Received data from IMDB: {media.__dict__}")
# Build a rough approximation of a Jellyfin data response
data_dict = {
"ItemType": item_type,