logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

unsupported.py (7825B)


  1. from .common import InfoExtractor
  2. from ..utils import ExtractorError, classproperty, remove_start
  3. class UnsupportedInfoExtractor(InfoExtractor):
  4. IE_DESC = False
  5. URLS = () # Redefine in subclasses
  6. @classproperty
  7. def IE_NAME(cls):
  8. return remove_start(super().IE_NAME, 'Known')
  9. @classproperty
  10. def _VALID_URL(cls):
  11. return rf'https?://(?:www\.)?(?:{"|".join(cls.URLS)})'
  12. LF = '\n '
  13. class KnownDRMIE(UnsupportedInfoExtractor):
  14. """Sites that are known to use DRM for all their videos
  15. Add to this list only if:
  16. * You are reasonably certain that the site uses DRM for ALL their videos
  17. * Multiple users have asked about this site on github/discord
  18. """
  19. URLS = (
  20. r'play\.hbomax\.com',
  21. r'channel(?:4|5)\.com',
  22. r'peacocktv\.com',
  23. r'(?:[\w\.]+\.)?disneyplus\.com',
  24. r'open\.spotify\.com/(?:track|playlist|album|artist)',
  25. r'tvnz\.co\.nz',
  26. r'oneplus\.ch',
  27. r'artstation\.com/learning/courses',
  28. r'philo\.com',
  29. r'(?:[\w\.]+\.)?mech-plus\.com',
  30. r'aha\.video',
  31. r'mubi\.com',
  32. r'vootkids\.com',
  33. r'nowtv\.it/watch',
  34. r'tv\.apple\.com',
  35. r'primevideo\.com',
  36. r'hulu\.com',
  37. r'resource\.inkryptvideos\.com',
  38. r'joyn\.de',
  39. r'amazon\.(?:\w{2}\.)?\w+/gp/video',
  40. r'music\.amazon\.(?:\w{2}\.)?\w+',
  41. r'(?:watch|front)\.njpwworld\.com',
  42. r'qub\.ca/vrai',
  43. )
  44. _TESTS = [{
  45. # https://github.com/yt-dlp/yt-dlp/issues/4309
  46. 'url': 'https://peacocktv.com/watch/playback/vod/GMO_00000000073159_01/f9d03003-eb04-3c7f-a7b6-a83ab7eb55bc',
  47. 'only_matching': True,
  48. }, {
  49. # https://github.com/yt-dlp/yt-dlp/issues/1719,
  50. 'url': 'https://www.channel4.com/programmes/gurren-lagann/on-demand/69960-001',
  51. 'only_matching': True,
  52. }, {
  53. # https://github.com/yt-dlp/yt-dlp/issues/1548
  54. 'url': 'https://www.channel5.com/show/uk-s-strongest-man-2021/season-2021/episode-1',
  55. 'only_matching': True,
  56. }, {
  57. 'url': r'https://hsesn.apps.disneyplus.com',
  58. 'only_matching': True,
  59. }, {
  60. 'url': r'https://www.disneyplus.com',
  61. 'only_matching': True,
  62. }, {
  63. 'url': 'https://open.spotify.com/artist/',
  64. 'only_matching': True,
  65. }, {
  66. 'url': 'https://open.spotify.com/track/',
  67. 'only_matching': True,
  68. }, {
  69. # https://github.com/yt-dlp/yt-dlp/issues/4122
  70. 'url': 'https://www.tvnz.co.nz/shows/ice-airport-alaska/episodes/s1-e1',
  71. 'only_matching': True,
  72. }, {
  73. # https://github.com/yt-dlp/yt-dlp/issues/1922
  74. 'url': 'https://www.oneplus.ch/play/1008188',
  75. 'only_matching': True,
  76. }, {
  77. # https://github.com/yt-dlp/yt-dlp/issues/1140
  78. 'url': 'https://www.artstation.com/learning/courses/dqQ/character-design-masterclass-with-serge-birault/chapters/Rxn3/introduction',
  79. 'only_matching': True,
  80. }, {
  81. # https://github.com/yt-dlp/yt-dlp/issues/3544
  82. 'url': 'https://www.philo.com/player/player/vod/Vk9EOjYwODU0ODg5OTY0ODY0OTQ5NA',
  83. 'only_matching': True,
  84. }, {
  85. # https://github.com/yt-dlp/yt-dlp/issues/3533
  86. 'url': 'https://www.mech-plus.com/player/24892/stream?assetType=episodes&playlist_id=6',
  87. 'only_matching': True,
  88. }, {
  89. 'url': 'https://watch.mech-plus.com/details/25240?playlist_id=6',
  90. 'only_matching': True,
  91. }, {
  92. # https://github.com/yt-dlp/yt-dlp/issues/2934
  93. 'url': 'https://www.aha.video/player/movie/lucky-man',
  94. 'only_matching': True,
  95. }, {
  96. # https://github.com/yt-dlp/yt-dlp/issues/2743
  97. 'url': 'https://mubi.com/films/the-night-doctor',
  98. 'only_matching': True,
  99. }, {
  100. # https://github.com/yt-dlp/yt-dlp/issues/3287
  101. 'url': 'https://www.vootkids.com/movies/chhota-bheem-the-rise-of-kirmada/764459',
  102. 'only_matching': True,
  103. }, {
  104. # https://github.com/yt-dlp/yt-dlp/issues/2744
  105. 'url': 'https://www.nowtv.it/watch/home/asset/and-just-like-that/skyserie_f8fe979772e8437d8a61ab83b6d293e9/seasons/1/episodes/8/R_126182_HD',
  106. 'only_matching': True,
  107. }, {
  108. # https://github.com/yt-dlp/yt-dlp/issues/5557
  109. 'url': 'https://tv.apple.com/it/show/loot---una-fortuna/umc.cmc.5erbujil1mpazuerhr1udnk45?ctx_brand=tvs.sbd.4000',
  110. 'only_matching': True,
  111. }, {
  112. # https://github.com/yt-dlp/yt-dlp/issues/3072
  113. 'url': 'https://www.joyn.de/play/serien/clannad/1-1-wo-die-kirschblueten-fallen',
  114. 'only_matching': True,
  115. }, {
  116. # https://github.com/yt-dlp/yt-dlp/issues/7323
  117. 'url': 'https://music.amazon.co.jp/albums/B088Y368TK',
  118. 'only_matching': True,
  119. }, {
  120. # https://github.com/yt-dlp/yt-dlp/issues/7323
  121. 'url': 'https://www.amazon.co.jp/gp/video/detail/B09X5HBYRS/',
  122. 'only_matching': True,
  123. }, {
  124. # https://github.com/yt-dlp/yt-dlp/issues/6125
  125. 'url': 'https://www.primevideo.com/region/eu/detail/0H3DDB4KBJFNDCKKLHNRLRLVKQ/ref=atv_br_def_r_br_c_unkc_1_10',
  126. 'only_matching': True,
  127. }, {
  128. # https://github.com/yt-dlp/yt-dlp/issues/5740
  129. 'url': 'https://resource.inkryptvideos.com/v2-a83ns52/iframe/index.html#video_id=7999ea0f6e03439eb40d056258c2d736&otp=xxx',
  130. 'only_matching': True,
  131. }, {
  132. # https://github.com/yt-dlp/yt-dlp/issues/5767
  133. 'url': 'https://www.hulu.com/movie/anthem-6b25fac9-da2b-45a3-8e09-e4156b0471cc',
  134. 'only_matching': True,
  135. }, {
  136. # https://github.com/yt-dlp/yt-dlp/pull/8570
  137. 'url': 'https://watch.njpwworld.com/player/36447/series?assetType=series',
  138. 'only_matching': True,
  139. }, {
  140. 'url': 'https://front.njpwworld.com/p/s_series_00563_16_bs',
  141. 'only_matching': True,
  142. }, {
  143. 'url': 'https://www.qub.ca/vrai/l-effet-bocuse-d-or/saison-1/l-effet-bocuse-d-or-saison-1-bande-annonce-1098225063',
  144. 'only_matching': True,
  145. }]
  146. def _real_extract(self, url):
  147. raise ExtractorError(
  148. f'The requested site is known to use DRM protection. '
  149. f'It will {self._downloader._format_err("NOT", self._downloader.Styles.EMPHASIS)} be supported.{LF}'
  150. f'Please {self._downloader._format_err("DO NOT", self._downloader.Styles.ERROR)} open an issue, '
  151. 'unless you have evidence that the video is not DRM protected', expected=True)
  152. class KnownPiracyIE(UnsupportedInfoExtractor):
  153. """Sites that have been deemed to be piracy
  154. In order for this to not end up being a catalog of piracy sites,
  155. only sites that were once supported should be added to this list
  156. """
  157. URLS = (
  158. r'dood\.(?:to|watch|so|pm|wf|re)',
  159. # Sites youtube-dl supports, but we won't
  160. r'viewsb\.com',
  161. r'filemoon\.sx',
  162. r'hentai\.animestigma\.com',
  163. r'thisav\.com',
  164. r'gounlimited\.to',
  165. r'highstream\.tv',
  166. r'uqload\.com',
  167. r'vedbam\.xyz',
  168. r'vadbam\.net'
  169. r'vidlo\.us',
  170. r'wolfstream\.tv',
  171. r'xvideosharing\.com',
  172. r'(?:\w+\.)?viidshar\.com',
  173. r'sxyprn\.com',
  174. r'jable\.tv',
  175. r'91porn\.com',
  176. r'einthusan\.(?:tv|com|ca)',
  177. r'yourupload\.com',
  178. )
  179. _TESTS = [{
  180. 'url': 'http://dood.to/e/5s1wmbdacezb',
  181. 'only_matching': True,
  182. }, {
  183. 'url': 'https://thisav.com/en/terms',
  184. 'only_matching': True,
  185. }]
  186. def _real_extract(self, url):
  187. raise ExtractorError(
  188. f'This website is no longer supported since it has been determined to be primarily used for piracy.{LF}'
  189. f'{self._downloader._format_err("DO NOT", self._downloader.Styles.ERROR)} open issues for it', expected=True)