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


class AdvancedUserRecipe1718387215(BasicNewsRecipe):
    title = 'Pocket-lint'
    language = 'en'
    __author__ = 'Spicy Poison'
    description = 'Pocket-lint have been geeking out over the intersection of devices, lifestyle hardware, and entertainment news.'
    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/pl-logo-full-colored-dark.svg'
    remove_empty_feeds = True
    auto_cleanup = True

    feeds = [
        # Segments
        ('Devices', 'https://www.pocket-lint.com/feed/devices-segment/'),
        ('Entertainment', 'https://www.pocket-lint.com/feed/entertainment-segment/'),
        ('Lifestyle', 'https://www.pocket-lint.com/feed/lifestyle-segment/'),
        ('Audio Video', 'https://www.pocket-lint.com/feed/audio-video-segment/'),
        # Segments
        ('News', 'https://www.pocket-lint.com/feed/news/'),
        ('Features', 'https://www.pocket-lint.com/feed/features/'),
        ('Editorials', 'https://www.pocket-lint.com/feed/editorials/'),
        ('Interviews', 'https://www.pocket-lint.com/feed/interviews/'),
        ('Lists', 'https://www.pocket-lint.com/feed/lists/'),
        ('Guides', 'https://www.pocket-lint.com/feed/guides/'),
        ('Hubs', 'https://www.pocket-lint.com/feed/hubs/'),
        # Best Products
        ('Reviews', 'https://www.pocket-lint.com/feed/reviews/'),
        ('Buyer’s Guides', 'https://www.pocket-lint.com/feed/buyers-guides/'),
        ('Comparisons', 'https://www.pocket-lint.com/feed/comparisons/'),
        ('Gift Guides', 'https://www.pocket-lint.com/feed/gift-guides/'),
        ('Deals', 'https://www.pocket-lint.com/feed/deals/'),
        # Topics
        ('Apps', 'https://www.pocket-lint.com/feed/apps/'),
        ('Augmented Reality & Virtual Reality', 'https://www.pocket-lint.com/feed/ar-vr/'),
        ('Cameras', 'https://www.pocket-lint.com/feed/cameras/'),
        ('Cars', 'https://www.pocket-lint.com/feed/cars/'),
        ('Fitness Trackers', 'https://www.pocket-lint.com/feed/fitness-trackers/'),
        ('Gadgets', 'https://www.pocket-lint.com/feed/gadgets/'),
        ('Games', 'https://www.pocket-lint.com/feed/games/'),
        ('Gaming Hardware', 'https://www.pocket-lint.com/feed/gaming-hardware/'),
        ('Headphones', 'https://www.pocket-lint.com/feed/headphones/'),
        ('Laptops', 'https://www.pocket-lint.com/feed/laptops/'),
        ('Movies & TV', 'https://www.pocket-lint.com/feed/movies-tv/'),
        ('Phones', 'https://www.pocket-lint.com/feed/phones/'),
        ('Smart Home', 'https://www.pocket-lint.com/feed/smart-home/'),
        ('Wearables', 'https://www.pocket-lint.com/feed/smartwatches/'),
        ('Speakers', 'https://www.pocket-lint.com/feed/speakers/'),
        ('Tablets', 'https://www.pocket-lint.com/feed/tablets/'),
        ('TVs', 'https://www.pocket-lint.com/feed/tv/'),
        ('Pocket-lint Awards', 'https://www.pocket-lint.com/feed/awards/'),
    ]
