Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ytdl-core

Package Overview
Dependencies
Maintainers
1
Versions
186
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ytdl-core - npm Package Compare versions

Comparing version 0.12.0 to 0.12.1

10

lib/info.js

@@ -56,9 +56,9 @@ var urllib = require('url');

// Check if this video exists.
// Check if there are any errors with this video page.
var unavailableMsg = util.between(body, '<div id="player-unavailable"', '>');
if (!/\bhid\b/.test(util.between(unavailableMsg, 'class="', '"'))) {
unavailableMsg = util.between(body, '<h1 id="unavailable-message" class="message">', '</h1>').trim();
// Getting around age restricted videos.
if (unavailableMsg !== 'Content Warning') {
return callback(new Error(unavailableMsg));
// Ignore error about age restriction.
if (body.indexOf('<div id="watch7-player-age-gate-content"') < 0) {
return callback(new Error(util.between(body,
'<h1 id="unavailable-message" class="message">', '</h1>').trim()));
}

@@ -65,0 +65,0 @@ }

@@ -9,3 +9,3 @@ {

],
"version": "0.12.0",
"version": "0.12.1",
"repository": {

@@ -12,0 +12,0 @@ "type": "git",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc