Fix bug in finishing scrobbles
This commit is contained in:
@ -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:
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user