Browse Source

use SPDX license identifiers

pull/415/head
anxdpanic 3 years ago
parent
commit
f5c3641a1c
  1. 0
      LICENSES/GPL-3.0-only
  2. 3
      addon.xml
  3. 1
      changelog.txt
  4. 9
      resources/lib/__init__.py
  5. 14
      resources/lib/addon_runner.py
  6. 14
      resources/lib/service_runner.py
  7. 7
      resources/lib/twitch_addon/__init__.py
  8. 8
      resources/lib/twitch_addon/addon/__init__.py
  9. 16
      resources/lib/twitch_addon/addon/api.py
  10. 14
      resources/lib/twitch_addon/addon/cache.py
  11. 8
      resources/lib/twitch_addon/addon/common/__init__.py
  12. 14
      resources/lib/twitch_addon/addon/common/cache.py
  13. 16
      resources/lib/twitch_addon/addon/common/json_store.py
  14. 14
      resources/lib/twitch_addon/addon/common/kodi.py
  15. 14
      resources/lib/twitch_addon/addon/common/log_utils.py
  16. 14
      resources/lib/twitch_addon/addon/common/url_dispatcher.py
  17. 16
      resources/lib/twitch_addon/addon/constants.py
  18. 16
      resources/lib/twitch_addon/addon/converter.py
  19. 14
      resources/lib/twitch_addon/addon/error_handling.py
  20. 16
      resources/lib/twitch_addon/addon/googl_shorten.py
  21. 16
      resources/lib/twitch_addon/addon/menu_items.py
  22. 16
      resources/lib/twitch_addon/addon/player.py
  23. 16
      resources/lib/twitch_addon/addon/search_history.py
  24. 16
      resources/lib/twitch_addon/addon/strings.py
  25. 16
      resources/lib/twitch_addon/addon/twitch_exceptions.py
  26. 16
      resources/lib/twitch_addon/addon/utils.py
  27. 8
      resources/lib/twitch_addon/refresh.py
  28. 18
      resources/lib/twitch_addon/router.py
  29. 7
      resources/lib/twitch_addon/routes/__init__.py
  30. 7
      resources/lib/twitch_addon/routes/browse.py
  31. 7
      resources/lib/twitch_addon/routes/channel_video_categories.py
  32. 7
      resources/lib/twitch_addon/routes/channel_videos.py
  33. 7
      resources/lib/twitch_addon/routes/clear_list.py
  34. 7
      resources/lib/twitch_addon/routes/clear_live_previews.py
  35. 7
      resources/lib/twitch_addon/routes/clear_search_history.py
  36. 7
      resources/lib/twitch_addon/routes/clips.py
  37. 7
      resources/lib/twitch_addon/routes/collection_videos.py
  38. 7
      resources/lib/twitch_addon/routes/collections.py
  39. 7
      resources/lib/twitch_addon/routes/communities.py
  40. 7
      resources/lib/twitch_addon/routes/community_streams.py
  41. 7
      resources/lib/twitch_addon/routes/configure_inputstream_adaptive.py
  42. 7
      resources/lib/twitch_addon/routes/edit_blacklist.py
  43. 7
      resources/lib/twitch_addon/routes/edit_languages.py
  44. 7
      resources/lib/twitch_addon/routes/edit_qualities.py
  45. 7
      resources/lib/twitch_addon/routes/edit_sorting.py
  46. 7
      resources/lib/twitch_addon/routes/edit_user_follows.py
  47. 7
      resources/lib/twitch_addon/routes/featured_streams.py
  48. 7
      resources/lib/twitch_addon/routes/followed.py
  49. 7
      resources/lib/twitch_addon/routes/following.py
  50. 7
      resources/lib/twitch_addon/routes/game_categories.py
  51. 7
      resources/lib/twitch_addon/routes/game_streams.py
  52. 7
      resources/lib/twitch_addon/routes/games.py
  53. 7
      resources/lib/twitch_addon/routes/install_ircchat.py
  54. 7
      resources/lib/twitch_addon/routes/main.py
  55. 7
      resources/lib/twitch_addon/routes/maintain.py
  56. 7
      resources/lib/twitch_addon/routes/new_search.py
  57. 7
      resources/lib/twitch_addon/routes/play.py
  58. 7
      resources/lib/twitch_addon/routes/refresh.py
  59. 7
      resources/lib/twitch_addon/routes/remove_search_history.py
  60. 7
      resources/lib/twitch_addon/routes/reset_cache.py
  61. 7
      resources/lib/twitch_addon/routes/revoke_token.py
  62. 7
      resources/lib/twitch_addon/routes/search.py
  63. 7
      resources/lib/twitch_addon/routes/search_history.py
  64. 7
      resources/lib/twitch_addon/routes/search_results.py
  65. 7
      resources/lib/twitch_addon/routes/settings.py
  66. 7
      resources/lib/twitch_addon/routes/streams.py
  67. 7
      resources/lib/twitch_addon/routes/token_url.py
  68. 7
      resources/lib/twitch_addon/routes/update_token.py
  69. 16
      resources/lib/twitch_addon/service.py

