Spaces:
Running
Running
DebasishDhal99
commited on
Commit
•
793f723
1
Parent(s):
8cd4b7a
Update playlists_mismatch.py
Browse files- playlists_mismatch.py +2 -2
playlists_mismatch.py
CHANGED
@@ -79,11 +79,11 @@ def playlists_mismatch_func(playlistlink1, playlistlink2, output):
|
|
79 |
firstnotsecond = list(set(vid1_ids) - set(vid2_ids))
|
80 |
secondnotfirst = list(set(vid2_ids) - set(vid1_ids))
|
81 |
if output == 'id':
|
82 |
-
return firstnotsecond, secondnotfirst
|
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
|
87 |
elif output == 'name':
|
88 |
firstnotsecond = [get_video_name(i) for i in firstnotsecond]
|
89 |
secondnotfirst = [get_video_name(i) for i in secondnotfirst]
|
|
|
79 |
firstnotsecond = list(set(vid1_ids) - set(vid2_ids))
|
80 |
secondnotfirst = list(set(vid2_ids) - set(vid1_ids))
|
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]
|
89 |
secondnotfirst = [get_video_name(i) for i in secondnotfirst]
|