Permalink
Browse files

- added a better keyword check and changed the screen output

  • Loading branch information...
1 parent e3e3612 commit eb2751071c698f771b05d8506b566a8a80f6ecb0 @bietiekay committed Apr 11, 2012
Showing with 7 additions and 4 deletions.
  1. +7 −4 Main.cs
View
11 Main.cs
@@ -61,9 +61,12 @@ public static void Main (string[] args2)
video = videoInfos.First(info => info.VideoFormat == job.DownloadVideoFormat);
}
catch(Exception)
- {
- Console.WriteLine("\t\tError: Video with the desired resolution is not available.");
+ {
+ //videoInfos = DownloadUrlResolver.GetDownloadUrls(url);
//video = videoInfos.First(info => info.VideoFormat == VideoFormat.Standard360);
+ Console.WriteLine("Error: Video with the desired resolution is not available ("+job.ChannelDownloadDirectory+")");
+ //video = videoInfos.First(info => info.VideoFormat == VideoFormat.Standard360);
+ continue;
}
if (video != null)
@@ -87,7 +90,7 @@ public static void Main (string[] args2)
}
else
{
- Console.Write("\t\tDownloading: " + ShortenString.LimitCharacters(video.Title, 40) + "...");
+ Console.Write("Downloading: " + ShortenString.LimitCharacters(video.Title, 40) + "...");
var videoDownloader = new VideoDownloader(video, filename);
Int32 left = Console.CursorLeft;
@@ -100,7 +103,7 @@ public static void Main (string[] args2)
}
catch(Exception e)
{
- Console.WriteLine("\t\tError: "+ShortenString.LimitCharacters(e.Message,40));
+ Console.WriteLine("Error: "+ShortenString.LimitCharacters(e.Message,40));
//video = videoInfos.First(info => info.VideoFormat == VideoFormat.Standard360);
}
Console.WriteLine("done ");

0 comments on commit eb27510

Please sign in to comment.