Repository: yt-dlp/yt-dlp

Issue:
Mediaset Georestriction Error [Broken]
- [x] I'm reporting a broken site support
- [x] I've verified that I'm running yt-dlp version **2021.08.10**
- [x] I've checked that all provided URLs are alive and playable in a browser
- [x] I've checked that all URLs and arguments with special characters are properly quoted or escaped
- [x] I've searched the bugtracker for similar issues including closed ones

Command:

```
yt-dlp.exe -v "https://www.mediasetplay.mediaset.it/video/cameracafe5/episodio-51-tu-chi-sei_F303843107000601"

```

Results:

```
[debug] Command-line config: ['-v', 'https://www.mediasetplay.mediaset.it/video/cameracafe5/episodio-51-tu-chi-sei_F303843107000601']
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, pref cp1252
[debug] yt-dlp version 2021.08.10
[debug] Python version 3.9.1 (CPython 64bit) - Windows-10-10.0.19041-SP0
[debug] exe versions: ffmpeg git-2020-08-31-4a11a6f, ffprobe git-2020-08-31-4a11a6f
[debug] Optional libraries: mutagen, pycryptodome, sqlite, websockets
[debug] Proxy map: {}
[debug] [Mediaset] Extracting URL: https://www.mediasetplay.mediaset.it/video/cameracafe5/episodio-51-tu-chi-sei_F303843107000601
[Mediaset] F303843107000601: Downloading JSON metadata
[Mediaset] F303843107000601: Downloading MPEG4 SMIL data
ERROR: [Mediaset] F303843107000601: This content is not available in your location.
Traceback (most recent call last):
  File "C:\Users\Nicola\AppData\Local\Programs\Python\Python39\lib\site-packages\yt_dlp\extractor\common.py", line 584, in extract
    ie_result = self._real_extract(url)
  File "C:\Users\Nicola\AppData\Local\Programs\Python\Python39\lib\site-packages\yt_dlp\extractor\mediaset.py", line 168, in _real_extract
    raise first_e
  File "C:\Users\Nicola\AppData\Local\Programs\Python\Python39\lib\site-packages\yt_dlp\extractor\mediaset.py", line 155, in _real_extract
    tp_formats, tp_subtitles = self._extract_theplatform_smil(
  File "C:\Users\Nicola\AppData\Local\Programs\Python\Python39\lib\site-packages\yt_dlp\extractor\theplatform.py", line 44, in _extract_theplatform_smil
    self.raise_geo_restricted(error_element.attrib['abstract'])
  File "C:\Users\Nicola\AppData\Local\Programs\Python\Python39\lib\site-packages\yt_dlp\extractor\common.py", line 1071, in raise_geo_restricted
    raise GeoRestrictedError(msg, countries=countries)
yt_dlp.utils.GeoRestrictedError: This content is not available in your location.
Traceback (most recent call last):
  File "C:\Users\Nicola\AppData\Local\Programs\Python\Python39\lib\site-packages\yt_dlp\extractor\common.py", line 584, in extract
    ie_result = self._real_extract(url)
  File "C:\Users\Nicola\AppData\Local\Programs\Python\Python39\lib\site-packages\yt_dlp\extractor\mediaset.py", line 168, in _real_extract
    raise first_e
  File "C:\Users\Nicola\AppData\Local\Programs\Python\Python39\lib\site-packages\yt_dlp\extractor\mediaset.py", line 155, in _real_extract
    tp_formats, tp_subtitles = self._extract_theplatform_smil(
  File "C:\Users\Nicola\AppData\Local\Programs\Python\Python39\lib\site-packages\yt_dlp\extractor\theplatform.py", line 44, in _extract_theplatform_smil
    self.raise_geo_restricted(error_element.attrib['abstract'])
  File "C:\Users\Nicola\AppData\Local\Programs\Python\Python39\lib\site-packages\yt_dlp\extractor\common.py", line 1071, in raise_geo_restricted
    raise GeoRestrictedError(msg, countries=countries)
yt_dlp.utils.GeoRestrictedError: This content is not available in your location.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Nicola\AppData\Local\Programs\Python\Python39\lib\site-packages\yt_dlp\YoutubeDL.py", line 1214, in wrapper
    return func(self, *args, **kwargs)
  File "C:\Users\Nicola\AppData\Local\Programs\Python\Python39\lib\site-packages\yt_dlp\YoutubeDL.py", line 1239, in __extract_info
    ie_result = ie.extract(url)
  File "C:\Users\Nicola\AppData\Local\Programs\Python\Python39\lib\site-packages\yt_dlp\extractor\common.py", line 600, in extract
    raise ExtractorError(
yt_dlp.utils.ExtractorError: [Mediaset] F303843107000601: This content is not available in your location.
```


## Description
Fix #849 may have reintroduced bug #365

All of these links give the same error:

