Browse Source

Use SPDX license identifiers

pull/1/head
anxdpanic 3 years ago
parent
commit
0ceb8246c2
  1. 0
      LICENSES/GPL-2.0-only
  2. 2
      addon.xml
  3. 9
      resources/__init__.py
  4. 9
      resources/lib/__init__.py
  5. 9
      resources/lib/default.py
  6. 9
      resources/lib/startup.py
  7. 8
      resources/lib/youtube_authentication.py
  8. 12
      resources/lib/youtube_plugin/__init__.py
  9. 13
      resources/lib/youtube_plugin/kodion/__init__.py
  10. 9
      resources/lib/youtube_plugin/kodion/abstract_provider.py
  11. 12
      resources/lib/youtube_plugin/kodion/constants/__init__.py
  12. 9
      resources/lib/youtube_plugin/kodion/constants/const_content_types.py
  13. 9
      resources/lib/youtube_plugin/kodion/constants/const_localize.py
  14. 9
      resources/lib/youtube_plugin/kodion/constants/const_paths.py
  15. 9
      resources/lib/youtube_plugin/kodion/constants/const_settings.py
  16. 9
      resources/lib/youtube_plugin/kodion/constants/const_sort_methods.py
  17. 11
      resources/lib/youtube_plugin/kodion/debug.py
  18. 9
      resources/lib/youtube_plugin/kodion/exceptions.py
  19. 12
      resources/lib/youtube_plugin/kodion/impl/__init__.py
  20. 9
      resources/lib/youtube_plugin/kodion/impl/abstract_context.py
  21. 9
      resources/lib/youtube_plugin/kodion/impl/abstract_context_ui.py
  22. 9
      resources/lib/youtube_plugin/kodion/impl/abstract_player.py
  23. 9
      resources/lib/youtube_plugin/kodion/impl/abstract_playlist.py
  24. 9
      resources/lib/youtube_plugin/kodion/impl/abstract_progress_dialog.py
  25. 9
      resources/lib/youtube_plugin/kodion/impl/abstract_provider_runner.py
  26. 9
      resources/lib/youtube_plugin/kodion/impl/abstract_settings.py
  27. 9
      resources/lib/youtube_plugin/kodion/impl/xbmc/__init__.py
  28. 9
      resources/lib/youtube_plugin/kodion/impl/xbmc/info_labels.py
  29. 9
      resources/lib/youtube_plugin/kodion/impl/xbmc/xbmc_context.py
  30. 9
      resources/lib/youtube_plugin/kodion/impl/xbmc/xbmc_context_ui.py
  31. 8
      resources/lib/youtube_plugin/kodion/impl/xbmc/xbmc_items.py
  32. 9
      resources/lib/youtube_plugin/kodion/impl/xbmc/xbmc_player.py
  33. 9
      resources/lib/youtube_plugin/kodion/impl/xbmc/xbmc_playlist.py
  34. 9
      resources/lib/youtube_plugin/kodion/impl/xbmc/xbmc_plugin_settings.py
  35. 9
      resources/lib/youtube_plugin/kodion/impl/xbmc/xbmc_progress_dialog.py
  36. 9
      resources/lib/youtube_plugin/kodion/impl/xbmc/xbmc_progress_dialog_bg.py
  37. 9
      resources/lib/youtube_plugin/kodion/impl/xbmc/xbmc_runner.py
  38. 16
      resources/lib/youtube_plugin/kodion/items/__init__.py
  39. 9
      resources/lib/youtube_plugin/kodion/items/audio_item.py
  40. 9
      resources/lib/youtube_plugin/kodion/items/base_item.py
  41. 9
      resources/lib/youtube_plugin/kodion/items/directory_item.py
  42. 9
      resources/lib/youtube_plugin/kodion/items/favorites_item.py
  43. 9
      resources/lib/youtube_plugin/kodion/items/image_item.py
  44. 9
      resources/lib/youtube_plugin/kodion/items/new_search_item.py
  45. 9
      resources/lib/youtube_plugin/kodion/items/next_page_item.py
  46. 9
      resources/lib/youtube_plugin/kodion/items/search_history_item.py
  47. 9
      resources/lib/youtube_plugin/kodion/items/search_item.py
  48. 9
      resources/lib/youtube_plugin/kodion/items/uri_item.py
  49. 9
      resources/lib/youtube_plugin/kodion/items/utils.py
  50. 9
      resources/lib/youtube_plugin/kodion/items/video_item.py
  51. 9
      resources/lib/youtube_plugin/kodion/items/watch_later_item.py
  52. 10
      resources/lib/youtube_plugin/kodion/json_store/__init__.py
  53. 9
      resources/lib/youtube_plugin/kodion/logger.py
  54. 9
      resources/lib/youtube_plugin/kodion/register_provider_path.py
  55. 11
      resources/lib/youtube_plugin/kodion/runner.py
  56. 9
      resources/lib/youtube_plugin/kodion/service.py
  57. 20
      resources/lib/youtube_plugin/kodion/utils/__init__.py
  58. 9
      resources/lib/youtube_plugin/kodion/utils/access_manager.py
  59. 9
      resources/lib/youtube_plugin/kodion/utils/data_cache.py
  60. 9
      resources/lib/youtube_plugin/kodion/utils/datetime_parser.py
  61. 9
      resources/lib/youtube_plugin/kodion/utils/favorite_list.py
  62. 9
      resources/lib/youtube_plugin/kodion/utils/function_cache.py
  63. 8
      resources/lib/youtube_plugin/kodion/utils/http_server.py
  64. 8
      resources/lib/youtube_plugin/kodion/utils/ip_api.py
  65. 14
      resources/lib/youtube_plugin/kodion/utils/methods.py
  66. 8
      resources/lib/youtube_plugin/kodion/utils/monitor.py
  67. 8
      resources/lib/youtube_plugin/kodion/utils/playback_history.py
  68. 7
      resources/lib/youtube_plugin/kodion/utils/player.py
  69. 9
      resources/lib/youtube_plugin/kodion/utils/search_history.py
  70. 9
      resources/lib/youtube_plugin/kodion/utils/storage.py
  71. 9
      resources/lib/youtube_plugin/kodion/utils/system_version.py
  72. 9
      resources/lib/youtube_plugin/kodion/utils/view_manager.py
  73. 9
      resources/lib/youtube_plugin/kodion/utils/watch_later_list.py
  74. 8
      resources/lib/youtube_plugin/refresh.py
  75. 11
      resources/lib/youtube_plugin/youtube/__init__.py
  76. 7
      resources/lib/youtube_plugin/youtube/client/__config__.py
  77. 11
      resources/lib/youtube_plugin/youtube/client/__init__.py
  78. 9
      resources/lib/youtube_plugin/youtube/client/login_client.py
  79. 9
      resources/lib/youtube_plugin/youtube/client/youtube.py
  80. 9
      resources/lib/youtube_plugin/youtube/helper/__init__.py
  81. 9
      resources/lib/youtube_plugin/youtube/helper/resource_manager.py
  82. 13
      resources/lib/youtube_plugin/youtube/helper/signature/__init__.py
  83. 9
      resources/lib/youtube_plugin/youtube/helper/signature/cipher.py
  84. 10
      resources/lib/youtube_plugin/youtube/helper/signature/json_script_engine.py
  85. 7
      resources/lib/youtube_plugin/youtube/helper/subtitles.py
  86. 10
      resources/lib/youtube_plugin/youtube/helper/tv.py
  87. 9
      resources/lib/youtube_plugin/youtube/helper/url_resolver.py
  88. 9
      resources/lib/youtube_plugin/youtube/helper/url_to_item_converter.py
  89. 10
      resources/lib/youtube_plugin/youtube/helper/utils.py
  90. 9
      resources/lib/youtube_plugin/youtube/helper/v3.py
  91. 9
      resources/lib/youtube_plugin/youtube/helper/video_info.py
  92. 9
      resources/lib/youtube_plugin/youtube/helper/yt_context_menu.py
  93. 9
      resources/lib/youtube_plugin/youtube/helper/yt_login.py
  94. 9
      resources/lib/youtube_plugin/youtube/helper/yt_old_actions.py
  95. 9
      resources/lib/youtube_plugin/youtube/helper/yt_play.py
  96. 9
      resources/lib/youtube_plugin/youtube/helper/yt_playlist.py
  97. 10
      resources/lib/youtube_plugin/youtube/helper/yt_setup_wizard.py
  98. 9
      resources/lib/youtube_plugin/youtube/helper/yt_specials.py
  99. 9
      resources/lib/youtube_plugin/youtube/helper/yt_subscriptions.py
  100. 9
      resources/lib/youtube_plugin/youtube/helper/yt_video.py

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

