From 90553875a6c8095bd31afc80aee3ea2e39c03958 Mon Sep 17 00:00:00 2001 From: WMP Date: Fri, 7 Jul 2017 19:39:04 +0200 Subject: [PATCH] Show youtube link in manual mode (#102) (Fixes #101) My changes for #101 issue --- spotdl.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spotdl.py b/spotdl.py index 5a92563..6b95312 100755 --- a/spotdl.py +++ b/spotdl.py @@ -76,8 +76,9 @@ def generate_youtube_url(raw_song): for x in items_parse.find_all('h3', {'class': 'yt-lockup-title'}): # confirm the video result is not an advertisement if x.find('channel') is None and x.find('googleads') is None: - print(u'{0}. {1}'.format(check, x.get_text())) - links.append(x.find('a')['href']) + link = x.find('a')['href'] + links.append(link) + print(u'{0}. {1} {2}'.format(check, x.get_text(), "http://youtube.com"+link)) check += 1 print('') # let user select the song to download