- February 19, 2016: Initial release.
GitHub Gist doesn't send notifications when people leave a comment, so shoot me an e-mail at [email protected]. I'll gladly fix it. Fuck advertising.
| """ | |
| requirements: | |
| - requests | |
| - unicodecsv | |
| - beautifulsoup4 | |
| """ | |
| import re | |
| import functools | |
| from collections import namedtuple | |
| from collections import defaultdict |
GitHub Gist doesn't send notifications when people leave a comment, so shoot me an e-mail at [email protected]. I'll gladly fix it. Fuck advertising.
| // The player | |
| var player = netflix.cadmium.objects.videoPlayer(); | |
| // Metadata about current episode -- ID and url to get frame at a specific time | |
| var episodeId = netflix.cadmium.metadata.getActiveVideo().episodeId; | |
| var imgRoot = netflix.cadmium.metadata.getActiveVideo().progressImageRoot; | |
| // Generates URL of preview image for given timestamp | |
| function getFrame(timestamp) { | |
| var t = Math.floor(timestamp/10000).toString(10); |