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

@qodestack/dl-yt-playlist

Package Overview
Dependencies
Maintainers
1
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@qodestack/dl-yt-playlist - npm Package Compare versions

Comparing version 6.0.2 to 6.1.0

3

package.json

@@ -7,3 +7,3 @@ {

"types": "./dist/main.d.ts",
"version": "6.0.2",
"version": "6.1.0",
"publishConfig": {

@@ -36,2 +36,3 @@ "access": "public"

"@googleapis/youtube": "^14.0.0",
"@qodestack/utils": "^1.1.0",
"cli-progress": "^3.12.0",

@@ -38,0 +39,0 @@ "sanitize-filename": "^1.6.3",

@@ -15,2 +15,3 @@ import {$} from 'bun'

} from './schemas'
import {log, emptyLog} from '@qodestack/utils'

@@ -243,3 +244,3 @@ export type Video = {

}): Promise<Results> {
const log = silent ? () => {} : console.log
const logger = silent ? emptyLog : log
const processStart = performance.now()

@@ -267,3 +268,3 @@

log('\n👉 Checking system dependencies...')
logger.text('Checking system dependencies...')

@@ -308,3 +309,3 @@ const ytDlpPath = Bun.which('yt-dlp')

log('✅ `yt-dlp` and `ffmpeg` are present!')
logger.text('`yt-dlp` and `ffmpeg` are present!')

@@ -327,4 +328,4 @@ /**

const startFetchMetadata = performance.now()
log(
`\n👉 Getting partial video metadata for ${
logger.text(
`Getting partial video metadata for ${
mostRecentItemsCount || 'all'

@@ -487,4 +488,4 @@ } items...`

log(
`👉 Getting remaining video metadata for ${pluralize(
logger.text(
`Getting remaining video metadata for ${pluralize(
videoIdsToFetch.length,

@@ -624,3 +625,3 @@ 'item'

const fetchMetadataTime = sanitizeTime(performance.now() - startFetchMetadata)
log(`✅ Video metadata received! [${fetchMetadataTime}]`)
logger.text(`Video metadata received! [${fetchMetadataTime}]`)

@@ -905,4 +906,4 @@ /**

if (downloadPromiseFxns.length) {
log(
`\n👉 ${downloadVerb} ${pluralize(
logger.text(
`${downloadVerb} ${pluralize(
downloadPromiseFxns.length,

@@ -917,3 +918,3 @@ 'playlist item'

} else if (downloadType !== 'none') {
log('\n✅ All videos accounted for, nothing to download!')
logger.text('All videos accounted for, nothing to download!')
}

@@ -968,3 +969,5 @@

log(`${icon} ${downloadVerb} complete!${errorMessage} [${processingTime}]`)
logger[errorMessage ? 'warning' : 'text'](
`${icon} ${downloadVerb} complete!${errorMessage} [${processingTime}]`
)
}

@@ -1028,3 +1031,3 @@

log(`\n👉 Downloading ${pluralize(thumbnailsLength, 'thumbnail')}...`)
logger.text(`Downloading ${pluralize(thumbnailsLength, 'thumbnail')}...`)
if (!silent) {

@@ -1072,3 +1075,3 @@ thumbnailProgressBar.start(thumbnailsLength, 0)

log(
logger[errorMessage ? 'warning' : 'text'](
`${icon} Thumbnails downloaded!${errorMessage} [${sanitizeTime(

@@ -1079,3 +1082,3 @@ performance.now() - startThumbnails

} else {
log('\n✅ All thumbnails accounted for, nothing to download!')
logger.text('All thumbnails accounted for, nothing to download!')
}

@@ -1099,3 +1102,3 @@ }

if (shouldWriteMetadata) {
log('\n👉 Updating metadata.json...')
logger.text('Updating metadata.json...')

@@ -1236,4 +1239,4 @@ let metadataItemsUpdated = 0

log(
`✅ Updated ${pluralize(
logger.text(
`Updated ${pluralize(
metadataItemsUpdated,

@@ -1251,11 +1254,11 @@ 'metadata item'

log(`❌ Unable to write file: ${metadataJsonPath}`)
logger.error(`Unable to write file: ${metadataJsonPath}`)
}
} else {
log('✅ metadata.json already up to date!')
logger.text('metadata.json already up to date!')
}
}
log(
`\n🚀 Process complete! [${sanitizeTime(performance.now() - processStart)}]`
logger.success(
`Process complete! [${sanitizeTime(performance.now() - processStart)}]`
)

@@ -1262,0 +1265,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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