0
LICENSE.txt → LICENSES/GPL-3.0-only

3
addon.xml

@ -16,6 +16,7 @@
2.3.6
[fix] change import from absolute to relative
[upd] re-write of search history
[upd] use SPDX license identifiers
2.3.5
[fix] utf-8 file paths
@ -27,7 +28,7 @@
</assets>
<language></language>
<source>https://github.com/MrSprigster/Twitch-on-Kodi</source>
<license>GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007</license>
<license>GPL-3.0-only</license>
<forum>http://forum.kodi.tv/showthread.php?tid=134538</forum>
<summary lang='en_GB'>Twitch video plugin</summary>
<description lang='en_GB'>Watch your favorite gaming streams!</description>

1
changelog.txt

@ -1,6 +1,7 @@
2.3.6
[fix] change import from absolute to relative
[upd] re-write of search history
[upd] use SPDX license identifiers
2.3.5
[fix] utf-8 file paths

9
resources/lib/__init__.py

@ -1 +1,10 @@
# -*- coding: utf-8 -*-
"""
This file is part of plugin.video.twitch
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
__all__ = ['twitch_addon']

14
resources/lib/addon_runner.py

@ -3,18 +3,10 @@
Copyright (C) 2018 Twitch-on-Kodi
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This file is part of plugin.video.twitch
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
import sys

14
resources/lib/service_runner.py

@ -3,18 +3,10 @@
Copyright (C) 2018 Twitch-on-Kodi
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This file is part of plugin.video.twitch
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
from twitch_addon import service

7
resources/lib/twitch_addon/__init__.py

@ -1 +1,8 @@
"""
This file is part of plugin.video.twitch
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
__all__ = ['addon', 'routes', 'router', 'service', 'refresh']

8
resources/lib/twitch_addon/addon/__init__.py

@ -1 +1,9 @@
# -*- coding: utf-8 -*-
"""
This file is part of plugin.video.twitch
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
__all__ = ['constants', 'strings', 'menu_items', 'converter', 'common', 'tccleaner', 'utils']

16
resources/lib/twitch_addon/addon/api.py

@ -3,18 +3,10 @@
Copyright (C) 2016 Twitch-on-Kodi
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
This file is part of plugin.video.twitch
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
import json

14
resources/lib/twitch_addon/addon/cache.py

@ -3,18 +3,10 @@
Copyright (C) 2016 Twitch-on-Kodi
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This file is part of plugin.video.twitch
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
from .common import cache, kodi

8
resources/lib/twitch_addon/addon/common/__init__.py

@ -1 +1,9 @@
# -*- coding: utf-8 -*-
"""
This file is part of plugin.video.twitch
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
__all__ = ['cache', 'kodi', 'log_utils', 'url_dispatcher', 'search_history']

14
resources/lib/twitch_addon/addon/common/cache.py

@ -4,18 +4,8 @@
Modified by Twitch-on-Kodi/plugin.video.twitch Dec. 12, 2016
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
from six.moves import cPickle as pickle

16
resources/lib/twitch_addon/addon/common/json_store.py

@ -3,18 +3,10 @@
Copyright (C) 2016 Twitch-on-Kodi
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
This file is part of plugin.video.twitch
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
import json

14
resources/lib/twitch_addon/addon/common/kodi.py

@ -4,18 +4,8 @@
Modified by Twitch-on-Kodi/plugin.video.twitch Dec. 12, 2016
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
from six import string_types, with_metaclass, PY3

14
resources/lib/twitch_addon/addon/common/log_utils.py

@ -4,18 +4,8 @@
Modified by Twitch-on-Kodi/plugin.video.twitch Dec. 12, 2016
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
from six import string_types, PY2

14
resources/lib/twitch_addon/addon/common/url_dispatcher.py

@ -4,18 +4,8 @@
Modified by Twitch-on-Kodi/plugin.video.twitch Dec. 12, 2016
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
from . import log_utils

16
resources/lib/twitch_addon/addon/constants.py

@ -3,18 +3,10 @@
Copyright (C) 2016 Twitch-on-Kodi
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
This file is part of plugin.video.twitch
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
from .common import kodi

16
resources/lib/twitch_addon/addon/converter.py

@ -3,18 +3,10 @@
Copyright (C) 2016 Twitch-on-Kodi
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
This file is part of plugin.video.twitch
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
from six import PY2

14
resources/lib/twitch_addon/addon/error_handling.py

@ -3,18 +3,10 @@
Copyright (C) 2016 Twitch-on-Kodi
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This file is part of plugin.video.twitch
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
from six import PY3

16
resources/lib/twitch_addon/addon/googl_shorten.py

@ -3,18 +3,10 @@
Copyright (C) 2016 Twitch-on-Kodi
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
This file is part of plugin.video.twitch
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
import json

16
resources/lib/twitch_addon/addon/menu_items.py

@ -3,18 +3,10 @@
Copyright (C) 2016 Twitch-on-Kodi
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
This file is part of plugin.video.twitch
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
from . import utils

16
resources/lib/twitch_addon/addon/player.py

@ -4,18 +4,10 @@
Copyright (C) 2016 Twitch-on-Kodi
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
This file is part of plugin.video.twitch
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
from . import api, utils, cache

16
resources/lib/twitch_addon/addon/search_history.py

@ -2,18 +2,10 @@
"""
Copyright (C) 2018 Twitch-on-Kodi
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
This file is part of plugin.video.twitch
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
from .common.search_history import SearchHistory

16
resources/lib/twitch_addon/addon/strings.py

@ -3,18 +3,10 @@
Copyright (C) 2016 Twitch-on-Kodi
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
This file is part of plugin.video.twitch
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
STRINGS = {

16
resources/lib/twitch_addon/addon/twitch_exceptions.py

@ -3,18 +3,10 @@
Copyright (C) 2016 Twitch-on-Kodi
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
This file is part of plugin.video.twitch
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
from twitch.exceptions import ResourceUnavailableException

16
resources/lib/twitch_addon/addon/utils.py

@ -3,18 +3,10 @@
Copyright (C) 2016 Twitch-on-Kodi
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
This file is part of plugin.video.twitch
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
from six import iteritems, string_types

8
resources/lib/twitch_addon/refresh.py

@ -1,4 +1,12 @@
# -*- coding: utf-8 -*-
"""
This file is part of plugin.video.twitch
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
from addon import cache
from addon.common import kodi

18
resources/lib/twitch_addon/router.py

