Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
9 changes: 6 additions & 3 deletions src/video.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -113,15 +112,19 @@ 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}

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}

Expand Down
1 change: 1 addition & 0 deletions test/__snapshots__/audio.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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" "*"

Expand Down