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

better-youtube-api

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

better-youtube-api - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

src/util/desktop.ini

6

out/entities/Video.js

@@ -23,5 +23,5 @@ "use strict";

const video = data;
this._length = video.contentDetails.duration;
this.minutes = parseInt(this._length.substring(this._length.indexOf('PT') + 2, this._length.indexOf('M')));
this.seconds = parseInt(this._length.substring(this._length.indexOf('M') + 1, this._length.length - 1));
this._length = new Date(video.contentDetails.duration);
this.minutes = this._length.getMinutes() + (this._length.getHours() * 60);
this.seconds = this._length.getSeconds();
this.likes = Number(video.statistics.likeCount);

@@ -28,0 +28,0 @@ this.dislikes = Number(video.statistics.dislikeCount);

{
"name": "better-youtube-api",
"version": "0.3.0",
"version": "0.3.1",
"description": "A very easy to use promise-based Youtube Data v3 API.",

@@ -5,0 +5,0 @@ "main": "out/index.js",

@@ -60,3 +60,3 @@ import { YouTube } from '..'

private _length: string
private _length: Date

@@ -122,5 +122,5 @@ /**

this._length = video.contentDetails.duration
this.minutes = parseInt(this._length.substring(this._length.indexOf('PT') + 2, this._length.indexOf('M')))
this.seconds = parseInt(this._length.substring(this._length.indexOf('M') + 1, this._length.length - 1))
this._length = new Date(video.contentDetails.duration)
this.minutes = this._length.getMinutes() + (this._length.getHours() * 60)
this.seconds = this._length.getSeconds()

@@ -127,0 +127,0 @@ this.likes = Number(video.statistics.likeCount)

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