www.mediasetplay.mediaset.it/video/cameracafe5/episodio-2-i-baffi-di-paolo_F303843107005701
www.mediasetplay.mediaset.it/video/cameracafe5/episodio-6-lalibi_F303843107013901
www.mediasetplay.mediaset.it/video/cameracafe5/episodio-11-i-coltelli-di-chef-johnny_F303843107005101
www.mediasetplay.mediaset.it/video/cameracafe5/episodio-17-lazienda-del-futuro_F303843107012301
www.mediasetplay.mediaset.it/video/cameracafe5/episodio-42-pensiero-profondo_F303843107003801
www.mediasetplay.mediaset.it/video/cameracafe5/episodio-51-tu-chi-sei_F303843107000601
www.mediasetplay.mediaset.it/video/cameracafe5/episodio-53-te-lo-dico-in-faccia_F303843107008201
www.mediasetplay.mediaset.it/video/cameracafe5/episodio-65-libretto-scomparso_F303843107005901
www.mediasetplay.mediaset.it/video/cameracafe5/episodio-68-paolo-testimone_F303843107004601
www.mediasetplay.mediaset.it/video/cameracafe5/episodio-73-laffiancamento_F303843107008501
www.mediasetplay.mediaset.it/video/cameracafe5/episodio-76-qualcosa-di-blu_F303843107006001
www.mediasetplay.mediaset.it/video/cameracafe5/episodio-80-due-paroline-magiche_F303843107001601
www.mediasetplay.mediaset.it/video/cameracafe5/episodio-83-4000-invitati_F303843107005301
www.mediasetplay.mediaset.it/video/cameracafe5/episodio-84-simpatici_F303843107008801
www.mediasetplay.mediaset.it/video/cameracafe5/episodio-88-il-colmo-per-un-venditore_F303843107007401
www.mediasetplay.mediaset.it/video/cameracafe5/episodio-90-la-tazza_F303843107002101
www.mediasetplay.mediaset.it/video/cameracafe5/episodio-92-chi-si-firma-e-perduto_F303843107001001
www.mediasetplay.mediaset.it/video/cameracafe5/episodio-99-romanzo-erotico_F303843107008101
www.mediasetplay.mediaset.it/video/cameracafe5/episodio-102-borgo-san-landolfo_F303843107000101
www.mediasetplay.mediaset.it/video/cameracafe5/episodio-104-un-week-end-bagnato_F303843107002601
www.mediasetplay.mediaset.it/video/cameracafe5/episodio-108-contapassi_F303843107010501
www.mediasetplay.mediaset.it/video/cameracafe5/episodio-115-un-vero-uomo_F303843107007101
www.mediasetplay.mediaset.it/video/cameracafe5/episodio-124-il-suicidio-di-filippetti_F303843107009901
www.mediasetplay.mediaset.it/video/cameracafe5/episodio-126-un-favore-a-geller_F303843107004701
www.mediasetplay.mediaset.it/video/cameracafe5/episodio-131-pratica-poetica_F303843107007001
www.mediasetplay.mediaset.it/video/cameracafe5/episodio-132-una-poltrona-per-due_F303843107000501
www.mediasetplay.mediaset.it/video/cameracafe5/episodio-134-tavolino_F303843107012201
www.mediasetplay.mediaset.it/video/cameracafe5/episodio-137-minacce_F303843107003701
www.mediasetplay.mediaset.it/video/cameracafe5/episodio-140-scelta-difficile_F303843107010901
www.mediasetplay.mediaset.it/video/cameracafe5/episodio-141-lultima-katana_F303843107014101
www.mediasetplay.mediaset.it/video/cameracafe5/episodio-152-numero-due_F303843101016601
www.mediasetplay.mediaset.it/video/cameracafe5/episodio-156-maschio-o-femmina_F303843107002301
www.mediasetplay.mediaset.it/video/cameracafe5/episodio-158-compagni-di-banco_F303843107008601
www.mediasetplay.mediaset.it/video/cameracafe5/episodio-172-matrimonio-in-saldo_F303843107014801
www.mediasetplay.mediaset.it/video/cameracafe5/episodio-177-il-copiascherzi_F303843101016701
www.mediasetplay.mediaset.it/video/cameracafe5/episodio-175-non-riesce-a-dirlo_F303843107010001



Discussion:

Resolving patch:
diff --git a/yt_dlp/extractor/mediaset.py b/yt_dlp/extractor/mediaset.py
--- a/yt_dlp/extractor/mediaset.py
+++ b/yt_dlp/extractor/mediaset.py
@@ -44,7 +44,7 @@ class MediasetIE(ThePlatformBaseIE):
         },
     }, {
         'url': 'https://www.mediasetplay.mediaset.it/video/matrix/puntata-del-25-maggio_F309013801000501',
-        'md5': '288532f0ad18307705b01e581304cd7b',
+        'md5': '1276f966ac423d16ba255ce867de073e',
         'info_dict': {
             'id': 'F309013801000501',
             'ext': 'mp4',
@@ -74,6 +74,22 @@ class MediasetIE(ThePlatformBaseIE):
             'uploader': 'Italia 1',
             'uploader_id': 'I1',
         },
+    }, {
+        'url': 'https://www.mediasetplay.mediaset.it/video/cameracafe5/episodio-51-tu-chi-sei_F303843107000601',
+        'md5': '567e9ad375b7a27a0e370650f572a1e3',
+        'info_dict': {
+            'id': 'F303843107000601',
+            'ext': 'mp4',
+            'title': 'Episodio 51 - Tu chi sei?',
+            'description': '',
+            'thumbnail': r're:^https?://.*\.jpg$',
+            'duration': 367.021,
+            'upload_date': '20200902',
+            'series': 'Camera Café 5',
+            'timestamp': 1599069817,
+            'uploader': 'Italia 1',
+            'uploader_id': 'I1',
+        },
     }, {
         # clip
         'url': 'https://www.mediasetplay.mediaset.it/video/gogglebox/un-grande-classico-della-commedia-sexy_FAFU000000661680',
@@ -148,7 +164,7 @@ def _real_extract(self, url):
         formats = []
         subtitles = {}
         first_e = None
-        asset_type = 'HD,browser,geoIT|SD,browser,geoIT|geoNo:HD,browser,geoIT|geoNo:SD,browser,geoIT|geoNo|HD|SD'
+        asset_type = 'geoNo:HD,browser,geoIT|geoNo:HD,geoIT|geoNo:SD,browser,geoIT|geoNo:SD,geoIT|geoNo|HD|SD'
         # TODO: fixup ISM+none manifest URLs
         for f in ('MPEG4', 'MPEG-DASH+none', 'M3U+none'):
             try:


Test patch: