Add support for "sport" on ServusTV #23288

Open
opened 2026-02-21 12:43:20 -05:00 by deekerman · 4 comments
Owner

Originally created by @arminfuerst on GitHub (Mar 27, 2021).

Checklist

  • I'm reporting a site feature request
  • I've verified that I'm running youtube-dl version 2021.03.25
  • I've searched the bugtracker for similar site feature requests including closed ones

Description

WRITE DESCRIPTION HERE
Downloading from ServusTV is working well for URLs starting with "https://www.servustv.com/videos/..." but not for other URLs, here is an example for URL for sports events:
https://www.servustv.com/sport/v/aa-26u9qxfd52111/
I've tried just extending _VALID_URL to match this type of URLs, but there are additional changes needed. After extending _VALID_URL the verbose output was:
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--verbose', 'https://www.servustv.com/sport/v/aa-26u9qxrbw1w11/']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2021.03.25
[debug] Python version 3.7.3 (CPython) - Linux-4.19.0-16-amd64-x86_64-with-debian-10.9
[debug] exe versions: avconv 4.1.6, avprobe 4.1.6, ffmpeg 4.1.6, ffprobe 4.1.6, rtmpdump 2.4
[debug] Proxy map: {}
[Servus] AA-26U9QXRBW1W11: Downloading token
[Servus] AA-26U9QXRBW1W11: Downloading video JSON
ERROR: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/youtube_dl/YoutubeDL.py", line 806, in wrapper
return func(self, *args, **kwargs)
File "/usr/lib/python3/dist-packages/youtube_dl/YoutubeDL.py", line 827, in __extract_info
ie_result = ie.extract(url)
File "/usr/lib/python3/dist-packages/youtube_dl/extractor/common.py", line 534, in extract
ie_result = self._real_extract(url)
File "/usr/lib/python3/dist-packages/youtube_dl/extractor/servus.py", line 111, in _real_extract
self._sort_formats(formats)
File "/usr/lib/python3/dist-packages/youtube_dl/extractor/common.py", line 1369, in _sort_formats
raise ExtractorError('No video formats found')
youtube_dl.utils.ExtractorError: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

Originally created by @arminfuerst on GitHub (Mar 27, 2021). <!-- ###################################################################### WARNING! IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE ###################################################################### --> ## Checklist <!-- Carefully read and work through this check list in order to prevent the most common mistakes and misuse of youtube-dl: - First of, make sure you are using the latest version of youtube-dl. Run `youtube-dl --version` and ensure your version is 2021.03.25. If it's not, see https://yt-dl.org/update on how to update. Issues with outdated version will be REJECTED. - Search the bugtracker for similar site feature requests: http://yt-dl.org/search-issues. DO NOT post duplicates. - Finally, put x into all relevant boxes (like this [x]) --> - [X] I'm reporting a site feature request - [X] I've verified that I'm running youtube-dl version **2021.03.25** - [X] I've searched the bugtracker for similar site feature requests including closed ones ## Description <!-- Provide an explanation of your site feature request in an arbitrary form. Please make sure the description is worded well enough to be understood, see https://github.com/ytdl-org/youtube-dl#is-the-description-of-the-issue-itself-sufficient. Provide any additional information, suggested solution and as much context and examples as possible. --> WRITE DESCRIPTION HERE Downloading from ServusTV is working well for URLs starting with "https://www.servustv.com/videos/..." but not for other URLs, here is an example for URL for sports events: https://www.servustv.com/sport/v/aa-26u9qxfd52111/ I've tried just extending _VALID_URL to match this type of URLs, but there are additional changes needed. After extending _VALID_URL the verbose output was: [debug] System config: [] [debug] User config: [] [debug] Custom config: [] [debug] Command-line args: ['--verbose', 'https://www.servustv.com/sport/v/aa-26u9qxrbw1w11/'] [debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8 [debug] youtube-dl version 2021.03.25 [debug] Python version 3.7.3 (CPython) - Linux-4.19.0-16-amd64-x86_64-with-debian-10.9 [debug] exe versions: avconv 4.1.6, avprobe 4.1.6, ffmpeg 4.1.6, ffprobe 4.1.6, rtmpdump 2.4 [debug] Proxy map: {} [Servus] AA-26U9QXRBW1W11: Downloading token [Servus] AA-26U9QXRBW1W11: Downloading video JSON ERROR: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output. Traceback (most recent call last): File "/usr/lib/python3/dist-packages/youtube_dl/YoutubeDL.py", line 806, in wrapper return func(self, *args, **kwargs) File "/usr/lib/python3/dist-packages/youtube_dl/YoutubeDL.py", line 827, in __extract_info ie_result = ie.extract(url) File "/usr/lib/python3/dist-packages/youtube_dl/extractor/common.py", line 534, in extract ie_result = self._real_extract(url) File "/usr/lib/python3/dist-packages/youtube_dl/extractor/servus.py", line 111, in _real_extract self._sort_formats(formats) File "/usr/lib/python3/dist-packages/youtube_dl/extractor/common.py", line 1369, in _sort_formats raise ExtractorError('No video formats found') youtube_dl.utils.ExtractorError: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Author
Owner

