npo.py 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577
  1. from __future__ import unicode_literals
  2. import re
  3. from .common import InfoExtractor
  4. from ..compat import (
  5. compat_HTTPError,
  6. compat_str,
  7. )
  8. from ..utils import (
  9. determine_ext,
  10. ExtractorError,
  11. fix_xml_ampersands,
  12. orderedSet,
  13. parse_duration,
  14. qualities,
  15. strip_jsonp,
  16. unified_strdate,
  17. )
  18. class NPOBaseIE(InfoExtractor):
  19. def _get_token(self, video_id):
  20. return self._download_json(
  21. 'http://ida.omroep.nl/app.php/auth', video_id,
  22. note='Downloading token')['token']
  23. class NPOIE(NPOBaseIE):
  24. IE_NAME = 'npo'
  25. IE_DESC = 'npo.nl and ntr.nl'
  26. _VALID_URL = r'''(?x)
  27. (?:
  28. npo:|
  29. https?://
  30. (?:www\.)?
  31. (?:
  32. npo\.nl/(?!live|radio)(?:[^/]+/){2}|
  33. ntr\.nl/(?:[^/]+/){2,}|
  34. omroepwnl\.nl/video/fragment/[^/]+__|
  35. zapp\.nl/[^/]+/[^/]+/
  36. )
  37. )
  38. (?P<id>[^/?#]+)
  39. '''
  40. _TESTS = [{
  41. 'url': 'http://www.npo.nl/nieuwsuur/22-06-2014/VPWON_1220719',
  42. 'md5': '4b3f9c429157ec4775f2c9cb7b911016',
  43. 'info_dict': {
  44. 'id': 'VPWON_1220719',
  45. 'ext': 'm4v',
  46. 'title': 'Nieuwsuur',
  47. 'description': 'Dagelijks tussen tien en elf: nieuws, sport en achtergronden.',
  48. 'upload_date': '20140622',
  49. },
  50. }, {
  51. 'url': 'http://www.npo.nl/de-mega-mike-mega-thomas-show/27-02-2009/VARA_101191800',
  52. 'md5': 'da50a5787dbfc1603c4ad80f31c5120b',
  53. 'info_dict': {
  54. 'id': 'VARA_101191800',
  55. 'ext': 'm4v',
  56. 'title': 'De Mega Mike & Mega Thomas show: The best of.',
  57. 'description': 'md5:3b74c97fc9d6901d5a665aac0e5400f4',
  58. 'upload_date': '20090227',
  59. 'duration': 2400,
  60. },
  61. }, {
  62. 'url': 'http://www.npo.nl/tegenlicht/25-02-2013/VPWON_1169289',
  63. 'md5': 'f8065e4e5a7824068ed3c7e783178f2c',
  64. 'info_dict': {
  65. 'id': 'VPWON_1169289',
  66. 'ext': 'm4v',
  67. 'title': 'Tegenlicht: Zwart geld. De toekomst komt uit Afrika',
  68. 'description': 'md5:52cf4eefbc96fffcbdc06d024147abea',
  69. 'upload_date': '20130225',
  70. 'duration': 3000,
  71. },
  72. }, {
  73. 'url': 'http://www.npo.nl/de-nieuwe-mens-deel-1/21-07-2010/WO_VPRO_043706',
  74. 'info_dict': {
  75. 'id': 'WO_VPRO_043706',
  76. 'ext': 'm4v',
  77. 'title': 'De nieuwe mens - Deel 1',
  78. 'description': 'md5:518ae51ba1293ffb80d8d8ce90b74e4b',
  79. 'duration': 4680,
  80. },
  81. 'params': {
  82. 'skip_download': True,
  83. }
  84. }, {
  85. # non asf in streams
  86. 'url': 'http://www.npo.nl/hoe-gaat-europa-verder-na-parijs/10-01-2015/WO_NOS_762771',
  87. 'info_dict': {
  88. 'id': 'WO_NOS_762771',
  89. 'ext': 'mp4',
  90. 'title': 'Hoe gaat Europa verder na Parijs?',
  91. },
  92. 'params': {
  93. 'skip_download': True,
  94. }
  95. }, {
  96. 'url': 'http://www.ntr.nl/Aap-Poot-Pies/27/detail/Aap-poot-pies/VPWON_1233944#content',
  97. 'info_dict': {
  98. 'id': 'VPWON_1233944',
  99. 'ext': 'm4v',
  100. 'title': 'Aap, poot, pies',
  101. 'description': 'md5:c9c8005d1869ae65b858e82c01a91fde',
  102. 'upload_date': '20150508',
  103. 'duration': 599,
  104. },
  105. 'params': {
  106. 'skip_download': True,
  107. }
  108. }, {
  109. 'url': 'http://www.omroepwnl.nl/video/fragment/vandaag-de-dag-verkiezingen__POMS_WNL_853698',
  110. 'info_dict': {
  111. 'id': 'POW_00996502',
  112. 'ext': 'm4v',
  113. 'title': '''"Dit is wel een 'landslide'..."''',
  114. 'description': 'md5:f8d66d537dfb641380226e31ca57b8e8',
  115. 'upload_date': '20150508',
  116. 'duration': 462,
  117. },
  118. 'params': {
  119. 'skip_download': True,
  120. }
  121. }, {
  122. 'url': 'http://www.zapp.nl/de-bzt-show/gemist/KN_1687547',
  123. 'only_matching': True,
  124. }, {
  125. 'url': 'http://www.zapp.nl/de-bzt-show/filmpjes/POMS_KN_7315118',
  126. 'only_matching': True,
  127. }, {
  128. 'url': 'http://www.zapp.nl/beste-vrienden-quiz/extra-video-s/WO_NTR_1067990',
  129. 'only_matching': True,
  130. }, {
  131. # live stream
  132. 'url': 'npo:LI_NL1_4188102',
  133. 'only_matching': True,
  134. }]
  135. def _real_extract(self, url):
  136. video_id = self._match_id(url)
  137. return self._get_info(video_id)
  138. def _get_info(self, video_id):
  139. metadata = self._download_json(
  140. 'http://e.omroep.nl/metadata/%s' % video_id,
  141. video_id,
  142. # We have to remove the javascript callback
  143. transform_source=strip_jsonp,
  144. )
  145. # For some videos actual video id (prid) is different (e.g. for
  146. # http://www.omroepwnl.nl/video/fragment/vandaag-de-dag-verkiezingen__POMS_WNL_853698
  147. # video id is POMS_WNL_853698 but prid is POW_00996502)
  148. video_id = metadata.get('prid') or video_id
  149. # titel is too generic in some cases so utilize aflevering_titel as well
  150. # when available (e.g. http://tegenlicht.vpro.nl/afleveringen/2014-2015/access-to-africa.html)
  151. title = metadata['titel']
  152. sub_title = metadata.get('aflevering_titel')
  153. if sub_title and sub_title != title:
  154. title += ': %s' % sub_title
  155. token = self._get_token(video_id)
  156. formats = []
  157. urls = set()
  158. quality = qualities(['adaptive', 'wmv_sb', 'h264_sb', 'wmv_bb', 'h264_bb', 'wvc1_std', 'h264_std'])
  159. items = self._download_json(
  160. 'http://ida.omroep.nl/app.php/%s' % video_id, video_id,
  161. 'Downloading formats JSON', query={
  162. 'adaptive': 'yes',
  163. 'token': token,
  164. })['items'][0]
  165. for num, item in enumerate(items):
  166. item_url = item.get('url')
  167. if not item_url or item_url in urls:
  168. continue
  169. urls.add(item_url)
  170. format_id = self._search_regex(
  171. r'video/ida/([^/]+)', item_url, 'format id',
  172. default=None)
  173. def add_format_url(format_url):
  174. formats.append({
  175. 'url': format_url,
  176. 'format_id': format_id,
  177. 'quality': quality(format_id),
  178. })
  179. # Example: http://www.npo.nl/de-nieuwe-mens-deel-1/21-07-2010/WO_VPRO_043706
  180. if item.get('contentType') == 'url':
  181. add_format_url(item_url)
  182. continue
  183. try:
  184. stream_info = self._download_json(
  185. item_url + '&type=json', video_id,
  186. 'Downloading %s stream JSON'
  187. % item.get('label') or format_id or num)
  188. except ExtractorError as ee:
  189. if isinstance(ee.cause, compat_HTTPError) and ee.cause.code == 404:
  190. error = (self._parse_json(
  191. ee.cause.read().decode(), video_id,
  192. fatal=False) or {}).get('errorstring')
  193. if error:
  194. raise ExtractorError(error, expected=True)
  195. raise
  196. # Stream URL instead of JSON, example: npo:LI_NL1_4188102
  197. if isinstance(stream_info, compat_str):
  198. if not stream_info.startswith('http'):
  199. continue
  200. video_url = stream_info
  201. # JSON
  202. else:
  203. video_url = stream_info.get('url')
  204. if not video_url or video_url in urls:
  205. continue
  206. urls.add(item_url)
  207. if determine_ext(video_url) == 'm3u8':
  208. formats.extend(self._extract_m3u8_formats(
  209. video_url, video_id, ext='mp4',
  210. entry_protocol='m3u8_native', m3u8_id='hls', fatal=False))
  211. else:
  212. add_format_url(video_url)
  213. is_live = metadata.get('medium') == 'live'
  214. if not is_live:
  215. for num, stream in enumerate(metadata.get('streams', [])):
  216. stream_url = stream.get('url')
  217. if not stream_url or stream_url in urls:
  218. continue
  219. urls.add(stream_url)
  220. # smooth streaming is not supported
  221. stream_type = stream.get('type', '').lower()
  222. if stream_type in ['ss', 'ms']:
  223. continue
  224. if stream_type == 'hds':
  225. f4m_formats = self._extract_f4m_formats(
  226. stream_url, video_id, fatal=False)
  227. # f4m downloader downloads only piece of live stream
  228. for f4m_format in f4m_formats:
  229. f4m_format['preference'] = -1
  230. formats.extend(f4m_formats)
  231. elif stream_type == 'hls':
  232. formats.extend(self._extract_m3u8_formats(
  233. stream_url, video_id, ext='mp4', fatal=False))
  234. # Example: http://www.npo.nl/de-nieuwe-mens-deel-1/21-07-2010/WO_VPRO_043706
  235. elif '.asf' in stream_url:
  236. asx = self._download_xml(
  237. stream_url, video_id,
  238. 'Downloading stream %d ASX playlist' % num,
  239. transform_source=fix_xml_ampersands, fatal=False)
  240. if not asx:
  241. continue
  242. ref = asx.find('./ENTRY/Ref')
  243. if ref is None:
  244. continue
  245. video_url = ref.get('href')
  246. if not video_url or video_url in urls:
  247. continue
  248. urls.add(video_url)
  249. formats.append({
  250. 'url': video_url,
  251. 'ext': stream.get('formaat', 'asf'),
  252. 'quality': stream.get('kwaliteit'),
  253. 'preference': -10,
  254. })
  255. else:
  256. formats.append({
  257. 'url': stream_url,
  258. 'quality': stream.get('kwaliteit'),
  259. })
  260. self._sort_formats(formats)
  261. subtitles = {}
  262. if metadata.get('tt888') == 'ja':
  263. subtitles['nl'] = [{
  264. 'ext': 'vtt',
  265. 'url': 'http://tt888.omroep.nl/tt888/%s' % video_id,
  266. }]
  267. return {
  268. 'id': video_id,
  269. 'title': self._live_title(title) if is_live else title,
  270. 'description': metadata.get('info'),
  271. 'thumbnail': metadata.get('images', [{'url': None}])[-1]['url'],
  272. 'upload_date': unified_strdate(metadata.get('gidsdatum')),
  273. 'duration': parse_duration(metadata.get('tijdsduur')),
  274. 'formats': formats,
  275. 'subtitles': subtitles,
  276. 'is_live': is_live,
  277. }
  278. class NPOLiveIE(NPOBaseIE):
  279. IE_NAME = 'npo.nl:live'
  280. _VALID_URL = r'https?://(?:www\.)?npo\.nl/live/(?P<id>[^/?#&]+)'
  281. _TEST = {
  282. 'url': 'http://www.npo.nl/live/npo-1',
  283. 'info_dict': {
  284. 'id': 'LI_NL1_4188102',
  285. 'display_id': 'npo-1',
  286. 'ext': 'mp4',
  287. 'title': 're:^NPO 1 [0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}$',
  288. 'is_live': True,
  289. },
  290. 'params': {
  291. 'skip_download': True,
  292. }
  293. }
  294. def _real_extract(self, url):
  295. display_id = self._match_id(url)
  296. webpage = self._download_webpage(url, display_id)
  297. live_id = self._search_regex(
  298. r'data-prid="([^"]+)"', webpage, 'live id')
  299. return {
  300. '_type': 'url_transparent',
  301. 'url': 'npo:%s' % live_id,
  302. 'ie_key': NPOIE.ie_key(),
  303. 'id': live_id,
  304. 'display_id': display_id,
  305. }
  306. class NPORadioIE(InfoExtractor):
  307. IE_NAME = 'npo.nl:radio'
  308. _VALID_URL = r'https?://(?:www\.)?npo\.nl/radio/(?P<id>[^/]+)/?$'
  309. _TEST = {
  310. 'url': 'http://www.npo.nl/radio/radio-1',
  311. 'info_dict': {
  312. 'id': 'radio-1',
  313. 'ext': 'mp3',
  314. 'title': 're:^NPO Radio 1 [0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}$',
  315. 'is_live': True,
  316. },
  317. 'params': {
  318. 'skip_download': True,
  319. }
  320. }
  321. @staticmethod
  322. def _html_get_attribute_regex(attribute):
  323. return r'{0}\s*=\s*\'([^\']+)\''.format(attribute)
  324. def _real_extract(self, url):
  325. video_id = self._match_id(url)
  326. webpage = self._download_webpage(url, video_id)
  327. title = self._html_search_regex(
  328. self._html_get_attribute_regex('data-channel'), webpage, 'title')
  329. stream = self._parse_json(
  330. self._html_search_regex(self._html_get_attribute_regex('data-streams'), webpage, 'data-streams'),
  331. video_id)
  332. codec = stream.get('codec')
  333. return {
  334. 'id': video_id,
  335. 'url': stream['url'],
  336. 'title': self._live_title(title),
  337. 'acodec': codec,
  338. 'ext': codec,
  339. 'is_live': True,
  340. }
  341. class NPORadioFragmentIE(InfoExtractor):
  342. IE_NAME = 'npo.nl:radio:fragment'
  343. _VALID_URL = r'https?://(?:www\.)?npo\.nl/radio/[^/]+/fragment/(?P<id>\d+)'
  344. _TEST = {
  345. 'url': 'http://www.npo.nl/radio/radio-5/fragment/174356',
  346. 'md5': 'dd8cc470dad764d0fdc70a9a1e2d18c2',
  347. 'info_dict': {
  348. 'id': '174356',
  349. 'ext': 'mp3',
  350. 'title': 'Jubileumconcert Willeke Alberti',
  351. },
  352. }
  353. def _real_extract(self, url):
  354. audio_id = self._match_id(url)
  355. webpage = self._download_webpage(url, audio_id)
  356. title = self._html_search_regex(
  357. r'href="/radio/[^/]+/fragment/%s" title="([^"]+)"' % audio_id,
  358. webpage, 'title')
  359. audio_url = self._search_regex(
  360. r"data-streams='([^']+)'", webpage, 'audio url')
  361. return {
  362. 'id': audio_id,
  363. 'url': audio_url,
  364. 'title': title,
  365. }
  366. class NPODataMidEmbedIE(InfoExtractor):
  367. def _real_extract(self, url):
  368. display_id = self._match_id(url)
  369. webpage = self._download_webpage(url, display_id)
  370. video_id = self._search_regex(
  371. r'data-mid=(["\'])(?P<id>(?:(?!\1).)+)\1', webpage, 'video_id', group='id')
  372. return {
  373. '_type': 'url_transparent',
  374. 'ie_key': 'NPO',
  375. 'url': 'npo:%s' % video_id,
  376. 'display_id': display_id
  377. }
  378. class SchoolTVIE(NPODataMidEmbedIE):
  379. IE_NAME = 'schooltv'
  380. _VALID_URL = r'https?://(?:www\.)?schooltv\.nl/video/(?P<id>[^/?#&]+)'
  381. _TEST = {
  382. 'url': 'http://www.schooltv.nl/video/ademhaling-de-hele-dag-haal-je-adem-maar-wat-gebeurt-er-dan-eigenlijk-in-je-lichaam/',
  383. 'info_dict': {
  384. 'id': 'WO_NTR_429477',
  385. 'display_id': 'ademhaling-de-hele-dag-haal-je-adem-maar-wat-gebeurt-er-dan-eigenlijk-in-je-lichaam',
  386. 'title': 'Ademhaling: De hele dag haal je adem. Maar wat gebeurt er dan eigenlijk in je lichaam?',
  387. 'ext': 'mp4',
  388. 'description': 'md5:abfa0ff690adb73fd0297fd033aaa631'
  389. },
  390. 'params': {
  391. # Skip because of m3u8 download
  392. 'skip_download': True
  393. }
  394. }
  395. class HetKlokhuisIE(NPODataMidEmbedIE):
  396. IE_NAME = 'hetklokhuis'
  397. _VALID_URL = r'https?://(?:www\.)?hetklokhuis.nl/[^/]+/\d+/(?P<id>[^/?#&]+)'
  398. _TEST = {
  399. 'url': 'http://hetklokhuis.nl/tv-uitzending/3471/Zwaartekrachtsgolven',
  400. 'info_dict': {
  401. 'id': 'VPWON_1260528',
  402. 'display_id': 'Zwaartekrachtsgolven',
  403. 'ext': 'm4v',
  404. 'title': 'Het Klokhuis: Zwaartekrachtsgolven',
  405. 'description': 'md5:c94f31fb930d76c2efa4a4a71651dd48',
  406. 'upload_date': '20170223',
  407. },
  408. 'params': {
  409. 'skip_download': True
  410. }
  411. }
  412. class NPOPlaylistBaseIE(NPOIE):
  413. def _real_extract(self, url):
  414. playlist_id = self._match_id(url)
  415. webpage = self._download_webpage(url, playlist_id)
  416. entries = [
  417. self.url_result('npo:%s' % video_id if not video_id.startswith('http') else video_id)
  418. for video_id in orderedSet(re.findall(self._PLAYLIST_ENTRY_RE, webpage))
  419. ]
  420. playlist_title = self._html_search_regex(
  421. self._PLAYLIST_TITLE_RE, webpage, 'playlist title',
  422. default=None) or self._og_search_title(webpage)
  423. return self.playlist_result(entries, playlist_id, playlist_title)
  424. class VPROIE(NPOPlaylistBaseIE):
  425. IE_NAME = 'vpro'
  426. _VALID_URL = r'https?://(?:www\.)?(?:(?:tegenlicht\.)?vpro|2doc)\.nl/(?:[^/]+/)*(?P<id>[^/]+)\.html'
  427. _PLAYLIST_TITLE_RE = (r'<h1[^>]+class=["\'].*?\bmedia-platform-title\b.*?["\'][^>]*>([^<]+)',
  428. r'<h5[^>]+class=["\'].*?\bmedia-platform-subtitle\b.*?["\'][^>]*>([^<]+)')
  429. _PLAYLIST_ENTRY_RE = r'data-media-id="([^"]+)"'
  430. _TESTS = [
  431. {
  432. 'url': 'http://tegenlicht.vpro.nl/afleveringen/2012-2013/de-toekomst-komt-uit-afrika.html',
  433. 'md5': 'f8065e4e5a7824068ed3c7e783178f2c',
  434. 'info_dict': {
  435. 'id': 'VPWON_1169289',
  436. 'ext': 'm4v',
  437. 'title': 'De toekomst komt uit Afrika',
  438. 'description': 'md5:52cf4eefbc96fffcbdc06d024147abea',
  439. 'upload_date': '20130225',
  440. },
  441. 'skip': 'Video gone',
  442. },
  443. {
  444. 'url': 'http://www.vpro.nl/programmas/2doc/2015/sergio-herman.html',
  445. 'info_dict': {
  446. 'id': 'sergio-herman',
  447. 'title': 'sergio herman: fucking perfect',
  448. },
  449. 'playlist_count': 2,
  450. },
  451. {
  452. # playlist with youtube embed
  453. 'url': 'http://www.vpro.nl/programmas/2doc/2015/education-education.html',
  454. 'info_dict': {
  455. 'id': 'education-education',
  456. 'title': 'education education',
  457. },
  458. 'playlist_count': 2,
  459. },
  460. {
  461. 'url': 'http://www.2doc.nl/documentaires/series/2doc/2015/oktober/de-tegenprestatie.html',
  462. 'info_dict': {
  463. 'id': 'de-tegenprestatie',
  464. 'title': 'De Tegenprestatie',
  465. },
  466. 'playlist_count': 2,
  467. }, {
  468. 'url': 'http://www.2doc.nl/speel~VARA_101375237~mh17-het-verdriet-van-nederland~.html',
  469. 'info_dict': {
  470. 'id': 'VARA_101375237',
  471. 'ext': 'm4v',
  472. 'title': 'MH17: Het verdriet van Nederland',
  473. 'description': 'md5:09e1a37c1fdb144621e22479691a9f18',
  474. 'upload_date': '20150716',
  475. },
  476. 'params': {
  477. # Skip because of m3u8 download
  478. 'skip_download': True
  479. },
  480. }
  481. ]
  482. class WNLIE(NPOPlaylistBaseIE):
  483. IE_NAME = 'wnl'
  484. _VALID_URL = r'https?://(?:www\.)?omroepwnl\.nl/video/detail/(?P<id>[^/]+)__\d+'
  485. _PLAYLIST_TITLE_RE = r'(?s)<h1[^>]+class="subject"[^>]*>(.+?)</h1>'
  486. _PLAYLIST_ENTRY_RE = r'<a[^>]+href="([^"]+)"[^>]+class="js-mid"[^>]*>Deel \d+'
  487. _TESTS = [{
  488. 'url': 'http://www.omroepwnl.nl/video/detail/vandaag-de-dag-6-mei__060515',
  489. 'info_dict': {
  490. 'id': 'vandaag-de-dag-6-mei',
  491. 'title': 'Vandaag de Dag 6 mei',
  492. },
  493. 'playlist_count': 4,
  494. }]
  495. class AndereTijdenIE(NPOPlaylistBaseIE):
  496. IE_NAME = 'anderetijden'
  497. _VALID_URL = r'https?://(?:www\.)?anderetijden\.nl/programma/(?:[^/]+/)+(?P<id>[^/?#&]+)'
  498. _PLAYLIST_TITLE_RE = r'(?s)<h1[^>]+class=["\'].*?\bpage-title\b.*?["\'][^>]*>(.+?)</h1>'
  499. _PLAYLIST_ENTRY_RE = r'<figure[^>]+class=["\']episode-container episode-page["\'][^>]+data-prid=["\'](.+?)["\']'
  500. _TESTS = [{
  501. 'url': 'http://anderetijden.nl/programma/1/Andere-Tijden/aflevering/676/Duitse-soldaten-over-de-Slag-bij-Arnhem',
  502. 'info_dict': {
  503. 'id': 'Duitse-soldaten-over-de-Slag-bij-Arnhem',
  504. 'title': 'Duitse soldaten over de Slag bij Arnhem',
  505. },
  506. 'playlist_count': 3,
  507. }]