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

+ 11 - 1
yt/subscribe.pl

@@ -437,6 +437,12 @@ sub buildNFO($) {
 	$doc->setStandalone(1);
 	my $show = $doc->createElement('episodedetails');
 	$doc->setDocumentElement($show);
+	my $file = $doc->createElement('fileinfo');
+	$show->appendChild($file);
+	my $stream = $doc->createElement('streamdetails');
+	$file->appendChild($stream);
+	my $stream_video = $doc->createElement('video');
+	$stream->appendChild($stream_video);
 	my $elm;
 
 	# Add data
@@ -469,9 +475,13 @@ sub buildNFO($) {
 	}
 
 	if (defined($video->{'duration'})) {
-		$elm = $doc->createElement('durationinseconds');
+		$elm = $doc->createElement('runtime');
 		$elm->appendText($video->{'duration'});
 		$show->appendChild($elm);
+
+		$elm = $doc->createElement('durationinseconds');
+		$elm->appendText($video->{'duration'});
+		$stream_video->appendChild($elm);
 	}
 
 	if (defined($video->{'rating'})) {