mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-06 03:50:04 +02:00
Libs updates and new version with option to pin videos on channel
This commit is contained in:
parent
e1f2188de0
commit
1beab3b1c0
8565 changed files with 149805 additions and 165674 deletions
12
node_modules/leveldown/iterator.js
generated
vendored
12
node_modules/leveldown/iterator.js
generated
vendored
|
@ -1,3 +1,5 @@
|
|||
'use strict'
|
||||
|
||||
const util = require('util')
|
||||
const AbstractIterator = require('abstract-leveldown').AbstractIterator
|
||||
const binding = require('./binding')
|
||||
|
@ -23,19 +25,17 @@ Iterator.prototype._seek = function (target) {
|
|||
}
|
||||
|
||||
Iterator.prototype._next = function (callback) {
|
||||
var that = this
|
||||
|
||||
if (this.cache && this.cache.length) {
|
||||
process.nextTick(callback, null, this.cache.pop(), this.cache.pop())
|
||||
} else if (this.finished) {
|
||||
process.nextTick(callback)
|
||||
} else {
|
||||
binding.iterator_next(this.context, function (err, array, finished) {
|
||||
binding.iterator_next(this.context, (err, array, finished) => {
|
||||
if (err) return callback(err)
|
||||
|
||||
that.cache = array
|
||||
that.finished = finished
|
||||
that._next(callback)
|
||||
this.cache = array
|
||||
this.finished = finished
|
||||
this._next(callback)
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue