I hereby claim:
- I am mrmamen on github.
- I am mrmamen (https://keybase.io/mrmamen) on keybase.
- I have a public key ASCN7wi5YBpPbMl46GLTRJbhGYFcSq4vB7IgoadOCVcttwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
flashScrubber: function() { | |
var player = document.getElementById("flashPlayer"); | |
if (player) { | |
var progress = player["JSgetCurrentPosition"]; | |
var duration = player["JSgetDuration"]; | |
if (progress && duration){ | |
var newProgress = parseFloat(parseFloat(progress()/duration()*100).toFixed(2)); | |
if (newProgress > 0) { | |
this.progress = newProgress; | |
} |
ItemParser.parse = function parse(callback) { | |
var item; | |
var type = document.querySelector("meta[name=type]").getAttribute("content") == 'episode' ? 'show' : 'movie'; | |
var mainTitle = document.querySelector("meta[name=title]").getAttribute("content"); | |
if (type === 'show') { | |
var uri = document.querySelector("li.episode-item.active a").getAttribute("href"); | |
if (uri.split("/")[4].substring(0, 6) !== "sesong") { | |
return; | |
} |