Skip to content

Commit

Permalink
Merge pull request JabbR#242 from sethwebster/convert-to-IList
Browse files Browse the repository at this point in the history
switched to IList<string>
  • Loading branch information
sethwebster committed Dec 15, 2011
2 parents 33235ca + 8b04712 commit 8aed089
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions JabbR/ContentProviders/YoutubeContentProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,16 @@ public override IEnumerable<string> Domains
}
}

protected override IEnumerable<string> ExtractParameters(Uri responseUri)
protected override IList<string> ExtractParameters(Uri responseUri)
{
var queryString = HttpUtility.ParseQueryString(responseUri.Query);
string videoId = queryString["v"];

if (!String.IsNullOrEmpty(videoId))
{
yield return videoId;
return new List<string>() { videoId };
}
return null;
}
}
}

0 comments on commit 8aed089

Please sign in to comment.