From 3147d98760010fa7c17c07697b7ee36d7c4c8643 Mon Sep 17 00:00:00 2001 From: AtariTom Date: Sun, 30 Oct 2022 18:30:26 -0400 Subject: [PATCH] Type fix and workflow update --- .github/workflows/main.yml | 1 - play-dl/YouTube/classes/Video.ts | 12 ++++-------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4d6194f..d1b7e31 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,7 +2,6 @@ name: Publish NPM package + Docs on: release: types: [created] - workflow_dispatch: jobs: publish_npm: runs-on: ubuntu-latest diff --git a/play-dl/YouTube/classes/Video.ts b/play-dl/YouTube/classes/Video.ts index 2d6c3da..dcbfe07 100644 --- a/play-dl/YouTube/classes/Video.ts +++ b/play-dl/YouTube/classes/Video.ts @@ -7,16 +7,12 @@ import { YouTubeThumbnail } from './Thumbnail'; * The property names change depending on your region's language. */ interface VideoMusic { - song?: string | MusicEntry; - artist?: string | MusicEntry; + song?: string; + url?: string | null; + artist?: string; album?: string; writers?: string; - license?: string; -} - -interface MusicEntry { - text?: string; - url?: string; + licenses?: string; } interface VideoOptions {