Просмотр исходного кода

Terminate the options to avoid issues with IDs that start with -

Zachary Kotlarek 11 лет назад
Родитель
Сommit
33c2834f12
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      yt/subscribe.pl

+ 1 - 1
yt/subscribe.pl

@@ -301,7 +301,7 @@ foreach my $id (keys(%{$videos})) {
 
 		# Let youtube-dl handle the URLs and downloading
 		{
-			my @args = ('--output', videoSE($videos->{$id}->{'season'}, $videos->{$id}->{'number'}) . '%(id)s.%(ext)s', $id);
+			my @args = ('--output', videoSE($videos->{$id}->{'season'}, $videos->{$id}->{'number'}) . '%(id)s.%(ext)s', '--', $id);
 			my @name = ($YTDL_BIN);
 			push(@name, @YTDL_ARGS);
 			my @fetch = @name;