@ -2,19 +2,11 @@
"""
Copyright (C) 2016 Twitch-on-Kodi
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
This file is part of plugin.video.twitch
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
import traceback

7
resources/lib/twitch_addon/routes/__init__.py

@ -1,4 +1,11 @@
# -*- coding: utf-8 -*-
"""
This file is part of plugin.video.twitch
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
__all__ = ['browse', 'channel_video_categories', 'channel_videos', 'clear_list',
'clear_live_previews', 'clear_search_history', 'clips', 'collection_videos',

7
resources/lib/twitch_addon/routes/browse.py

@ -1,4 +1,11 @@
# -*- coding: utf-8 -*-
"""
This file is part of plugin.video.twitch
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
from ..addon import utils, menu_items
from ..addon.common import kodi
from ..addon.constants import MODES

7
resources/lib/twitch_addon/routes/channel_video_categories.py

@ -1,4 +1,11 @@
# -*- coding: utf-8 -*-
"""
This file is part of plugin.video.twitch
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
from ..addon import menu_items
from ..addon.common import kodi
from ..addon.constants import MODES

7
resources/lib/twitch_addon/routes/channel_videos.py

@ -1,4 +1,11 @@
# -*- coding: utf-8 -*-
"""
This file is part of plugin.video.twitch
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
from ..addon import utils
from ..addon.common import kodi
from ..addon.constants import Keys, LINE_LENGTH, MODES, MAX_REQUESTS, REQUEST_LIMIT

7
resources/lib/twitch_addon/routes/clear_list.py

@ -1,4 +1,11 @@
# -*- coding: utf-8 -*-
"""
This file is part of plugin.video.twitch
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
from ..addon import utils
from ..addon.common import kodi
from ..addon.utils import i18n

7
resources/lib/twitch_addon/routes/clear_live_previews.py

@ -1,4 +1,11 @@
# -*- coding: utf-8 -*-
"""
This file is part of plugin.video.twitch
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
from ..addon import utils
from ..addon.constants import LIVE_PREVIEW_TEMPLATE

7
resources/lib/twitch_addon/routes/clear_search_history.py

@ -1,4 +1,11 @@
# -*- coding: utf-8 -*-
"""
This file is part of plugin.video.twitch
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
from ..addon import utils
from ..addon.common import kodi
from ..addon.constants import Scripts

7
resources/lib/twitch_addon/routes/clips.py

@ -1,4 +1,11 @@
# -*- coding: utf-8 -*-
"""
This file is part of plugin.video.twitch
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
from ..addon import utils
from ..addon.common import kodi
from ..addon.constants import Keys, LINE_LENGTH, MODES, CURSOR_LIMIT, MAX_REQUESTS

7
resources/lib/twitch_addon/routes/collection_videos.py

@ -1,4 +1,11 @@
# -*- coding: utf-8 -*-
"""
This file is part of plugin.video.twitch
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
from ..addon import utils
from ..addon.common import kodi
from ..addon.constants import Keys, LINE_LENGTH

7
resources/lib/twitch_addon/routes/collections.py

@ -1,4 +1,11 @@
# -*- coding: utf-8 -*-
"""
This file is part of plugin.video.twitch
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
from ..addon import utils
from ..addon.common import kodi
from ..addon.constants import Keys, LINE_LENGTH, MODES, CURSOR_LIMIT, MAX_REQUESTS

7
resources/lib/twitch_addon/routes/communities.py

@ -1,4 +1,11 @@
# -*- coding: utf-8 -*-
"""
This file is part of plugin.video.twitch
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
from ..addon import utils
from ..addon.common import kodi
from ..addon.constants import Keys, LINE_LENGTH, MODES, MAX_REQUESTS, CURSOR_LIMIT

7
resources/lib/twitch_addon/routes/community_streams.py

@ -1,4 +1,11 @@
# -*- coding: utf-8 -*-
"""
This file is part of plugin.video.twitch
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
from ..addon import utils
from ..addon.common import kodi
from ..addon.constants import Keys, LINE_LENGTH, MODES, MAX_REQUESTS, REQUEST_LIMIT

7
resources/lib/twitch_addon/routes/configure_inputstream_adaptive.py

@ -1,4 +1,11 @@
# -*- coding: utf-8 -*-
"""
This file is part of plugin.video.twitch
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
from ..addon import utils
from ..addon.common import kodi

7
resources/lib/twitch_addon/routes/edit_blacklist.py

@ -1,4 +1,11 @@
# -*- coding: utf-8 -*-
"""
This file is part of plugin.video.twitch
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
from ..addon import utils
from ..addon.common import kodi
from ..addon.constants import Scripts

7
resources/lib/twitch_addon/routes/edit_languages.py

@ -1,4 +1,11 @@
# -*- coding: utf-8 -*-
"""
This file is part of plugin.video.twitch
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
from ..addon import utils
from ..addon.common import kodi
from ..addon.utils import i18n

7
resources/lib/twitch_addon/routes/edit_qualities.py

@ -1,4 +1,11 @@
# -*- coding: utf-8 -*-
"""
This file is part of plugin.video.twitch
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
from ..addon import utils
from ..addon.common import kodi
from ..addon.constants import ADAPTIVE_SOURCE_TEMPLATE, LINE_LENGTH

7
resources/lib/twitch_addon/routes/edit_sorting.py

@ -1,4 +1,11 @@
# -*- coding: utf-8 -*-
"""
This file is part of plugin.video.twitch
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
from ..addon import utils
from ..addon.common import kodi
from ..addon.utils import i18n

7
resources/lib/twitch_addon/routes/edit_user_follows.py

@ -1,4 +1,11 @@
# -*- coding: utf-8 -*-
"""
This file is part of plugin.video.twitch
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
from ..addon.common import kodi
from ..addon.constants import Scripts
from ..addon.utils import i18n

7
resources/lib/twitch_addon/routes/featured_streams.py

@ -1,4 +1,11 @@
# -*- coding: utf-8 -*-
"""
This file is part of plugin.video.twitch
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
from ..addon import utils
from ..addon.common import kodi
from ..addon.constants import Keys, LINE_LENGTH

7
resources/lib/twitch_addon/routes/followed.py

@ -1,4 +1,11 @@
# -*- coding: utf-8 -*-
"""
This file is part of plugin.video.twitch
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
from ..addon import utils
from ..addon.common import kodi
from ..addon.constants import Keys, LINE_LENGTH, MODES, MAX_REQUESTS, REQUEST_LIMIT, CURSOR_LIMIT

7
resources/lib/twitch_addon/routes/following.py

@ -1,4 +1,11 @@
# -*- coding: utf-8 -*-
"""
This file is part of plugin.video.twitch
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
from ..addon import menu_items
from ..addon.common import kodi
from ..addon.constants import MODES

7
resources/lib/twitch_addon/routes/game_categories.py

@ -1,4 +1,11 @@
# -*- coding: utf-8 -*-
"""
This file is part of plugin.video.twitch
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
from ..addon import menu_items
from ..addon.common import kodi
from ..addon.constants import MODES

7
resources/lib/twitch_addon/routes/game_streams.py

@ -1,4 +1,11 @@
# -*- coding: utf-8 -*-
"""
This file is part of plugin.video.twitch
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
from ..addon import utils
from ..addon.common import kodi
from ..addon.constants import Keys, LINE_LENGTH, MODES, MAX_REQUESTS, REQUEST_LIMIT

7
resources/lib/twitch_addon/routes/games.py

@ -1,4 +1,11 @@
# -*- coding: utf-8 -*-
"""
This file is part of plugin.video.twitch
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
from ..addon import utils
from ..addon.common import kodi
from ..addon.constants import Keys, LINE_LENGTH, MODES, MAX_REQUESTS, REQUEST_LIMIT

7
resources/lib/twitch_addon/routes/install_ircchat.py

@ -1,4 +1,11 @@
# -*- coding: utf-8 -*-
"""
This file is part of plugin.video.twitch
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
from ..addon.common import kodi

7
resources/lib/twitch_addon/routes/main.py

@ -1,4 +1,11 @@
# -*- coding: utf-8 -*-
"""
This file is part of plugin.video.twitch
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
from ..addon import utils, menu_items
from ..addon.common import kodi
from ..addon.constants import MODES

7
resources/lib/twitch_addon/routes/maintain.py

@ -1,4 +1,11 @@
# -*- coding: utf-8 -*-
"""
This file is part of plugin.video.twitch
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
from ..addon.common import kodi
from ..addon.utils import i18n

7
resources/lib/twitch_addon/routes/new_search.py

@ -1,4 +1,11 @@
# -*- coding: utf-8 -*-
"""
This file is part of plugin.video.twitch
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
from ..addon.common import kodi
from ..addon.constants import MODES
from ..addon.utils import i18n

7
resources/lib/twitch_addon/routes/play.py

@ -1,4 +1,11 @@
# -*- coding: utf-8 -*-
"""
This file is part of plugin.video.twitch
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
from ..addon import utils
from ..addon.common import kodi, log_utils
from ..addon.constants import Keys, LINE_LENGTH

7
resources/lib/twitch_addon/routes/refresh.py

@ -1,4 +1,11 @@
# -*- coding: utf-8 -*-
"""
This file is part of plugin.video.twitch
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
from ..addon.common import kodi
from ..addon.constants import Scripts

7
resources/lib/twitch_addon/routes/remove_search_history.py

@ -1,4 +1,11 @@
# -*- coding: utf-8 -*-
"""
This file is part of plugin.video.twitch
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
from ..addon import utils
from ..addon.common import kodi
from ..addon.constants import Scripts

7
resources/lib/twitch_addon/routes/reset_cache.py

@ -1,4 +1,11 @@
# -*- coding: utf-8 -*-
"""
This file is part of plugin.video.twitch
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
from ..addon import cache
from ..addon.common import kodi
from ..addon.utils import i18n

7
resources/lib/twitch_addon/routes/revoke_token.py

@ -1,4 +1,11 @@
# -*- coding: utf-8 -*-
"""
This file is part of plugin.video.twitch
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
from ..addon import utils, cache
from ..addon.common import kodi
from ..addon.twitch_exceptions import TwitchException

7
resources/lib/twitch_addon/routes/search.py

@ -1,4 +1,11 @@
# -*- coding: utf-8 -*-
"""
This file is part of plugin.video.twitch
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
from ..addon.common import kodi
from ..addon import utils, menu_items
from ..addon.constants import MODES

7
resources/lib/twitch_addon/routes/search_history.py

@ -1,4 +1,11 @@
# -*- coding: utf-8 -*-
"""
This file is part of plugin.video.twitch
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
from ..addon import utils, menu_items
from ..addon.common import kodi
from ..addon.constants import MODES

7
resources/lib/twitch_addon/routes/search_results.py

@ -1,4 +1,11 @@
# -*- coding: utf-8 -*-
"""
This file is part of plugin.video.twitch
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
from ..addon import utils
from ..addon.common import kodi
from ..addon.constants import Keys, LINE_LENGTH, MODES

7
resources/lib/twitch_addon/routes/settings.py

@ -1,4 +1,11 @@
# -*- coding: utf-8 -*-
"""
This file is part of plugin.video.twitch
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
from ..addon.common import kodi
from ..addon.constants import Scripts

7
resources/lib/twitch_addon/routes/streams.py

@ -1,4 +1,11 @@
# -*- coding: utf-8 -*-
"""
This file is part of plugin.video.twitch
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
from ..addon import utils
from ..addon.common import kodi
from ..addon.constants import Keys, LINE_LENGTH, MODES, MAX_REQUESTS, REQUEST_LIMIT

7
resources/lib/twitch_addon/routes/token_url.py

@ -1,4 +1,11 @@
# -*- coding: utf-8 -*-
"""
This file is part of plugin.video.twitch
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
from ..addon import utils
from ..addon.common import kodi
from ..addon.googl_shorten import googl_url

7
resources/lib/twitch_addon/routes/update_token.py

@ -1,4 +1,11 @@
# -*- coding: utf-8 -*-
"""
This file is part of plugin.video.twitch
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
from ..addon.common import kodi
from ..addon.utils import i18n

16
resources/lib/twitch_addon/service.py

@ -3,18 +3,10 @@
Copyright (C) 2016 Twitch-on-Kodi
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
This file is part of plugin.video.twitch
SPDX-License-Identifier: GPL-3.0-only
See LICENSES/GPL-3.0-only for more information.
"""
from six.moves import zip_longest as izip_longest

Loading…
Cancel
Save