Merge pull request #26109 from felizk/fix-resume-for-plugin-videos-in-widgets
[xbmc.git] / addons / metadata.tvshows.themoviedb.org.python / main.py
bloba81c5193938bd6826639b7f427bbdfe3e490979a
1 # -*- coding: UTF-8 -*-
3 # Copyright (C) 2020, Team Kodi
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.
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.
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/>.
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
23 from __future__ import absolute_import
25 import sys
27 from libs.actions import router
28 from libs.debugger import debug_exception
30 if __name__ == '__main__':
31 with debug_exception():
32 router(sys.argv[2][1:])