omansak / libvideo

A lightweight .NET library to download YouTube videos.
BSD 2-Clause "Simplified" License
553 stars 163 forks source link

Video with hyphen in video ID doesn't work #137

Closed mphacker closed 4 years ago

mphacker commented 5 years ago

If I try to pass in a URL that has a video ID which has a hyphen it throws an error: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. at VideoLibrary.Helpers.Query.get_Item(String key) at VideoLibrary.YouTube.Unscramble(String queryString) at System.Linq.Enumerable.WhereSelectArrayIterator2.MoveNext() at VideoLibrary.YouTube.<ParseVideos>d__6.MoveNext() at System.Linq.Enumerable.First[TSource](IEnumerable1 source) at VideoLibrary.ServiceBase1.VideoSelector(IEnumerable1 videos) at VideoLibrary.ServiceBase`1.d__6.MoveNext()

Sample video with the issue: https://www.youtube.com/watch?v=V9-oZtSZBcc

omansak commented 4 years ago

Fixed. Update 3.0.0