#!/usr/bin/env python
# vim:fileencoding=utf-8
from calibre.web.feeds.news import BasicNewsRecipe


class AdvancedUserRecipe1718106336(BasicNewsRecipe):
    title          = 'Game Rant'
    language = 'en'
    __author__ = 'Spicy Poison'
    description = (
            'Game Rant is a Digital Publication run by gamers with articles published for gamers'
            ' with an emphasis on news, reviews, unique features, and interviews.'
            ' Their information aims to tap into the topics and subjects that they, as gamers, are most passionate about.')
    publisher = 'Valnet Publishing Group'
    oldest_article = 7
    max_articles_per_feed = 50
    no_stylesheets = True
    use_embedded_content = False
    ignore_duplicate_articles = {'title', 'url'}
    encoding = 'utf-8'
    masthead_url = 'https://www.valnetinc.com/images/brand/gr-logo-full-colored-dark.svg'
    remove_empty_feeds = True
    auto_cleanup   = True

    feeds          = [
        ('Game News', 'https://gamerant.com/feed/gaming/'),
        #Platforms
        ('Platforms', 'https://gamerant.com/feed/platforms/'),
        ('Playstation', 'https://gamerant.com/feed/tag/playstation/'),
        ('Xbox', 'https://gamerant.com/feed/tag/xbox/'),
        ('Nintendo', 'https://gamerant.com/feed/tag/nintendo/'),
        ('PC Gaming', 'https://gamerant.com/feed/tag/pc/'),
        ('Mobile Gaming', 'https://gamerant.com/feed/tag/mobile/'),
        #Game Rant Originals
        ('Game Rant Originals', 'https://gamerant.com/feed/originals/'),
        ('Editorials', 'https://gamerant.com/feed/editorial/'),
        ('Game Reviews', 'https://gamerant.com/feed/game-reviews/'),
        ('Explainer', 'https://gamerant.com/feed/explainer/'),
        ('Game Rant Advance', 'https://gamerant.com/feed/game-rant-advance/'),

        ('Strategy Guides', 'https://gamerant.com/feed/strategy-guide/'),
        ('Threads', 'https://gamerant.com/feed/threads/'),
        ('Movies & TV', 'https://gamerant.com/feed/movies-tv/'),
        ('Anime', 'https://gamerant.com/feed/anime/'),
        ('Lists', 'https://gamerant.com/feed/lists/'),
    ]