2
addon.xml

@ -57,7 +57,7 @@
<description lang="nb_NO">YouTube er en av verdens største nettsider for videodeling.</description>
<language></language>
<platform>all</platform>
<license>GNU GENERAL PUBLIC LICENSE. Version 2, June 1991</license>
<license>GPL-2.0-only</license>
<forum>https://forum.kodi.tv/showthread.php?tid=325740</forum>
<website>https://www.youtube.com</website>
<email>ytplugin at datanet dot ws</email>

9
resources/__init__.py

@ -1 +1,8 @@
__author__ = 'bromix'
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""

9
resources/lib/__init__.py

@ -1 +1,10 @@
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
__all__ = ['youtube_plugin']

9
resources/lib/default.py

@ -1,4 +1,11 @@
__author__ = 'bromix'
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
from youtube_plugin.kodion import runner
from youtube_plugin import youtube

9
resources/lib/startup.py

@ -1,4 +1,11 @@
__author__ = 'bromix'
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
from youtube_plugin.kodion import service

8
resources/lib/youtube_authentication.py

@ -1,3 +1,11 @@
"""
Copyright (C) 2018-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
from youtube_plugin.youtube.provider import Provider
from youtube_plugin.kodion.impl import Context
from youtube_plugin.youtube.helper import yt_login

12
resources/lib/youtube_plugin/__init__.py

@ -1,6 +1,12 @@
# -*- coding: utf-8 -*-
__author__ = 'bromix'
__all__ = ['kodion', 'youtube', 'key_sets', 'refresh']
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
key_sets = {
'youtube-tv': {
@ -41,3 +47,5 @@ key_sets = {
}
}
}
__all__ = ['kodion', 'youtube', 'key_sets', 'refresh']

13
resources/lib/youtube_plugin/kodion/__init__.py

@ -1,6 +1,11 @@
__all__ = ['KodionException', 'RegisterProviderPath', 'AbstractProvider', 'Context', 'utils', 'json_store', 'logger']
"""
__version__ = '1.5.4'
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
# import base exception of kodion directly into the kodion namespace
from .exceptions import KodionException
@ -17,3 +22,7 @@ from .impl import Context
from .constants import *
from . import logger
__all__ = ['KodionException', 'RegisterProviderPath', 'AbstractProvider', 'Context', 'utils', 'json_store', 'logger']
__version__ = '1.5.4'

