From 0a21514afc821e15c97566a39028bfb123545e92 Mon Sep 17 00:00:00 2001 From: Francesco Frassinelli Date: Wed, 18 Mar 2020 00:00:04 +0100 Subject: [PATCH] 80 character is a soft limit --- youtube_dl/extractor/rai.py | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/youtube_dl/extractor/rai.py b/youtube_dl/extractor/rai.py index ad51bf123..284260d78 100644 --- a/youtube_dl/extractor/rai.py +++ b/youtube_dl/extractor/rai.py @@ -549,17 +549,15 @@ class RaiPlayRadioIE(RaiPlayRadioBaseIE): _VALID_URL = r'%s/audio/.+?-(?P%s)\.html' % ( RaiPlayRadioBaseIE._BASE, RaiBaseIE._UUID_RE) _TEST = { - 'url': 'https://www.raiplayradio.it/audio/2019/07/' - 'RADIO3---LEZIONI-DI-MUSICA-' - '36b099ff-4123-4443-9bf9-38e43ef5e025.html', + 'url': 'https://www.raiplayradio.it/audio/2019/07/RADIO3---LEZIONI-DI-MUSICA-36b099ff-4123-4443-9bf9-38e43ef5e025.html', 'info_dict': { 'id': '36b099ff-4123-4443-9bf9-38e43ef5e025', 'ext': 'mp3', 'title': 'Dal "Chiaro di luna" al "Clair de lune", ' 'prima parte con Giovanni Bietti', - 'thumbnail': 'https://www.raiplayradio.it/cropgd/400x400/dl/' - 'img/2019/07/08/1562590329054_luna.jpg', - 'language': 'it'}} + 'thumbnail': 'https://www.raiplayradio.it/cropgd/400x400/dl/img/2019/07/08/1562590329054_luna.jpg', + 'language': 'it', + }} def _real_extract(self, url): audio_id = self._match_id(url) @@ -573,14 +571,14 @@ class RaiPlayRadioPlaylistIE(RaiPlayRadioBaseIE): _VALID_URL = r'%s/playlist/.+?-(?P%s)\.html' % ( RaiPlayRadioBaseIE._BASE, RaiBaseIE._UUID_RE) _TEST = { - 'url': 'https://www.raiplayradio.it/playlist/2017/12/' - 'Alice-nel-paese-delle-meraviglie-' - '72371d3c-d998-49f3-8860-d168cfdf4966.html', + 'url': 'https://www.raiplayradio.it/playlist/2017/12/Alice-nel-paese-delle-meraviglie-72371d3c-d998-49f3-8860-d168cfdf4966.html', 'info_dict': { 'id': '72371d3c-d998-49f3-8860-d168cfdf4966', 'title': "Alice nel paese delle meraviglie", - 'description': "di Lewis Carrol letto da Aldo Busi"}, - 'playlist_count': 11} + 'description': "di Lewis Carrol letto da Aldo Busi", + }, + 'playlist_count': 11, + } def _real_extract(self, url): playlist_id = self._match_id(url)