Skip to content

Commit

Permalink
Merge branch 'hotfix/v2.5.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
Navino16 committed Sep 20, 2024
2 parents d6eeb3a + dc58e7b commit 3831686
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
6 changes: 3 additions & 3 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit 3831686

Please sign in to comment.