9
resources/lib/youtube_plugin/kodion/abstract_provider.py

@ -1,3 +1,12 @@
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
import re
from .exceptions import KodionException

12
resources/lib/youtube_plugin/kodion/constants/__init__.py

@ -1,7 +1,17 @@
__all__ = ['setting', 'localize', 'sort_method', 'content_type', 'paths']
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
from . import const_settings as setting
from . import const_localize as localize
from . import const_sort_methods as sort_method
from . import const_content_types as content_type
from . import const_paths as paths
__all__ = ['setting', 'localize', 'sort_method', 'content_type', 'paths']

9
resources/lib/youtube_plugin/kodion/constants/const_content_types.py

@ -1,4 +1,11 @@
__author__ = 'bromix'
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
FILES = 'files'
SONGS = 'songs'

9
resources/lib/youtube_plugin/kodion/constants/const_localize.py

@ -1,4 +1,11 @@
__author__ = 'bromix'
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
SELECT_VIDEO_QUALITY = 30010

9
resources/lib/youtube_plugin/kodion/constants/const_paths.py

@ -1,4 +1,11 @@
__author__ = 'bromix'
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
SEARCH = 'kodion/search'
FAVORITES = 'kodion/favorites'

9
resources/lib/youtube_plugin/kodion/constants/const_settings.py

@ -1,4 +1,11 @@
__author__ = 'bromix'
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
THUMB_SIZE = 'kodion.thumbnail.size' # (int)
SHOW_FANART = 'kodion.fanart.show' # (bool)

