1# -*- coding: UTF-8 -*-
2#
3# Copyright (C) 2020, Team Kodi
4#
5# This program is free software: you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published by
7# the Free Software Foundation, either version 3 of the License, or
8# (at your option) any later version.
9#
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13# GNU General Public License for more details.
14#
15# You should have received a copy of the GNU General Public License
16# along with this program.  If not, see <https://www.gnu.org/licenses/>.
17#
18# Code attribution:
19# core based on metadata.tvmaze scrapper by Roman Miroshnychenko aka Roman V.M.
20# IMDb ratings based on code in metadata.themoviedb.org.python by Team Kodi
21# pylint: disable=missing-docstring
22
23from __future__ import absolute_import
24
25import sys
26
27from libs.actions import router
28from libs.debugger import debug_exception
29
30if __name__ == '__main__':
31    with debug_exception():
32        router(sys.argv[2][1:])
33