-i - ignore errors
-c - continue
-t - use video title as file name
--extract-audio - extract audio track
| function curry( arg ) { | |
| var fn = this; | |
| function curried( ...args ) { | |
| return fn.apply( this, [arg, ...args] ); | |
| } | |
| curried.curry = curry; | |
| return curried; | |
| } |
| function keepTrying(otherArgs, promise) { | |
| promise = promise||new Promise(); | |
| // try doing the important thing | |
| if(success) { | |
| promise.resolve(result); | |
| } else { | |
| setTimeout(function() { | |
| keepTrying(otherArgs, promise); |
| { | |
| "ABNA":{ | |
| "BIC":"ABNANL2A", | |
| "bank_name":"ABN AMRO BANK N.V" | |
| }, | |
| "AEGO":{ | |
| "BIC":"AEGONL2U", | |
| "bank_name":"AEGON BANK NV" | |
| }, | |
| "ANDL":{ |
| [ | |
| "Aa en Hunze", | |
| "Aalburg", | |
| "Aalsmeer", | |
| "Aalten", | |
| "Abcoude", | |
| "Achtkarspelen", | |
| "Alblasserdam", | |
| "Albrandswaard", | |
| "Alkmaar", |
| (function () { | |
| if (!Object.defineProperty) return; | |
| Object.defineProperty(Function.prototype, 'initializing', { | |
| value: false, | |
| writable: true | |
| }); | |
| Object.defineProperty(Function.prototype, '$super', { | |
| value: function () { |
| var dgram = require('dgram'); | |
| var socket = dgram.createSocket('udp4'); | |
| var testMessage = "[hello world] pid: " + process.pid; | |
| var broadcastAddress = '255.255.255.255'; | |
| var broadcastPort = 5555; | |
| socket.setBroadcast(true); | |
| socket.bind(broadcastPort, '0.0.0.0'); |
| function NotImplementedError(message) { | |
| this.message = message || ""; | |
| } | |
| NotImplementedError.prototype = Object.create(Error.prototype, { | |
| constructor: { value: NotImplementedError }, | |
| name: { value: 'NotImplementedError' }, | |
| stack: { get: function() { | |
| return new Error().stack; | |
| }}, | |
| }); |
| function toJSON(node) { | |
| node = node || this; | |
| var obj = { | |
| nodeType: node.nodeType | |
| }; | |
| if (node.tagName) { | |
| obj.tagName = node.tagName.toLowerCase(); | |
| } else | |
| if (node.nodeName) { | |
| obj.nodeName = node.nodeName; |
| var net = require('net'); | |
| var socket = new net.Socket(); | |
| socket.connect(5000, "127.0.0.1"); | |
| var fs = require('fs'); | |
| var path = require('path'); | |
| var packets = 0; | |
| var buffer = new Buffer(0); | |
| socket.on('data', function(chunk){ | |
| packets++; |