Skip to content

Commit

Permalink
Music compilation duration
Browse files Browse the repository at this point in the history
  • Loading branch information
ImprovedTube authored Jun 21, 2024
1 parent 0601bf6 commit 99e0134
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js&css/web-accessible/www.youtube.com/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,10 @@ console.log("genre: " + DATA.genre + "//title: " + DATA.title + "//keywords: "
if ( ( DATA.genre === 'Music' && (!notMusicRegexMatch || songDurationType === 'veryCommon'))
|| ( musicRegexMatch && !notMusicRegexMatch && (typeof songDurationType !== 'undefined'
|| (/album|Álbum||||البوم||альбом||mixtape|concert|playlist|\b(live|cd|vinyl|lp|ep|compilation|collection|symphony|suite|medley)\b/i.test(DATA.title + " " + keywords)
&& 1150 <= DATA.lengthSeconds && DATA.lengthSeconds <= 5000)) )
&& 1000 <= DATA.lengthSeconds )) ) // && 1150 <= DATA.lengthSeconds <= 5000
|| ( DATA.genre === 'Music' && musicRegexMatch && (typeof songDurationType !== 'undefined'
|| (/album|Álbum||||البوم||альбом||mixtape|concert|playlist|\b(live|cd|vinyl|lp|ep|compilation|collection|symphony|suite|medley)\b/i.test(DATA.title + " " + keywords)
&& 1150 <= DATA.lengthSeconds && DATA.lengthSeconds <= 5000)) )
&& 1000 <= DATA.lengthSeconds )) ) // && DATA.lengthSeconds <= 5000
|| (amountOfSongs && testSongDuration(DATA.lengthSeconds, amountOfSongs ) !== 'undefined')
// || location.href.indexOf('music.') !== -1 // (=currently we are only running on www.youtube.com anyways)
) { player.setPlaybackRate(1); video.playbackRate = 1; console.log ("...,thus must be music?"); }
Expand Down

0 comments on commit 99e0134

Please sign in to comment.