Skip to content

Commit

Permalink
fix autoplayer reference to videoId
Browse files Browse the repository at this point in the history
  • Loading branch information
natumbri committed Jul 10, 2020
1 parent 320fd81 commit b4bd0d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mopidy_youtube/youtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def related_videos(cls, video_id):
set_api_data.append("length")
if "thumbnails" in item["snippet"]:
set_api_data.append("thumbnails")
video = Video.get(item["snippet"]["resourceId"]["videoId"])
video = Video.get(item["id"]["videoId"])
video._set_api_data(set_api_data, item)
relatedvideos.append(video)

Expand Down

0 comments on commit b4bd0d2

Please sign in to comment.