Navino16 / flixpatrol-top10-on-trakt

Get TODAY top10 from flixpatrol and upload them to Trakt
GNU General Public License v3.0
16 stars 4 forks source link

[BUG]: crashing due to non existant link #177

Closed JohnFawkes closed 1 month ago

JohnFawkes commented 1 month ago

Version Number

Latest dev

What branch are you on?

develop

Describe the Bug

A link that doesn't exist causes the script to crash. It appears to only happen in the youtube popular. Its linked to a movie called Maria that diesnt have a trailer from what ive seen

Relevant Platform Definition

Config

{
    "FlixPatrolTop10": [{
            "platform": "hbo",
            "location": "united-states",
            "fallback": false,
            "privacy": "friends",
            "limit": 10,
            "type": "both"
        },
        {
            "platform": "hbo",
            "location": "world",
            "fallback": false,
            "privacy": "friends",
            "limit": 10,
            "type": "both"
        },
        {
            "platform": "hulu",
            "location": "united-states",
            "fallback": false,
            "privacy": "friends",
            "limit": 10,
            "type": "both"
        },
        {
            "platform": "hulu",
            "location": "world",
            "fallback": false,
            "privacy": "friends",
            "limit": 10,
            "type": "both"
        },
        {
            "platform": "netflix",
            "location": "united-states",
            "fallback": false,
            "privacy": "friends",
            "limit": 10,
            "type": "both"
        },
        {
            "platform": "netflix",
            "location": "italy",
            "fallback": false,
            "privacy": "friends",
            "limit": 10,
            "type": "both"
        },
        {
            "platform": "netflix",
            "location": "world",
            "fallback": false,
            "privacy": "friends",
            "limit": 10,
            "type": "both"
        },
        {
            "platform": "disney",
            "location": "united-states",
            "fallback": false,
            "privacy": "friends",
            "limit": 10,
            "type": "both"
        },
        {
            "platform": "disney",
            "location": "italy",
            "fallback": false,
            "privacy": "friends",
            "limit": 10,
            "type": "both"
        },
        {
            "platform": "disney",
            "location": "world",
            "fallback": false,
            "privacy": "friends",
            "limit": 10,
            "type": "both"
        },
        {
            "platform": "amazon-prime",
            "location": "united-states",
            "fallback": false,
            "privacy": "friends",
            "limit": 10,
            "type": "both"
        },
        {
            "platform": "amazon-prime",
            "location": "italy",
            "fallback": false,
            "privacy": "friends",
            "limit": 10,
            "type": "both"
        },
        {
            "platform": "amazon-prime",
            "location": "world",
            "fallback": false,
            "privacy": "friends",
            "limit": 10,
            "type": "both"
        },
        {
            "platform": "apple-tv",
            "location": "world",
            "fallback": false,
            "privacy": "friends",
            "limit": 10,
            "type": "both"
        },
        {
            "platform": "apple-tv",
            "location": "united-states",
            "fallback": false,
            "privacy": "friends",
            "limit": 10,
            "type": "both"
        },
        {
            "platform": "apple-tv",
            "location": "italy",
            "fallback": false,
            "privacy": "friends",
            "limit": 10,
            "type": "both"
        },
        {
            "platform": "paramount-plus",
            "location": "united-states",
            "fallback": false,
            "privacy": "friends",
            "limit": 10,
            "type": "both"
        },
        {
            "platform": "paramount-plus",
            "location": "italy",
            "fallback": false,
            "privacy": "friends",
            "limit": 10,
            "type": "both"
        },
        {
            "platform": "paramount-plus",
            "location": "world",
            "fallback": false,
            "privacy": "friends",
            "limit": 10,
            "type": "both"
        }
    ],
    "FlixPatrolPopular": [{
            "platform": "movie-db",
            "privacy": "private",
            "limit": 100,
            "type": "both"
        },
        {
            "platform": "facebook",
            "privacy": "private",
            "limit": 100,
            "type": "both"
        },
        {
            "platform": "twitter",
            "privacy": "private",
            "limit": 100,
            "type": "both"
        },
        {
            "platform": "twitter-trends",
            "privacy": "private",
            "limit": 100,
            "type": "both"
        },
        {
            "platform": "instagram",
            "privacy": "private",
            "limit": 100,
            "type": "both"
        },
        {
            "platform": "instagram-trends",
            "privacy": "private",
            "limit": 100,
            "type": "both"
        },
        {
            "platform": "imdb",
            "privacy": "private",
            "limit": 100,
            "type": "both"
        },
        {
            "platform": "letterboxd",
            "privacy": "private",
            "limit": 100,
            "type": "both"
        },
        {
            "platform": "rotten-tomatoes",
            "privacy": "private",
            "limit": 100,
            "type": "both"
        },
        {
            "platform": "tmdb",
            "privacy": "private",
            "limit": 100,
            "type": "both"
        },
        {
            "platform": "trakt",
            "privacy": "private",
            "limit": 100,
            "type": "both"
        },
        {
            "platform": "reddit",
            "privacy": "private",
            "limit": 100,
            "type": "both"
        }
    ],
    "FlixPatrolMostWatched": [{
        "enabled": true,
        "privacy": "public",
        "year": 2023,
        "limit": 50,
        "type": "both"
    }],
    "Trakt": {
        "saveFile": "./config/.trakt",
        "clientId": "REDACTED",
        "clientSecret": "REDACTED"
    },
    "Cache": {
        "enabled": true,
        "savePath": "./config/.cache",
        "ttl": 604800
    }
}


### Logs

https://gist.github.com/JohnFawkes/7c98970a8242c635075247cc1cde6305
Navino16 commented 1 month ago

Should be fixed, please re-open issue if not