瀏覽代碼

Always set the track number, to avoid letting Plex guess

Zachary Kotlarek 11 年之前
父節點
當前提交
a441689480
共有 1 個文件被更改,包括 2 次插入 和 1 次删除
  1. 2 1
      rss.pl

+ 2 - 1
rss.pl

@@ -214,7 +214,7 @@ if (-e $RULE_FILE) {
 	localRules(\%episodes);
 } else {
 	foreach my $time (sort(keys(%episodes))) {
-		$episodes{$time}->{'title'} = time2str('%Y-%m-%d', $time) . ' - 1 - ' . $episodes{$time}->{'title'};
+		$episodes{$time}->{'title'} = time2str('%Y-%m-%d', $time) . ' - ' . $episodes{$time}->{'title'};
 	}
 }
 foreach my $time (keys(%episodes)) {
@@ -295,6 +295,7 @@ foreach my $time (sort(@need)) {
 		$tags->title($ep->{'title'});
 		$tags->year(time2str('%Y', $ep->{'time'}));
 		$tags->comment($ep->{'description'});
+		$tags->track(1);
 		$tags->album($SERIES);
 		$tags->artist($SERIES);
 		$tags->genre($GENRE);