9
resources/lib/youtube_plugin/kodion/constants/const_sort_methods.py

@ -1,4 +1,11 @@
__author__ = 'bromix'
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
_xbmc = True

11
resources/lib/youtube_plugin/kodion/debug.py

@ -1,8 +1,15 @@
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
import os
import json
__author__ = 'bromix'
def debug_here(host='localhost'):
import sys

9
resources/lib/youtube_plugin/kodion/exceptions.py

@ -1,4 +1,11 @@
__author__ = 'bromix'
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
class KodionException(Exception):

12
resources/lib/youtube_plugin/kodion/impl/__init__.py

@ -1,8 +1,16 @@
__author__ = 'bromix'
"""
__all__ = ['Settings', 'Context', 'ContextUI', 'Runner']
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
from .xbmc.xbmc_plugin_settings import XbmcPluginSettings as Settings
from .xbmc.xbmc_context import XbmcContext as Context
from .xbmc.xbmc_context_ui import XbmcContextUI as ContextUI
from .xbmc.xbmc_runner import XbmcRunner as Runner
__all__ = ['Settings', 'Context', 'ContextUI', 'Runner']

9
resources/lib/youtube_plugin/kodion/impl/abstract_context.py

@ -1,3 +1,12 @@
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
from six.moves import urllib
import os

9
resources/lib/youtube_plugin/kodion/impl/abstract_context_ui.py

@ -1,4 +1,11 @@
__author__ = 'bromix'
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
class AbstractContextUI(object):

9
resources/lib/youtube_plugin/kodion/impl/abstract_player.py

@ -1,4 +1,11 @@
__author__ = 'bromix'
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
class AbstractPlayer(object):

9
resources/lib/youtube_plugin/kodion/impl/abstract_playlist.py

@ -1,4 +1,11 @@
__author__ = 'bromix'
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
class AbstractPlaylist(object):

9
resources/lib/youtube_plugin/kodion/impl/abstract_progress_dialog.py

@ -1,4 +1,11 @@
__author__ = 'bromix'
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
class AbstractProgressDialog(object):

9
resources/lib/youtube_plugin/kodion/impl/abstract_provider_runner.py

@ -1,4 +1,11 @@
__author__ = 'bromix'
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
class AbstractProviderRunner(object):

9
resources/lib/youtube_plugin/kodion/impl/abstract_settings.py

@ -1,4 +1,11 @@
__author__ = 'bromix'
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
import sys
from .. import constants

9
resources/lib/youtube_plugin/kodion/impl/xbmc/__init__.py

@ -1,3 +1,10 @@
__author__ = 'bromix'
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
__all__ = []

9
resources/lib/youtube_plugin/kodion/impl/xbmc/info_labels.py

@ -1,4 +1,11 @@
__author__ = 'bromix'
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
from ... import utils
from ...items import *

9
resources/lib/youtube_plugin/kodion/impl/xbmc/xbmc_context.py

@ -1,3 +1,12 @@
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
from six.moves import urllib
import datetime

9
resources/lib/youtube_plugin/kodion/impl/xbmc/xbmc_context_ui.py

@ -1,4 +1,11 @@
__author__ = 'bromix'
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
from six import string_types

8
resources/lib/youtube_plugin/kodion/impl/xbmc/xbmc_items.py

@ -1,6 +1,12 @@
# -*- coding: utf-8 -*-
"""
__author__ = 'bromix'
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
import xbmcgui

9
resources/lib/youtube_plugin/kodion/impl/xbmc/xbmc_player.py

@ -1,4 +1,11 @@
__author__ = 'bromix'
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
import xbmc
from ..abstract_player import AbstractPlayer

9
resources/lib/youtube_plugin/kodion/impl/xbmc/xbmc_playlist.py

@ -1,4 +1,11 @@
__author__ = 'bromix'
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
import xbmc
from ..abstract_playlist import AbstractPlaylist

9
resources/lib/youtube_plugin/kodion/impl/xbmc/xbmc_plugin_settings.py

@ -1,4 +1,11 @@
__author__ = 'bromix'
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
from ..abstract_settings import AbstractSettings

9
resources/lib/youtube_plugin/kodion/impl/xbmc/xbmc_progress_dialog.py

