Discriminate URL pattern

This commit is contained in:
dirkf 2023-01-28 15:43:46 +00:00 committed by GitHub
commit 0ce3c3c243
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -81,7 +81,7 @@ class Pr0grammIE(InfoExtractor):
# https://pr0gramm.com/new/5495710:comment62621020 <- this is not the id! # https://pr0gramm.com/new/5495710:comment62621020 <- this is not the id!
# https://pr0gramm.com/top/fruher war alles damals/5498175 # https://pr0gramm.com/top/fruher war alles damals/5498175
_VALID_URL = r'https?:\/\/pr0gramm\.com\/.+?\/(?P<id>[\d]+)(:|$)' _VALID_URL = r'https?:\/\/pr0gramm\.com\/(?!static/\d+).+?\/(?P<id>[\d]+)(:|$)'
_TEST = { _TEST = {
'url': 'https://pr0gramm.com/new/video/5466437', 'url': 'https://pr0gramm.com/new/video/5466437',
'info_dict': { 'info_dict': {