@@ -128,6 +128,8 @@ def main():
128
128
prefix = "https://www.youtube.com"
129
129
opts = ''
130
130
args = ''
131
+ start = 0
132
+ end = 0
131
133
path = "playlist"
132
134
# url = input("Enter the Youtube-url\n")
133
135
# name = input("Enter the name for the video\n")
@@ -138,6 +140,8 @@ def main():
138
140
help = "Complete download link of the playlist" , type = str )
139
141
parser .add_argument ('-l' , '--list' , nargs = '?' ,
140
142
help = "List id of the playlist" , type = str )
143
+ parser .add_argument ('-s' , '--start' , nargs = '?' ,
144
+ help = "Start no. of playlist" , type = int )
141
145
args = parser .parse_args ()
142
146
143
147
if args .url :
@@ -147,6 +151,9 @@ def main():
147
151
else :
148
152
print (parser .parse_args (['--help' ]))
149
153
154
+ if args .start :
155
+ start = args .start
156
+
150
157
try :
151
158
152
159
# Phantom JS
@@ -184,6 +191,9 @@ def main():
184
191
os .system ('mkdir %s' % path )
185
192
186
193
for i , (_url ) in enumerate (_urls ):
194
+ if i + 1 < start :
195
+ continue
196
+
187
197
_name = _url .string .replace ('\n ' , '' ).replace (
188
198
' ' , '' ).replace (',' , '' ).replace ('.' , '' )
189
199
0 commit comments