From 069f3595b09c1e0b00ef54da96741e8a8c919751 Mon Sep 17 00:00:00 2001 From: Inrixia Date: Wed, 1 May 2024 18:38:50 +1200 Subject: [PATCH] Fix fetchNewVideos not using blogPostsIterable and only returning 20 videos --- .github/workflows/autoTest.yml | 2 +- package.json | 2 +- src/lib/Subscription.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/autoTest.yml b/.github/workflows/autoTest.yml index a54a225..9a2b57e 100644 --- a/.github/workflows/autoTest.yml +++ b/.github/workflows/autoTest.yml @@ -32,7 +32,7 @@ jobs: runs-on: ${{ matrix.runs-on }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup Node.js uses: actions/setup-node@v4 with: diff --git a/package.json b/package.json index bc10701..d4979bd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "floatplane-plex-downloader", - "version": "5.13.2", + "version": "5.14.0", "private": true, "type": "module", "scripts": { diff --git a/src/lib/Subscription.ts b/src/lib/Subscription.ts index b8b71d6..320915e 100644 --- a/src/lib/Subscription.ts +++ b/src/lib/Subscription.ts @@ -134,7 +134,7 @@ export default class Subscription { if (settings.floatplane.videosToSearch === 0) return; let videosSearched = 0; console.log(chalk`Searching for new videos in {yellow ${this.plan}}`); - for await (const blogPost of await fApi.creator.blogPosts(this.creatorId)) { + for await (const blogPost of fApi.creator.blogPostsIterable(this.creatorId)) { for await (const video of this.matchChannel(blogPost)) { yield video; }