From 1940fadd5307a11fd64ab26c43fbc31764c213a1 Mon Sep 17 00:00:00 2001 From: Tithen-Firion Date: Sun, 30 Nov 2014 19:36:24 +0100 Subject: [PATCH] [myspace] Handle non-playable songs I'm adding this because sometimes there is a song page, but you cannot play it. Example: https://myspace.com/starset2/music/song/let-it-die-maniac-agenda-remix-bonus-track-95799916-106964439 It will be useful for downloading whole album with songs like this. --- youtube_dl/extractor/myspace.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/myspace.py b/youtube_dl/extractor/myspace.py index 1a118a37f..843e1f24a 100644 --- a/youtube_dl/extractor/myspace.py +++ b/youtube_dl/extractor/myspace.py @@ -53,9 +53,17 @@ def _real_extract(self, url): if mobj.group('mediatype').startswith('music/song'): # songs don't store any useful info in the 'context' variable + song_data = self._search_regex( + r'''