@ -1,4 +1,11 @@
__author__ = 'bromix'
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
from six import string_types

9
resources/lib/youtube_plugin/kodion/impl/xbmc/xbmc_progress_dialog_bg.py

@ -1,4 +1,11 @@
__author__ = 'bromix'
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
from six import string_types

9
resources/lib/youtube_plugin/kodion/impl/xbmc/xbmc_runner.py

@ -1,4 +1,11 @@
__author__ = 'bromix'
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
import xbmcgui
import xbmcplugin

16
resources/lib/youtube_plugin/kodion/items/__init__.py

@ -1,6 +1,11 @@
__all__ = ['BaseItem', 'AudioItem', 'DirectoryItem', 'VideoItem', 'ImageItem', 'WatchLaterItem', 'FavoritesItem',
'SearchItem', 'NewSearchItem', 'SearchHistoryItem', 'NextPageItem', 'UriItem',
'from_json', 'to_json', 'to_jsons']
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
from .utils import to_json, from_json, to_jsons
@ -16,3 +21,8 @@ from .search_history_item import SearchHistoryItem
from .next_page_item import NextPageItem
from .video_item import VideoItem
from .image_item import ImageItem
__all__ = ['BaseItem', 'AudioItem', 'DirectoryItem', 'VideoItem', 'ImageItem', 'WatchLaterItem', 'FavoritesItem',
'SearchItem', 'NewSearchItem', 'SearchHistoryItem', 'NextPageItem', 'UriItem',
'from_json', 'to_json', 'to_jsons']

9
resources/lib/youtube_plugin/kodion/items/audio_item.py

@ -1,4 +1,11 @@
__author__ = 'bromix'
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
from .base_item import BaseItem

9
resources/lib/youtube_plugin/kodion/items/base_item.py

@ -1,3 +1,12 @@
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
from six import python_2_unicode_compatible
from six import string_types

9
resources/lib/youtube_plugin/kodion/items/directory_item.py

@ -1,3 +1,12 @@
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
from .base_item import BaseItem

9
resources/lib/youtube_plugin/kodion/items/favorites_item.py

@ -1,4 +1,11 @@
__author__ = 'bromix'
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
from .directory_item import DirectoryItem
from .. import constants

9
resources/lib/youtube_plugin/kodion/items/image_item.py

@ -1,4 +1,11 @@
__author__ = 'bromix'
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
from .base_item import BaseItem

9
resources/lib/youtube_plugin/kodion/items/new_search_item.py

@ -1,4 +1,11 @@
__author__ = 'bromix'
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
from .directory_item import DirectoryItem
from .. import constants

9
resources/lib/youtube_plugin/kodion/items/next_page_item.py

@ -1,4 +1,11 @@
__author__ = 'bromix'
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
from .directory_item import DirectoryItem
from .. import constants

9
resources/lib/youtube_plugin/kodion/items/search_history_item.py

@ -1,4 +1,11 @@
__author__ = 'bromix'
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
from .directory_item import DirectoryItem
from .. import constants

9
resources/lib/youtube_plugin/kodion/items/search_item.py

@ -1,4 +1,11 @@
__author__ = 'bromix'
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
from .directory_item import DirectoryItem
from .. import constants

9
resources/lib/youtube_plugin/kodion/items/uri_item.py

@ -1,4 +1,11 @@
__author__ = 'bromix'
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
from .base_item import BaseItem

9
resources/lib/youtube_plugin/kodion/items/utils.py

@ -1,5 +1,12 @@
# coding=utf-8
__author__ = 'bromix'
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
from six import string_types

9
resources/lib/youtube_plugin/kodion/items/video_item.py

@ -1,3 +1,12 @@
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
import re
import datetime

9
resources/lib/youtube_plugin/kodion/items/watch_later_item.py

@ -1,4 +1,11 @@
__author__ = 'bromix'
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
from .directory_item import DirectoryItem
from .. import constants

10
resources/lib/youtube_plugin/kodion/json_store/__init__.py

