Implement torrentbytes

This commit is contained in:
KZ
2015-07-30 21:09:38 +01:00
parent 922583ea5d
commit 1606e3379f
8 changed files with 217 additions and 2 deletions

View File

@@ -1,10 +1,12 @@
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Web;
namespace Jackett.Utils
{
@@ -56,5 +58,9 @@ namespace Jackett.Utils
return String.Join("\n", fields);
}
public static string GetQueryString(this NameValueCollection collection)
{
return string.Join("&", collection.AllKeys.Select(a => a + "=" + HttpUtility.UrlEncode(collection[a])));
}
}
}