DebasishDhal99 commited on
Commit
f8be5b5
1 Parent(s): 51c58f2

Trying to return links of videos

Browse files
Files changed (1) hide show
  1. 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'<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]
 
81
  if output == 'id':
82
  return firstnotsecond, secondnotfirst, playlist1name, playlist2name
83
  elif output == 'link':
84
+ firstnotsecond = [f"<a href='https://youtu.be/{vid}'>https://youtu.be/{vid}</a>" for vid in firstnotsecond]
85
+ secondnotfirst = [f"<a href='https://youtu.be/{vid}'>https://youtu.be/{vid}</a>" for vid in secondnotfirst]
86
  return firstnotsecond, secondnotfirst, playlist1name, playlist2name
87
  elif output == 'name':
88
  firstnotsecond = [get_video_name(i) for i in firstnotsecond]