Parcourir la source

Merge branch 'master' of github.com:profplump/UberZach-Video

Zachary Kotlarek il y a 11 ans
Parent
commit
34c62985f7
2 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      yt/subscribe.pl
  2. BIN
      yt/youtube-dl

+ 2 - 1
yt/subscribe.pl

@@ -1005,7 +1005,7 @@ sub parseVideoData($) {
 sub calcVideoData($) {
 	my ($video) = @_;
 
-	if ($video->{'publishedAt'}) {
+	if ($video->{'publishedAt'} && !$video->{'date'}) {
 		$video->{'date'} = str2time($video->{'publishedAt'});
 	}
 	if ($video->{'date'}) {
@@ -1144,6 +1144,7 @@ sub localMetadata($$) {
 		}
 	}
 	close($fh);
+	calcVideoData($video);
 }
 
 sub findVideos($) {

BIN
yt/youtube-dl