Inrixia / Floatplane-Downloader

Project for automatically organizing and downloading Floatplane videos for plex.
https://monitor.spookelton.net/public-dashboards/db0aec66747b4950b01b128916eb737e
GNU Affero General Public License v3.0
157 stars 41 forks source link

Update to Docker Container Broke #157

Closed ThomasHineXYZ closed 1 year ago

ThomasHineXYZ commented 1 year ago

Today I pulled the latest push to the latest Docker branch, and my container just repeatedly dies and restarts with this error.

Node.js v19.8.1
(node:8) ExperimentalWarning: Import assertions are not a stable feature of the JavaScript language. Avoid relying on their current behavior and syntax as those might change in a future version of Node.js.
(Use `node --trace-warnings ...` to show where the warning was created)
(node:8) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
file:///fp/dist/subscriptionFetching.js:19
            const channelsToAdd = defaultSubChannels[subscription.creator].filter((channel) => sub.channels.findIndex((chan) => chan.title === channel.title) === -1);
                                                                                                            ^

TypeError: sub.channels.findIndex is not a function
    at file:///fp/dist/subscriptionFetching.js:19:109
    at Array.filter (<anonymous>)
    at file:///fp/dist/subscriptionFetching.js:19:76
    at Array.map (<anonymous>)
    at fetchSubscriptions (file:///fp/dist/subscriptionFetching.js:6:56)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async file:///fp/dist/float.js:81:27

Node.js v19.8.1
> Fetching user subscriptions... > Fetching user subscriptions... > Fetching user subscriptions... > Fetching user subscriptions... > Fetching user subscriptions...

It was working correctly before the update. Well.. it was working before the Edge servers were having issues, but I know that was a Floatplane server thing and not this tool.

Inrixia commented 1 year ago

Have you reset your settings.json? The latest release has breaking changes that requires a new config be generated.

ThomasHineXYZ commented 1 year ago

That might be it then. I didn't think about that. I mass-updated all of my containers on my server.

Inrixia commented 1 year ago

Yea usually you can just update no issues but the latest update requires a config reset as the format changed to support the new floatplane channels.

Technically you can edit your existing config to work. But it's faster to regenerate it and then copy over your old settings.

ThomasHineXYZ commented 1 year ago

Looks like that fixed it. All I really needed to add was my Plex server info.

Thank you for the help.