diff --git a/.vs/youtube-downloader/v16/.suo b/.vs/youtube-downloader/v16/.suo index 49364bf..33b60a4 100644 Binary files a/.vs/youtube-downloader/v16/.suo and b/.vs/youtube-downloader/v16/.suo differ diff --git a/Server/Functions/Downloader.cs b/Server/Functions/Downloader.cs index 85286ab..86c7a54 100644 --- a/Server/Functions/Downloader.cs +++ b/Server/Functions/Downloader.cs @@ -82,11 +82,18 @@ namespace youtube_downloader.Server.Functions } if (canAdd) { - var items = await item.DownloadData(); - if(item.DownloadActualDataAfterwards) + try { - _DownloadVideos(items); - } + var items = await item.DownloadData(); + if (item.DownloadActualDataAfterwards) + { + _DownloadVideos(items); + } + }catch(Exception ex) + { + Console.WriteLine(ex.Message); + _ = ex; + } } } while (true); } diff --git a/Server/Models/InfomationQueueItem.cs b/Server/Models/InfomationQueueItem.cs index 996024b..77eb417 100644 --- a/Server/Models/InfomationQueueItem.cs +++ b/Server/Models/InfomationQueueItem.cs @@ -87,12 +87,12 @@ namespace youtube_downloader.Server.Models return new SavedVideoObject[] { sv }; } case InfoType.Playlist: - { + { List video2 = new List(); + List vo = new List(); SavedPlaylist pl = await SavedPlaylist.FromPlaylistId(res, Functions.Downloader.DL.ytc, Data, (e,f) => { vo.Add(e); }, Functions.Downloader.DL._DownloadThumbnail); string infpath = Functions.Downloader.DL.GetPath(true, "Playlist", Data + ".json"); File.WriteAllText(infpath, JsonConvert.SerializeObject(pl)); - List video2 = new List(); foreach(var str in vo) { string infPath = Functions.Downloader.DL.GetPath(true, "Info", str + ".json"); diff --git a/bin/Debug/youtube-downloader.exe b/bin/Debug/youtube-downloader.exe index 66e8f0a..78c2b6f 100644 Binary files a/bin/Debug/youtube-downloader.exe and b/bin/Debug/youtube-downloader.exe differ diff --git a/bin/Debug/youtube-downloader.pdb b/bin/Debug/youtube-downloader.pdb index cd63ab1..be560b6 100644 Binary files a/bin/Debug/youtube-downloader.pdb and b/bin/Debug/youtube-downloader.pdb differ diff --git a/obj/Debug/youtube-downloader.exe b/obj/Debug/youtube-downloader.exe index 66e8f0a..78c2b6f 100644 Binary files a/obj/Debug/youtube-downloader.exe and b/obj/Debug/youtube-downloader.exe differ diff --git a/obj/Debug/youtube-downloader.pdb b/obj/Debug/youtube-downloader.pdb index cd63ab1..be560b6 100644 Binary files a/obj/Debug/youtube-downloader.pdb and b/obj/Debug/youtube-downloader.pdb differ