[mlb] Improve _VALID_URL
authorSergey M․ <dstftw@gmail.com>
Fri, 8 May 2015 15:48:47 +0000 (21:48 +0600)
committerSergey M․ <dstftw@gmail.com>
Fri, 8 May 2015 15:48:47 +0000 (21:48 +0600)
youtube_dl/extractor/mlb.py

index 109eecefd9afffb719486256354bfe8b2fc8c6e7..4e054fb538a9cf1f3738c291a5bd38b84518e282 100644 (file)
@@ -22,7 +22,7 @@ class MLBIE(InfoExtractor):
                                 )\?.*?\bcontent_id=
                             )
                             (?P<id>n?\d+)|
-                            (?P<path>.+?)
+                            (?:[^/]+/)*(?P<path>[^/]+)
                         )
                     '''
     _TESTS = [