Spaces:
Running
Running
DebasishDhal99
commited on
Commit
•
51c58f2
1
Parent(s):
3556819
Trying to return clickable links instead of just text links
Browse files- playlists_mismatch.py +2 -2
playlists_mismatch.py
CHANGED
@@ -81,8 +81,8 @@ def playlists_mismatch_func(playlistlink1, playlistlink2, output='link'):
|
|
81 |
if output == 'id':
|
82 |
return firstnotsecond, secondnotfirst, playlist1name, playlist2name
|
83 |
elif output == 'link':
|
84 |
-
firstnotsecond = [f"https://youtu.be/{i}" for i in firstnotsecond]
|
85 |
-
secondnotfirst = [f"https://youtu.be/{i}" for i in secondnotfirst]
|
86 |
return firstnotsecond, secondnotfirst, playlist1name, playlist2name
|
87 |
elif output == 'name':
|
88 |
firstnotsecond = [get_video_name(i) for i in firstnotsecond]
|
|
|
81 |
if output == 'id':
|
82 |
return firstnotsecond, secondnotfirst, playlist1name, playlist2name
|
83 |
elif output == 'link':
|
84 |
+
firstnotsecond = [f'<a href="https://youtu.be/{i}">{i}</a>' for i in firstnotsecond]
|
85 |
+
secondnotfirst = [f'<a href="https://youtu.be/{i}">{i}</a>' for i in secondnotfirst]
|
86 |
return firstnotsecond, secondnotfirst, playlist1name, playlist2name
|
87 |
elif output == 'name':
|
88 |
firstnotsecond = [get_video_name(i) for i in firstnotsecond]
|