mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-25 08:10:36 +01:00
[cbsnews] Fix extraction of the URL for the 'RtmpDesktop' format (fixes #8048)
This commit is contained in:
parent
3092fc4035
commit
c7932289e7
@ -5,6 +5,7 @@
|
|||||||
import json
|
import json
|
||||||
|
|
||||||
from .common import InfoExtractor
|
from .common import InfoExtractor
|
||||||
|
from ..utils import remove_start
|
||||||
|
|
||||||
|
|
||||||
class CBSNewsIE(InfoExtractor):
|
class CBSNewsIE(InfoExtractor):
|
||||||
@ -62,6 +63,7 @@ def _real_extract(self, url):
|
|||||||
uri = item.get('media' + format_id + 'URI')
|
uri = item.get('media' + format_id + 'URI')
|
||||||
if not uri:
|
if not uri:
|
||||||
continue
|
continue
|
||||||
|
uri = remove_start(uri, '{manifest:none}')
|
||||||
fmt = {
|
fmt = {
|
||||||
'url': uri,
|
'url': uri,
|
||||||
'format_id': format_id,
|
'format_id': format_id,
|
||||||
@ -70,6 +72,8 @@ def _real_extract(self, url):
|
|||||||
play_path = re.sub(
|
play_path = re.sub(
|
||||||
r'{slistFilePath}', '',
|
r'{slistFilePath}', '',
|
||||||
uri.split('<break>')[-1].split('{break}')[-1])
|
uri.split('<break>')[-1].split('{break}')[-1])
|
||||||
|
play_path = re.sub(
|
||||||
|
r'{manifest:.+}.*$', '', play_path)
|
||||||
fmt.update({
|
fmt.update({
|
||||||
'app': 'ondemand?auth=cbs',
|
'app': 'ondemand?auth=cbs',
|
||||||
'play_path': 'mp4:' + play_path,
|
'play_path': 'mp4:' + play_path,
|
||||||
|
Loading…
Reference in New Issue
Block a user