@ -1,7 +1,15 @@
# -*- coding: utf-8 -*-
"""
__all__ = ['JSONStore', 'APIKeyStore', 'LoginTokenStore']
Copyright (C) 2018-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
from .json_store import JSONStore
from .api_keys import APIKeyStore
from .login_tokens import LoginTokenStore
__all__ = ['JSONStore', 'APIKeyStore', 'LoginTokenStore']

9
resources/lib/youtube_plugin/kodion/logger.py

@ -1,4 +1,11 @@
__author__ = 'bromix'
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
import xbmc
import xbmcaddon

9
resources/lib/youtube_plugin/kodion/register_provider_path.py

@ -1,4 +1,11 @@
__author__ = 'bromix'
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
class RegisterProviderPath(object):

11
resources/lib/youtube_plugin/kodion/runner.py

@ -1,6 +1,11 @@
__author__ = 'bromix'
"""
__all__ = ['run']
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
import copy
import timeit
@ -10,6 +15,8 @@ from .impl import Context
from . import debug
__all__ = ['run']
__DEBUG_RUNTIME = False
__DEBUG_RUNTIME_SINGLE_FILE = False

9
resources/lib/youtube_plugin/kodion/service.py

@ -1,4 +1,11 @@
__author__ = 'bromix'
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
from datetime import datetime
import time

20
resources/lib/youtube_plugin/kodion/utils/__init__.py

@ -1,8 +1,11 @@
__all__ = ['SearchHistory', 'FavoriteList', 'WatchLaterList', 'FunctionCache', 'AccessManager', 'ViewManager',
'strip_html_from_text', 'create_path', 'create_uri_path', 'find_best_fit', 'to_unicode', 'to_utf8',
'datetime_parser', 'select_stream', 'get_http_server', 'is_httpd_live', 'YouTubeMonitor', 'playback_monitor',
'make_dirs', 'loose_version', 'ip_api', 'PlaybackHistory', 'DataCache', 'get_client_ip_address',
'SystemVersion']
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
from . import datetime_parser
from .methods import loose_version
@ -20,3 +23,10 @@ from .playback_history import PlaybackHistory
from .data_cache import DataCache
from .system_version import SystemVersion
from . import ip_api
__all__ = ['SearchHistory', 'FavoriteList', 'WatchLaterList', 'FunctionCache', 'AccessManager', 'ViewManager',
'strip_html_from_text', 'create_path', 'create_uri_path', 'find_best_fit', 'to_unicode', 'to_utf8',
'datetime_parser', 'select_stream', 'get_http_server', 'is_httpd_live', 'YouTubeMonitor', 'playback_monitor',
'make_dirs', 'loose_version', 'ip_api', 'PlaybackHistory', 'DataCache', 'get_client_ip_address',
'SystemVersion']

9
resources/lib/youtube_plugin/kodion/utils/access_manager.py

@ -1,3 +1,12 @@
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
import uuid
import time

9
resources/lib/youtube_plugin/kodion/utils/data_cache.py

@ -1,3 +1,12 @@
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
from six import PY2
from six.moves import cPickle as pickle

9
resources/lib/youtube_plugin/kodion/utils/datetime_parser.py

@ -1,4 +1,11 @@
__author__ = 'bromix'
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
import re
import time

9
resources/lib/youtube_plugin/kodion/utils/favorite_list.py

@ -1,4 +1,11 @@
__author__ = 'bromix'
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
from .storage import Storage
from .. import items

9
resources/lib/youtube_plugin/kodion/utils/function_cache.py

@ -1,3 +1,12 @@
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
from functools import partial
import hashlib
import datetime

8
resources/lib/youtube_plugin/kodion/utils/http_server.py

@ -1,3 +1,11 @@
"""
Copyright (C) 2018-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
from six.moves import BaseHTTPServer
from six.moves.urllib.parse import parse_qs, urlparse
from six.moves import xrange

8
resources/lib/youtube_plugin/kodion/utils/ip_api.py

@ -1,4 +1,12 @@
# -*- coding: utf-8 -*-
"""
Copyright (C) 2018-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
import requests

14
resources/lib/youtube_plugin/kodion/utils/methods.py

