Skip to content

Commit dc9474f

Browse files
xiiotk
authored and
tk
committed
Fixed youtube scroblling for non-english browsers language
fix for cgravolet#111
1 parent b9b077b commit dc9474f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/plugins/youtube.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ function cleanseTrack(artist, title) {
8080
title: title,
8181
elapsed: Utils.calculateDuration($(".ytp-time-current").text()),
8282
duration: Utils.calculateDuration($(".ytp-time-duration").text()),
83-
stopped: $(".ytp-play-button").attr("aria-label").toLowerCase() === "play"
83+
stopped: $(".html5-video-player").hasClass("ended-mode")
8484
};
8585
}
8686

0 commit comments

Comments
 (0)