File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " __MSG_appName__" ,
33 "short_name" : " __MSG_appShortName__" ,
4- "version" : " 2.3 .0" ,
4+ "version" : " 2.4 .0" ,
55 "manifest_version" : 2 ,
66 "description" : " __MSG_appDescription__" ,
77 "icons" : {
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ ItemParser.isEpisodeOrMovie = function () {
1010} ;
1111
1212ItemParser . isReady = function checkPage ( ) {
13- return document . querySelector ( "a.tv-series-episode-list-item--active " ) !== null || document . querySelector ( "h1.tv-program-header__title" ) !== null ;
13+ return document . querySelector ( "a.tv-series-episode-list-item--selected " ) !== null || document . querySelector ( "h1.tv-program-header__title" ) !== null ;
1414} ;
1515
1616ItemParser . parse = function parse ( callback ) {
@@ -26,7 +26,7 @@ ItemParser.parse = function parse(callback) {
2626 } else if ( seriesTitleElement ) {
2727 type = "show" ;
2828 mainTitle = seriesTitleElement . textContent ;
29- const uri = document . querySelector ( "a.tv-series-episode-list-item--active " ) . getAttribute ( "href" ) ;
29+ const uri = document . querySelector ( "a.tv-series-episode-list-item--selected " ) . getAttribute ( "href" ) ;
3030 if ( ! uri . split ( '/' ) [ 3 ] || uri . split ( '/' ) [ 3 ] !== 'sesong' ) {
3131 Rollbar . error ( "Unexpected URL-format" , uri ) ;
3232 return ;
Original file line number Diff line number Diff line change @@ -79,9 +79,9 @@ WatchEvents.prototype = {
7979 } ,
8080
8181 isPlaying : function ( ) {
82- const playIcon = document . getElementsByClassName ( "ludo-playicon" ) [ 0 ] ;
83- if ( playIcon ) {
84- return ( / l u d o - p l a y i c o n - - p a u s e / . test ( playIcon . className ) ) ;
82+ const playIcons = document . getElementsByClassName ( "ludo-playicon" ) ;
83+ if ( playIcons . length ) {
84+ return ( / l u d o - p l a y i c o n - - p a u s e / . test ( playIcons [ playIcons . length - 1 ] . className ) ) ;
8585 } ;
8686 return false ;
8787 }
You can’t perform that action at this time.
0 commit comments