@ -1,7 +1,11 @@
__author__ = 'bromix'
"""
__all__ = ['create_path', 'create_uri_path', 'strip_html_from_text', 'print_items', 'find_best_fit', 'to_utf8',
'to_unicode', 'select_stream', 'make_dirs']
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
from six.moves import urllib
from six import next
@ -18,6 +22,10 @@ import xbmcaddon
import xbmcvfs
__all__ = ['create_path', 'create_uri_path', 'strip_html_from_text', 'print_items', 'find_best_fit', 'to_utf8',
'to_unicode', 'select_stream', 'make_dirs']
def loose_version(v):
filled = []
for point in v.split("."):

8
resources/lib/youtube_plugin/kodion/utils/monitor.py

@ -1,3 +1,11 @@
"""
Copyright (C) 2018-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
from six.moves.urllib.parse import unquote
import json

8
resources/lib/youtube_plugin/kodion/utils/playback_history.py

@ -1,3 +1,11 @@
"""
Copyright (C) 2018-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
import datetime
import sqlite3

7
resources/lib/youtube_plugin/kodion/utils/player.py

@ -1,4 +1,11 @@
# -*- coding: utf-8 -*-
"""
Copyright (C) 2018-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
import re

9
resources/lib/youtube_plugin/kodion/utils/search_history.py

@ -1,3 +1,12 @@
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
import hashlib
from .storage import Storage

9
resources/lib/youtube_plugin/kodion/utils/storage.py

@ -1,4 +1,11 @@
__author__ = 'bromix'
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
from six import PY2
from six.moves import range

9
resources/lib/youtube_plugin/kodion/utils/system_version.py

@ -1,4 +1,11 @@
__author__ = 'bromix'
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
from six.moves import map
from six import string_types

9
resources/lib/youtube_plugin/kodion/utils/view_manager.py

@ -1,4 +1,11 @@
__author__ = 'bromix'
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
from .. import constants

9
resources/lib/youtube_plugin/kodion/utils/watch_later_list.py

@ -1,4 +1,11 @@
__author__ = 'bromix'
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
import datetime

8
resources/lib/youtube_plugin/refresh.py

@ -1,4 +1,12 @@
# -*- coding: utf-8 -*-
"""
Copyright (C) 2018-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
import xbmc
if __name__ == '__main__':

11
resources/lib/youtube_plugin/youtube/__init__.py

@ -1,5 +1,12 @@
__author__ = 'bromix'
"""
__all__ = ['Provider']
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
from .provider import Provider
__all__ = ['Provider']

7
resources/lib/youtube_plugin/youtube/client/__config__.py

@ -1,4 +1,11 @@
# -*- coding: utf-8 -*-
"""
Copyright (C) 2017-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
from base64 import b64decode
from hashlib import md5

11
resources/lib/youtube_plugin/youtube/client/__init__.py

@ -1,5 +1,12 @@
__author__ = 'bromix'
"""
__all__ = ['YouTube']
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
from .youtube import YouTube
__all__ = ['YouTube']

9
resources/lib/youtube_plugin/youtube/client/login_client.py

@ -1,4 +1,11 @@
__author__ = 'bromix'
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
from six.moves import urllib

9
resources/lib/youtube_plugin/youtube/client/youtube.py

@ -1,4 +1,11 @@
__author__ = 'bromix'
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
import copy
import traceback

9
resources/lib/youtube_plugin/youtube/helper/__init__.py

@ -1,4 +1,11 @@
__author__ = 'bromix'
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
from .resource_manager import ResourceManager
from .url_resolver import UrlResolver

9
resources/lib/youtube_plugin/youtube/helper/resource_manager.py

@ -1,4 +1,11 @@
__author__ = 'bromix'
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
from ...kodion.utils import FunctionCache, DataCache, strip_html_from_text

13
resources/lib/youtube_plugin/youtube/helper/signature/__init__.py

@ -1,3 +1,14 @@
__all__ = ['Cipher']
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
from ....youtube.helper.signature.cipher import Cipher
__all__ = ['Cipher']

9
resources/lib/youtube_plugin/youtube/helper/signature/cipher.py

@ -1,4 +1,11 @@
__author__ = 'bromix'
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
from six.moves import range

10
resources/lib/youtube_plugin/youtube/helper/signature/json_script_engine.py

@ -1,4 +1,12 @@
__author__ = 'bromix'
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
from six.moves import range

7
resources/lib/youtube_plugin/youtube/helper/subtitles.py

@ -1,4 +1,11 @@
# -*- coding: utf-8 -*-
"""
Copyright (C) 2017-2018 plugin.video.youtube