fix catalogs image upload instance

This commit is contained in:
TheBeastLT 2024-05-27 19:41:17 +03:00
parent 0a1791892b
commit e8b3b6377a
2 changed files with 7 additions and 7 deletions

View file

@ -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

View file

@ -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);