mirror of
https://github.com/Sarsoo/IF.Lastfm.git
synced 2024-10-17 07:13:09 +01:00
Better fix for LastWiki
This commit is contained in:
parent
6516dac271
commit
03e36191ab
@ -26,11 +26,10 @@ internal static LastWiki ParseJToken(JToken token)
|
|||||||
Content = token.Value<string>("content").Trim(),
|
Content = token.Value<string>("content").Trim(),
|
||||||
YearFormed = token.Value<int>("yearformed")
|
YearFormed = token.Value<int>("yearformed")
|
||||||
};
|
};
|
||||||
try
|
|
||||||
{
|
if (!string.IsNullOrEmpty(token.Value<string>("published")))
|
||||||
wiki.Published = token.Value<DateTime>("published");
|
wiki.Published = token.Value<DateTime>("published");
|
||||||
}
|
|
||||||
catch { }
|
|
||||||
return wiki;
|
return wiki;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user