From f3597cfafcab4d7d4c6d41bff3647681301f1e6b Mon Sep 17 00:00:00 2001 From: Christopher Albert Date: Mon, 10 Nov 2025 23:40:16 +0100 Subject: [PATCH] [ie/TubeTuGraz] Support alternate URL format (#14718) Closes #14686 Authored by: krystophny --- yt_dlp/extractor/tubetugraz.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/yt_dlp/extractor/tubetugraz.py b/yt_dlp/extractor/tubetugraz.py index 805e2686f7..b849247b13 100644 --- a/yt_dlp/extractor/tubetugraz.py +++ b/yt_dlp/extractor/tubetugraz.py @@ -136,8 +136,10 @@ class TubeTuGrazIE(TubeTuGrazBaseIE): IE_DESC = 'tube.tugraz.at' _VALID_URL = r'''(?x) - https?://tube\.tugraz\.at/paella/ui/watch.html\?id= - (?P[0-9a-fA-F]{8}-(?:[0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}) + https?://tube\.tugraz\.at/(?: + paella/ui/watch\.html\?(?:[^#]*&)?id=| + portal/watch/ + )(?P[0-9a-fA-F]{8}-(?:[0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}) ''' _TESTS = [ { @@ -152,6 +154,7 @@ class TubeTuGrazIE(TubeTuGrazBaseIE): 'creator': 'Safran C', 'duration': 3295818, 'series_id': 'b1192fff-2aa7-4bf0-a5cf-7b15c3bd3b34', + 'creators': ['Safran C'], }, }, { 'url': 'https://tube.tugraz.at/paella/ui/watch.html?id=2df6d787-e56a-428d-8ef4-d57f07eef238', @@ -162,6 +165,10 @@ class TubeTuGrazIE(TubeTuGrazBaseIE): 'ext': 'mp4', }, 'expected_warnings': ['Extractor failed to obtain "title"'], + }, { + # Portal URL format + 'url': 'https://tube.tugraz.at/portal/watch/ab28ec60-8cbe-4f1a-9b96-a95add56c612', + 'only_matching': True, }, ]