[gedidigital] improve asset id matching
authorRemita Amine <remitamine@gmail.com>
Mon, 22 Feb 2021 22:02:15 +0000 (23:02 +0100)
committerRemita Amine <remitamine@gmail.com>
Mon, 22 Feb 2021 22:02:15 +0000 (23:02 +0100)
youtube_dl/extractor/gedidigital.py

index 1b47a4e2765ee7468ac08cd9ca243a41acdab63e..6c4153b409250afa88429b612d29c921dbc39eed 100644 (file)
@@ -32,7 +32,7 @@ class GediDigitalIE(InfoExtractor):
                 |corrierealpi
                 |lasentinella
             )\.gelocal
-        )\.it(?:/[^/]+){2,3}/(?P<id>\d+)'''
+        )\.it(?:/[^/]+){2,3}?/(?P<id>\d+)(?:[/?&#]|$)'''
     _TESTS = [{
         'url': 'https://video.lastampa.it/politica/il-paradosso-delle-regionali-la-lega-vince-ma-sembra-aver-perso/121559/121683',
         'md5': '84658d7fb9e55a6e57ecc77b73137494',