diff --git a/package.json b/package.json index 72c7304..25cad14 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "@semantic-release/github": "^5.4.3", "@types/aws-lambda": "^8.10.27", "@types/debug": "^4.1.4", - "@types/fluent-ffmpeg": "^2.1.9", + "@types/fluent-ffmpeg": "^2.1.13", "@types/fs-extra": "^8.0.0", "@types/jest": "^24.0.13", "@types/jest-image-snapshot": "^2.8.0", diff --git a/src/video.ts b/src/video.ts index f6703b7..538e99b 100644 --- a/src/video.ts +++ b/src/video.ts @@ -77,7 +77,6 @@ export const processVideo = ( videoLogger('Starting to process video'); videoLogger(`Approx. duration of the video - ${song.duration} ms`); - //@ts-ignore const processChain = ffmpeg(image) .inputFPS(30) .loop() @@ -113,7 +112,9 @@ export const getDescription = ( imageData: IUnsplashResponse ) => `${songTitle} -⭐️ DatSongBot brings you another fresh, new music by ${song.user.username} for you to enjoy! +⭐️ DatSongBot brings you another fresh, new music by ${ + song.user.username +} for you to enjoy! Listen to this song on Soundcloud: ▶️${song.permalink_url} @@ -121,7 +122,9 @@ Listen to this song on Soundcloud: Follow ${song.user.username} on Soundcloud: 🔉${song.user.permalink_url} -The background image used in this video is provided by ${imageData.user.name} from Unsplash: +The background image used in this video is provided by ${ + imageData.user.name +} from Unsplash: 🔗Follow ${imageData.user.name} on Unsplash - ${imageData.user.links.html} 📂Download this background - ${imageData.links.html} diff --git a/test/__snapshots__/audio.test.ts.snap b/test/__snapshots__/audio.test.ts.snap index 5204a11..7c71950 100644 --- a/test/__snapshots__/audio.test.ts.snap +++ b/test/__snapshots__/audio.test.ts.snap @@ -11,6 +11,7 @@ Object { "stream_url": "https://api.soundcloud.com/tracks/640194939/stream", "tag_list": "", "title": "Wave He גל", + "uri": "https://api.soundcloud.com/tracks/640194939", "user": Object { "avatar_url": "https://a1.sndcdn.com/images/default_avatar_large.png", "id": 655787799, diff --git a/yarn.lock b/yarn.lock index 612568f..7b9d465 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1091,10 +1091,10 @@ resolved "https://registry.yarnpkg.com/@types/events/-/events-3.0.0.tgz#2862f3f58a9a7f7c3e78d79f130dd4d71c25c2a7" integrity sha512-EaObqwIvayI5a8dCzhFrjKzVwKLxjoG9T6Ppd5CEo07LRKfQ8Yokw54r5+Wq7FaBQ+yXRvQAYPrHwya1/UFt9g== -"@types/fluent-ffmpeg@^2.1.9": - version "2.1.9" - resolved "https://registry.yarnpkg.com/@types/fluent-ffmpeg/-/fluent-ffmpeg-2.1.9.tgz#260e155b14b1c7f9cdccab7e1600c1f74444f25a" - integrity sha512-ASkD4gb8FngbTZe8x4iM5bKWmswHYGSuA5A5sauBroIDA7B7Uu7hrk+W7pEUQLG63fR+Zo2iDpSVWyTeoPuwRA== +"@types/fluent-ffmpeg@^2.1.13": + version "2.1.13" + resolved "https://registry.yarnpkg.com/@types/fluent-ffmpeg/-/fluent-ffmpeg-2.1.13.tgz#bfffbcf298b0980924e9ba9aa471aba234626afb" + integrity sha512-hg87ZQb9WVcNGQHNhrYwWJM0ARNYbQbLGh1c6CfPl55/I+BH5UTpFJAr5aZWYGbl8BFVY82oF5iG4I+Ra3btiQ== dependencies: "@types/node" "*"