如何使用youtube-dl从开始某个数字到上限来下载播放列表?
我试着在代码中使用:
youtube-dl -o '~/Documents/%(playlist)s/%(chapter_number)s - %(chapter)s/%(playlist_index)s - %(title)s.%(ext)s' URL
Run Code Online (Sandbox Code Playgroud)
它停在中间.我想从索引i编号的视频重新启动该过程,而不是从头开始重新开始.
您好,我在搜索解决方案后仍未找到所需的帮助,
我想将2个哈希密码与相同密码的bcrypt进行比较,该怎么办?
例如:
我有两个来自bcrypt中相同密码的哈希密码:
var password = E@Js#07Do=U$
var hash1 = $2a$10$fKAyjaG0pCkisZfRpKsBxursD6QigXQpm1TaPBDZ4KhIZRguYPKHe
var hash2 = $2a$10$mgApOcRIp7RSK3lRIIlQ5e/GjVFbxAFytGAEc0Bo17..r8v2pPR22
// that's not working for me
bcrypt.compare(passwordHash, userPasswordLoginHash, function(err, isMatch) {
if (err) throw err;
if(isMatch){
console.log('correct password!')
}
callback(null, isMatch);
});
Run Code Online (Sandbox Code Playgroud)
我如何使用bcryptjs npm软件包来比较它们,以确定它们是否来自同一密码?