File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 24
24
import youtube_dl
25
25
import os
26
26
27
- start = 101 ;
28
- end = 154 ;
27
+ input = ' ' + input ()
28
+ start = 1
29
+ end = input ('Number of videos:' )
29
30
30
31
# For fetching the title of the video in playlist
31
- cmd_code1 = 'py -m youtube_dl -e --playlist-start ' + str (start )+ ' --playlist-end ' + str (end )+ ' https://www.youtube.com/playlist?list=PLj6h78yzYM2PpmMAnvpvsnR4c27wJePh3'
32
+ cmd_code1 = 'py -m youtube_dl -e --playlist-start ' + str (start )+ ' --playlist-end ' + str (end )+ input
32
33
title = os .popen (cmd_code1 ).read ().splitlines ()
33
34
#print(title[0])
34
35
35
36
# For fetching the id of that particular video in playlist
36
- cmd_code2 = 'py -m youtube_dl --get-id --playlist-start ' + str (start )+ ' --playlist-end ' + str (end )+ ' https://www.youtube.com/playlist?list=PLj6h78yzYM2PpmMAnvpvsnR4c27wJePh3'
37
+ cmd_code2 = 'py -m youtube_dl --get-id --playlist-start ' + str (start )+ ' --playlist-end ' + str (end )+ input
37
38
video_id = os .popen (cmd_code2 ).read ().splitlines ()
38
39
39
40
print ('| Topic | Video | Presentation |' )
You can’t perform that action at this time.
0 commit comments