mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-12 14:26:49 +01:00
parent
90e0fd4bad
commit
eb92077720
@ -12,6 +12,7 @@
|
|||||||
compat_urllib_parse,
|
compat_urllib_parse,
|
||||||
|
|
||||||
ExtractorError,
|
ExtractorError,
|
||||||
|
int_or_none,
|
||||||
unified_strdate,
|
unified_strdate,
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -44,7 +45,8 @@ class SoundcloudIE(InfoExtractor):
|
|||||||
"upload_date": "20121011",
|
"upload_date": "20121011",
|
||||||
"description": "No Downloads untill we record the finished version this weekend, i was too pumped n i had to post it , earl is prolly gonna b hella p.o'd",
|
"description": "No Downloads untill we record the finished version this weekend, i was too pumped n i had to post it , earl is prolly gonna b hella p.o'd",
|
||||||
"uploader": "E.T. ExTerrestrial Music",
|
"uploader": "E.T. ExTerrestrial Music",
|
||||||
"title": "Lostin Powers - She so Heavy (SneakPreview) Adrian Ackers Blueprint 1"
|
"title": "Lostin Powers - She so Heavy (SneakPreview) Adrian Ackers Blueprint 1",
|
||||||
|
"duration": 143,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
# not streamable song
|
# not streamable song
|
||||||
@ -57,6 +59,7 @@ class SoundcloudIE(InfoExtractor):
|
|||||||
'description': 'From Stockholm Sweden\r\nPovel / Magnus / Filip / David\r\nwww.theroyalconcept.com',
|
'description': 'From Stockholm Sweden\r\nPovel / Magnus / Filip / David\r\nwww.theroyalconcept.com',
|
||||||
'uploader': 'The Royal Concept',
|
'uploader': 'The Royal Concept',
|
||||||
'upload_date': '20120521',
|
'upload_date': '20120521',
|
||||||
|
'duration': 227,
|
||||||
},
|
},
|
||||||
'params': {
|
'params': {
|
||||||
# rtmp
|
# rtmp
|
||||||
@ -74,6 +77,7 @@ class SoundcloudIE(InfoExtractor):
|
|||||||
'uploader': 'jaimeMF',
|
'uploader': 'jaimeMF',
|
||||||
'description': 'test chars: \"\'/\\ä↭',
|
'description': 'test chars: \"\'/\\ä↭',
|
||||||
'upload_date': '20131209',
|
'upload_date': '20131209',
|
||||||
|
'duration': 9,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
# downloadable song
|
# downloadable song
|
||||||
@ -87,6 +91,7 @@ class SoundcloudIE(InfoExtractor):
|
|||||||
'description': 'Vocals',
|
'description': 'Vocals',
|
||||||
'uploader': 'Sim Gretina',
|
'uploader': 'Sim Gretina',
|
||||||
'upload_date': '20130815',
|
'upload_date': '20130815',
|
||||||
|
#'duration': 42,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
@ -119,6 +124,7 @@ def _extract_info_dict(self, info, full_title=None, quiet=False, secret_token=No
|
|||||||
'title': info['title'],
|
'title': info['title'],
|
||||||
'description': info['description'],
|
'description': info['description'],
|
||||||
'thumbnail': thumbnail,
|
'thumbnail': thumbnail,
|
||||||
|
'duration': int_or_none(info.get('duration'), 1000),
|
||||||
}
|
}
|
||||||
formats = []
|
formats = []
|
||||||
if info.get('downloadable', False):
|
if info.get('downloadable', False):
|
||||||
|
Loading…
Reference in New Issue
Block a user