Selaa lähdekoodia

Note "extra" videos for easier handling

Zachary Kotlarek 12 vuotta sitten
vanhempi
sitoutus
a423ee4c8f
1 muutettua tiedostoa jossa 7 lisäystä ja 0 poistoa
  1. 7 0
      yt/subscribe.pl

+ 7 - 0
yt/subscribe.pl

@@ -219,6 +219,13 @@ if (!$NO_FILES) {
 	$files = findFiles($dir);
 	$files = findFiles($dir);
 }
 }
 
 
+# Whine about unknown videos
+foreach my $id (keys(%{$files})) {
+	if (!exists($videos->{$id})) {
+		print STDERR 'Local video not known to YT: ' . $id . "\n";
+	}
+}
+
 # Fill in missing videos and NFOs
 # Fill in missing videos and NFOs
 foreach my $id (keys(%{$videos})) {
 foreach my $id (keys(%{$videos})) {
 	my $basePath = $dir . '/S01E' . sprintf('%02d', $videos->{$id}->{'number'}) . ' - ' . $id . '.';
 	my $basePath = $dir . '/S01E' . sprintf('%02d', $videos->{$id}->{'number'}) . ' - ' . $id . '.';