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
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
name: "Create Captions",
description: "Export your completed transcripts in SRT (srt) or VTT (vtt) format, which can be used for subtitles and closed captions in videos. [See the documentation](https://www.assemblyai.com/docs/API%20reference/transcript)",
key: "assemblyai-create-captions",
version: "0.0.1",
version: "0.0.2",
type: "action",
props: {
assemblyai,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
name: "Get Transcription",
description: "Fetches a specific transcribed result from the AssemblyAI API. [See the documentation](https://www.assemblyai.com/docs/API%20reference/transcript)",
key: "assemblyai-get-transcription",
version: "0.0.3",
version: "0.0.4",
type: "action",
props: {
assemblyai,
Expand Down
9 changes: 8 additions & 1 deletion components/assemblyai/assemblyai.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,19 @@ export default {
};
let prevUrl;
const results = [];
const afterId = args.params?.after_id;

do {
const {
transcripts, page_details: pageDetails,
} = await this.listTranscripts(config);
results.push(...transcripts);
for (const transcript of transcripts) {
if (transcript.id === afterId) {
return results;
}
results.push(transcript);
}
config.params.after_id = undefined;
prevUrl = pageDetails.prev_url;
config.url = prevUrl;
} while (prevUrl);
Expand Down
4 changes: 2 additions & 2 deletions components/assemblyai/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/assemblyai",
"version": "0.2.1",
"version": "0.2.2",
"description": "Pipedream AssemblyAI Components",
"main": "assemblyai.app.mjs",
"keywords": [
Expand All @@ -13,6 +13,6 @@
"access": "public"
},
"dependencies": {
"@pipedream/platform": "^1.5.1"
"@pipedream/platform": "^3.1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
name: "New Transcription Completed",
description: "Emit new event when a transcribed audio file from AssemblyAI is ready. [See the documentation](https://www.assemblyai.com/docs/API%20reference/transcript)",
key: "assemblyai-new-transcription-completed",
version: "0.0.1",
version: "0.0.2",
type: "source",
dedupe: "unique",
props: {
Expand Down
18 changes: 8 additions & 10 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading