diff --git a/.github/workflows/deploy_catalogs.yml b/.github/workflows/deploy_catalogs.yml index d18a8a2..3d7aedd 100644 --- a/.github/workflows/deploy_catalogs.yml +++ b/.github/workflows/deploy_catalogs.yml @@ -21,10 +21,10 @@ jobs: - name: Upload Docker image uses: appleboy/scp-action@master with: - host: ${{ secrets.SCRAPER_SSH_HOST }} - username: ${{ secrets.SCRAPER_SSH_USERNAME }} - port: ${{ secrets.SCRAPER_SSH_PORT }} - key: ${{ secrets.SCRAPER_SSH_KEY }} + host: ${{ secrets.SSH_HOST_3 }} + username: ${{ secrets.SSH_USERNAME }} + port: ${{ secrets.SSH_PORT }} + key: ${{ secrets.SSH_KEY_3 }} source: torrentio_catalogs_latest.tar target: /tmp/docker overwrite: true @@ -40,5 +40,5 @@ jobs: docker load -i /tmp/docker/torrentio_catalogs_latest.tar docker stop torrentio-catalogs docker rm torrentio-catalogs - docker run -p 80:7000 -d --name torrentio-catalogs --restart always -e MONGODB_URI=${{ secrets.SCRAPER_MONGODB_URI }} -e DATABASE_URI=${{ secrets.DATABASE_URI }} torrentio-catalogs:latest + docker run -p 9000:7000 -d --name torrentio-catalogs --restart always -e MONGODB_URI=${{ secrets.SCRAPER_MONGODB_URI }} -e DATABASE_URI=${{ secrets.DATABASE_URI }} torrentio-catalogs:latest docker image prune -f diff --git a/catalogs/addon.js b/catalogs/addon.js index a07e60e..4ea23aa 100644 --- a/catalogs/addon.js +++ b/catalogs/addon.js @@ -28,9 +28,9 @@ builder.defineCatalogHandler((args) => { const genre = args.extra.genre || 'default'; const catalog = manifest.catalogs.find(c => c.id === args.id); const providers = defaultProviders; - console.log(`Incoming catalog ${args.id} request with genre=${genre} and skip=${offset}`) + console.log(`Incoming catalog ${args.id} request with genre=${genre} and skip=${offset}`); if (!catalog) { - return Promise.reject(`No catalog found for with id: ${args.id}`) + return Promise.reject(`No catalog found for with id: ${args.id}`); } const cacheKey = createCacheKey(catalog.id, providers, genre, offset);