# -*- coding: utf-8 -*-
from caches.favorites_cache import favorites_cache
from modules.settings import ignore_articles
from modules.utils import sort_for_article
# from modules.kodi_utils import logger

def get_favorites(media_type, dummy_arg):
	data = favorites_cache.get_favorites(media_type)
	data = sort_for_article(data, 'title', ignore_articles())
	return [{'media_id': i['tmdb_id'], 'title': i['title']} for i in data]

