mirror of
https://github.com/claunia/cuetools.net.git
synced 2025-12-16 18:14:25 +00:00
* CUERipper: was still sometimes locking drives it didn't need to
* ArCueDotNet: don't search for cover art * 'Silent track' diagnostics in AR log * LAME.dll: settings were not used * libwavpack: settings were not used (MD5Sum & extra mode) * workarounds for various Mono bugs * Path formatting: %discnumber% produces two-digit numbers if %totaldiscs% > 9 * Overwrite dialog: list files, 'remember the choice' option * Doesn't abort on broken Artwork files * Better locates files in some complicated cases, e.g. when only some tracks have tracknumber tags * Folder browser now sorts contents, because OS didn't do it when browsing external drives etc
This commit is contained in:
@@ -7,6 +7,7 @@ using System.Management;
|
||||
using System.Net;
|
||||
using System.Xml;
|
||||
using System.Text;
|
||||
using System.Security.Cryptography;
|
||||
using CUETools.CDImage;
|
||||
using CUETools.AccurateRip;
|
||||
using Krystalware.UploadHelper;
|
||||
@@ -172,19 +173,22 @@ namespace CUETools.CTDB
|
||||
{
|
||||
if (uuidInfo == null)
|
||||
{
|
||||
ManagementClass mc = new ManagementClass("Win32_ComputerSystemProduct");
|
||||
foreach (ManagementObject mo in mc.GetInstances())
|
||||
{
|
||||
uuidInfo = mo.Properties["UUID"].Value.ToString();
|
||||
break;
|
||||
}
|
||||
string id = "CTDB userid";
|
||||
using (ManagementClass mc = new ManagementClass("Win32_ComputerSystemProduct"))
|
||||
foreach (ManagementObject mo in mc.GetInstances())
|
||||
{
|
||||
id = id + mo.Properties["UUID"].Value.ToString();
|
||||
break;
|
||||
}
|
||||
byte[] hashBytes = (new SHA1CryptoServiceProvider()).ComputeHash(Encoding.ASCII.GetBytes(id));
|
||||
uuidInfo = Convert.ToBase64String(hashBytes).Replace('+', '.').Replace('/', '_').Replace('=', '-');
|
||||
}
|
||||
return uuidInfo ?? "unknown";
|
||||
return uuidInfo;
|
||||
}
|
||||
|
||||
public string Confirm(DBEntry entry)
|
||||
{
|
||||
HttpWebRequest req = (HttpWebRequest)WebRequest.Create(urlbase + "/confirm.php?tocid=" + toc.TOCID + "&id=" + entry.id);
|
||||
HttpWebRequest req = (HttpWebRequest)WebRequest.Create(urlbase + "/confirm.php?tocid=" + toc.TOCID + "&id=" + entry.id + "&userid=" + GetUUID());
|
||||
req.Method = "GET";
|
||||
req.Proxy = proxy;
|
||||
req.UserAgent = userAgent;
|
||||
|
||||
Reference in New Issue
Block a user