diff --git a/yt_dlp/extractor/fosdem.py b/yt_dlp/extractor/fosdem.py index 4c96cd6d8..bf57ca600 100644 --- a/yt_dlp/extractor/fosdem.py +++ b/yt_dlp/extractor/fosdem.py @@ -3,7 +3,7 @@ import pdb class FosdemIE(InfoExtractor): - _VALID_URL = r'https?://(?:www\.)?(?:archive\.)?fosdem\.org/[0-9]{4}/schedule/(?Ptrack|event)/(?P[\w\.-_]+)/' + _VALID_URL = r'https?://(?:www\.)?(?:archive\.)?fosdem\.org/(?P[0-9]{4})/schedule/(?Ptrack|event)/(?P[\w\.-_]+)/' _TESTS = [ { 'url': 'https://archive.fosdem.org/2022/schedule/event/firmware_updates_for_opnsense_and_pfsense/', @@ -40,6 +40,7 @@ def _real_extract(self, url): # Download all videos on this page else: print("how did you get here?") + year = groups['year'] title_rgx = r"
\n\s+

(.+?)

" title = self._html_search_regex(title_rgx, webpage, 'title') print(f'TITLE: {title}') @@ -64,6 +65,6 @@ def _real_extract(self, url): 'url': video_url, 'thumbnail': None, # TODO more properties (see yt_dlp/extractor/common.py) - # 'release_date': release_date, + 'release_date': year, # 'presenter/author }