mirror of
https://github.com/greenshot/greenshot
synced 2025-08-20 21:43:24 -07:00
Hacked the Imgur plugin to partly work with the version 3, so AnonymousAccess works. Added a more rough filtering for the language issues, fixed an update check, fixed a problem when closing the history and updated the readme.txt
This commit is contained in:
parent
213b332a66
commit
45c0e1efed
8 changed files with 59 additions and 39 deletions
|
@ -143,10 +143,15 @@ namespace GreenshotImgurPlugin
|
|||
try {
|
||||
XmlDocument doc = new XmlDocument();
|
||||
doc.LoadXml(response);
|
||||
XmlNodeList nodes = doc.GetElementsByTagName("hash");
|
||||
XmlNodeList nodes = doc.GetElementsByTagName("id");
|
||||
if(nodes.Count > 0) {
|
||||
imgurInfo.Hash = nodes.Item(0).InnerText;
|
||||
}
|
||||
nodes = doc.GetElementsByTagName("hash");
|
||||
if (nodes.Count > 0)
|
||||
{
|
||||
imgurInfo.Hash = nodes.Item(0).InnerText;
|
||||
}
|
||||
nodes = doc.GetElementsByTagName("deletehash");
|
||||
if(nodes.Count > 0) {
|
||||
imgurInfo.DeleteHash = nodes.Item(0).InnerText;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue