Remove unescapeHTML import, no longer used - pkgsrc-localpatches - leot's pkgsrc LOCALPATCHES
(HTM) hg clone https://bitbucket.org/iamleot/pkgsrc-localpatches
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) changeset 8f743eff9f2042cde48321bd10c2a89f2b220b30
(DIR) parent d62b4eae0a29ca9ffa5404d9c19ec80e173d4d52
(HTM) Author: Leonardo Taccari <iamleot@gmail.com>
Date: Sun, 10 Nov 2019 16:50:20
Remove unescapeHTML import, no longer used
Diffstat:
net/youtube-dl/patch-youtube__dl_extractor_rai.py | 26 +++++++++++++++-------
1 files changed, 17 insertions(+), 9 deletions(-)
---
diff -r d62b4eae0a29 -r 8f743eff9f20 net/youtube-dl/patch-youtube__dl_extractor_rai.py
--- a/net/youtube-dl/patch-youtube__dl_extractor_rai.py Sun Nov 10 11:43:42 2019 +0100
+++ b/net/youtube-dl/patch-youtube__dl_extractor_rai.py Sun Nov 10 16:50:20 2019 +0100
@@ -3,9 +3,17 @@
Preliminary workaround for raiplay.it updates... RaiPlay, RaiPlayLive,
RaiPlayPlaylist were analyzed and adjusted.
---- youtube_dl/extractor/rai.py.orig 2019-11-10 08:50:05.552567084 +0000
+--- youtube_dl/extractor/rai.py.orig 2019-11-10 15:05:12.469788971 +0000
+++ youtube_dl/extractor/rai.py
-@@ -30,6 +30,7 @@ class RaiBaseIE(InfoExtractor):
+@@ -17,7 +17,6 @@ from ..utils import (
+ parse_duration,
+ strip_or_none,
+ try_get,
+- unescapeHTML,
+ unified_strdate,
+ unified_timestamp,
+ update_url_query,
+@@ -30,6 +29,7 @@ class RaiBaseIE(InfoExtractor):
_UUID_RE = r'[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}'
_GEO_COUNTRIES = ['IT']
_GEO_BYPASS = False
@@ -13,7 +21,7 @@
def _extract_relinker_info(self, relinker_url, video_id):
if not re.match(r'https?://', relinker_url):
-@@ -122,41 +123,19 @@ class RaiBaseIE(InfoExtractor):
+@@ -122,41 +122,19 @@ class RaiBaseIE(InfoExtractor):
class RaiPlayIE(RaiBaseIE):
@@ -59,7 +67,7 @@
},
'params': {
'skip_download': True,
-@@ -168,16 +147,15 @@ class RaiPlayIE(RaiBaseIE):
+@@ -168,16 +146,15 @@ class RaiPlayIE(RaiBaseIE):
def _real_extract(self, url):
mobj = re.match(self._VALID_URL, url)
@@ -79,7 +87,7 @@
self._sort_formats(relinker_info['formats'])
thumbnails = []
-@@ -185,7 +163,7 @@ class RaiPlayIE(RaiBaseIE):
+@@ -185,7 +162,7 @@ class RaiPlayIE(RaiBaseIE):
for _, value in media.get('images').items():
if value:
thumbnails.append({
@@ -88,7 +96,7 @@
})
timestamp = unified_timestamp(try_get(
-@@ -225,7 +203,7 @@ class RaiPlayLiveIE(RaiBaseIE):
+@@ -225,7 +202,7 @@ class RaiPlayLiveIE(RaiBaseIE):
'display_id': 'rainews24',
'ext': 'mp4',
'title': 're:^Diretta di Rai News 24 [0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}$',
@@ -97,7 +105,7 @@
'uploader': 'Rai News 24',
'creator': 'Rai News 24',
'is_live': True,
-@@ -238,20 +216,32 @@ class RaiPlayLiveIE(RaiBaseIE):
+@@ -238,20 +215,32 @@ class RaiPlayLiveIE(RaiBaseIE):
def _real_extract(self, url):
display_id = self._match_id(url)
@@ -139,7 +147,7 @@
class RaiPlayPlaylistIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?raiplay\.it/programmi/(?P<id>[^/?#&]+)'
-@@ -260,7 +250,7 @@ class RaiPlayPlaylistIE(InfoExtractor):
+@@ -260,7 +249,7 @@ class RaiPlayPlaylistIE(InfoExtractor):
'info_dict': {
'id': 'nondirloalmiocapo',
'title': 'Non dirlo al mio capo',
@@ -148,7 +156,7 @@
},
'playlist_mincount': 12,
}]
-@@ -268,21 +258,25 @@ class RaiPlayPlaylistIE(InfoExtractor):
+@@ -268,21 +257,25 @@ class RaiPlayPlaylistIE(InfoExtractor):
def _real_extract(self, url):
playlist_id = self._match_id(url)