Add a preliminary patch to restore raiplay.it support - pkgsrc-localpatches - leot's pkgsrc LOCALPATCHES
 (HTM) hg clone https://bitbucket.org/iamleot/pkgsrc-localpatches
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
 (DIR) changeset c34f3c27681a61a7125e35e546dce8000222031e
 (DIR) parent 33ff684b0651103846cf872022f7aa2c6171604d
 (HTM) Author: Leonardo Taccari <iamleot@gmail.com>
       Date:   Sun,  3 Nov 2019 23:30:18 
       
       Add a preliminary patch to restore raiplay.it support
       
       Diffstat:
        net/youtube-dl/patch-youtube__dl_extractor_rai.py |  75 +++++++++++++++++++++++
        1 files changed, 75 insertions(+), 0 deletions(-)
       ---
       diff -r 33ff684b0651 -r c34f3c27681a net/youtube-dl/patch-youtube__dl_extractor_rai.py
       --- /dev/null   Thu Jan 01 00:00:00 1970 +0000
       +++ b/net/youtube-dl/patch-youtube__dl_extractor_rai.py Sun Nov 03 23:30:18 2019 +0100
       @@ -0,0 +1,75 @@
       +$NetBSD$
       +
       +Preliminary workaround for raiplay.it updates... Only RaiPlay
       +extractor was analyzed and adjusted.
       +
       +--- youtube_dl/extractor/rai.py.orig
       ++++ youtube_dl/extractor/rai.py
       +@@ -124,39 +124,17 @@ class RaiBaseIE(InfoExtractor):
       + class RaiPlayIE(RaiBaseIE):
       +     _VALID_URL = r'(?P<url>https?://(?:www\.)?raiplay\.it/.+?-(?P<id>%s)\.html)' % RaiBaseIE._UUID_RE
       +     _TESTS = [{
       +-        'url': 'http://www.raiplay.it/video/2016/10/La-Casa-Bianca-e06118bb-59a9-4636-b914-498e4cfd2c66.html?source=twitter',
       +-        'md5': '340aa3b7afb54bfd14a8c11786450d76',
       +-        'info_dict': {
       +-            'id': 'e06118bb-59a9-4636-b914-498e4cfd2c66',
       +-            'ext': 'mp4',
       +-            'title': 'La Casa Bianca',
       +-            'alt_title': 'S2016 - Puntata del 23/10/2016',
       +-            'description': 'md5:a09d45890850458077d1f68bb036e0a5',
       +-            'thumbnail': r're:^https?://.*\.jpg$',
       +-            'uploader': 'Rai 3',
       +-            'creator': 'Rai 3',
       +-            'duration': 3278,
       +-            'timestamp': 1477764300,
       +-            'upload_date': '20161029',
       +-            'series': 'La Casa Bianca',
       +-            'season': '2016',
       +-        },
       +-    }, {
       +         'url': 'http://www.raiplay.it/video/2014/04/Report-del-07042014-cb27157f-9dd0-4aee-b788-b1f67643a391.html',
       +         'md5': '8970abf8caf8aef4696e7b1f2adfc696',
       +         'info_dict': {
       +             'id': 'cb27157f-9dd0-4aee-b788-b1f67643a391',
       +             'ext': 'mp4',
       +             'title': 'Report del 07/04/2014',
       +-            'alt_title': 'S2013/14 - Puntata del 07/04/2014',
       +-            'description': 'md5:f27c544694cacb46a078db84ec35d2d9',
       ++            'alt_title': 'St 2013/14 - Espresso nel caffè - 07/04/2014 ',
       ++            'description': 'md5:d730c168a58f4bb35600fc2f881ec04e',
       +             'thumbnail': r're:^https?://.*\.jpg$',
       +-            'uploader': 'Rai 5',
       +-            'creator': 'Rai 5',
       ++            'uploader': 'Rai Gulp',
       +             'duration': 6160,
       +-            'series': 'Report',
       +-            'season_number': 5,
       +-            'season': '2013/14',
       +         },
       +         'params': {
       +             'skip_download': True,
       +@@ -171,13 +149,13 @@ class RaiPlayIE(RaiBaseIE):
       +         url, video_id = mobj.group('url', 'id')
       + 
       +         media = self._download_json(
       +-            '%s?json' % url, video_id, 'Downloading video JSON')
       ++            '%s' % url.replace('.html', '.json'), video_id, 'Downloading video JSON')
       + 
       +         title = media['name']
       + 
       +         video = media['video']
       + 
       +-        relinker_info = self._extract_relinker_info(video['contentUrl'], video_id)
       ++        relinker_info = self._extract_relinker_info(video['content_url'], video_id)
       +         self._sort_formats(relinker_info['formats'])
       + 
       +         thumbnails = []
       +@@ -185,7 +163,7 @@ class RaiPlayIE(RaiBaseIE):
       +             for _, value in media.get('images').items():
       +                 if value:
       +                     thumbnails.append({
       +-                        'url': value.replace('[RESOLUTION]', '600x400')
       ++                        'url': 'https://www.raiplay.it' + value.replace('[RESOLUTION]', '600x400')
       +                     })
       + 
       +         timestamp = unified_timestamp(try_get(