@hatl commented on GitHub (May 10, 2021):

This worked for me - might need further testing:

diff --git a/youtube_dl/extractor/servus.py b/youtube_dl/extractor/servus.py
index 1610ddc2c..01485f7dd 100644
--- a/youtube_dl/extractor/servus.py
+++ b/youtube_dl/extractor/servus.py
@@ -18,7 +18,7 @@ class ServusIE(InfoExtractor):
                         (?:www\.)?
                         (?:
                             servus\.com/(?:(?:at|de)/p/[^/]+|tv/videos)|
-                            (?:servustv|pm-wissen)\.com/videos
+                            (?:servustv|pm-wissen)\.com/(videos|.*/v)
                         )
                         /(?P<id>[aA]{2}-\w+|\d+-\d+)
                     '''

@hatl commented on GitHub (May 10, 2021): This worked for me - might need further testing: ``` diff --git a/youtube_dl/extractor/servus.py b/youtube_dl/extractor/servus.py index 1610ddc2c..01485f7dd 100644 --- a/youtube_dl/extractor/servus.py +++ b/youtube_dl/extractor/servus.py @@ -18,7 +18,7 @@ class ServusIE(InfoExtractor): (?:www\.)? (?: servus\.com/(?:(?:at|de)/p/[^/]+|tv/videos)| - (?:servustv|pm-wissen)\.com/videos + (?:servustv|pm-wissen)\.com/(videos|.*/v) ) /(?P<id>[aA]{2}-\w+|\d+-\d+) ''' ```
Author
Owner

@arminfuerst commented on GitHub (May 10, 2021):

Did you do a successful download with this change? This is close to what I tried myself and the result was that the link was detected but the download was not working...

@arminfuerst commented on GitHub (May 10, 2021): Did you do a successful download with this change? This is close to what I tried myself and the result was that the link was detected but the download was not working...
Author
Owner

@hatl commented on GitHub (May 10, 2021):

yes, it worked.
i tried it using the following url: https://www.servustv.com/sport/v/aa-2787bmze91w11/

@hatl commented on GitHub (May 10, 2021): yes, it worked. i tried it using the following url: https://www.servustv.com/sport/v/aa-2787bmze91w11/
Author
Owner

@arminfuerst commented on GitHub (May 10, 2021):

I'm not sure whether this is a different issue or to be handled here. When trying to download https://www.servustv.com/sport/v/aa-26ua568w12111/ I get the following error:
[Servus] AA-26UA568W12111: Downloading token
[Servus] AA-26UA568W12111: Downloading video JSON
ERROR: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

The link you posted above is working properly.

@arminfuerst commented on GitHub (May 10, 2021): I'm not sure whether this is a different issue or to be handled here. When trying to download https://www.servustv.com/sport/v/aa-26ua568w12111/ I get the following error: [Servus] AA-26UA568W12111: Downloading token [Servus] AA-26UA568W12111: Downloading video JSON ERROR: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output. The link you posted above is working properly.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl-ytdl-org#23288
No description provided.