Skip to content

Commit 0d1ea48

Browse files
authored
Fix crash in movie history pushing
Fixes #338
1 parent c7ca533 commit 0d1ea48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

trakt_scrobbler/trakt_interface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def prepare_history_data(watched_at, media_info):
133133
ids = get_ids(media_info)
134134
if ids is None:
135135
return
136-
if type == 'movie':
136+
if media_info['type'] == 'movie':
137137
return {'movies': [{'ids': ids, 'watched_at': watched_at}]}
138138
else: # TODO: Group data by show instead of sending episode-wise
139139
return {'shows': [

0 commit comments

Comments
 (0)