diff --git a/README.md b/README.md index 908d3fe..db6cdcb 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ To get started with Flixpatrol Top 10 on Trakt for Linux / macOS, follow these s ```` 2. Download the [latest release](https://github.com/Navino16/flixpatrol-top10-on-trakt/releases/latest) corresponding to the platform where your want to run this tool ````shell - wget https://github.com/Navino16/flixpatrol-top10-on-trakt/releases/download/v2.5.1/flixpatrol-top10-linux + wget https://github.com/Navino16/flixpatrol-top10-on-trakt/releases/download/v2.5.2/flixpatrol-top10-linux ```` 3. Make the downloaded binary executable ````shell diff --git a/package-lock.json b/package-lock.json index 3a0fd86..3d516a4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "flixpatrol-top10", - "version": "2.5.1", + "version": "2.5.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "flixpatrol-top10", - "version": "2.5.1", + "version": "2.5.2", "license": "GPL-3.0", "dependencies": { "axios": "^1.7.7", diff --git a/package.json b/package.json index f5b72fb..c353cf5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "flixpatrol-top10", - "version": "2.5.1", + "version": "2.5.2", "description": "Get top10 list from flixpatrol and upload them to trakt", "main": "app.js", "scripts": { diff --git a/src/app.ts b/src/app.ts index 0470af0..96cd5c2 100644 --- a/src/app.ts +++ b/src/app.ts @@ -89,10 +89,10 @@ trakt.connect().then(async () => { if (mostWatched.name) { listName = mostWatched.name.toLowerCase().replace(/\s+/g, '-'); } else { - listName = 'most-watched-netflix'; + listName = `most-watched-${mostWatched.year}-netflix`; listName = mostWatched.original !== undefined ? `${listName}-original` : listName; - listName = mostWatched.premiere !== undefined ? `${listName}-${mostWatched.premiere}` : listName; - listName = mostWatched.country !== undefined ? `${listName}-${mostWatched.country}` : listName; + listName = mostWatched.premiere !== undefined ? `${listName}-${mostWatched.premiere}-premiere` : listName; + listName = mostWatched.country !== undefined ? `${listName}-from-${mostWatched.country}` : listName; } if (mostWatched.type === 'movies' || mostWatched.type === 'both') {