Add a few new ways to drag/drop a URL - from a few Chrome extensions or the page URL itself - page URL only supports single links right now

This commit is contained in:
2016-03-29 20:10:43 -04:00
parent 9a73709c7f
commit 864be9bb11
6 changed files with 81 additions and 15 deletions

View File

@@ -99,6 +99,18 @@ namespace FeedCenter
return await Task.Run(() => Read(database, forceRead));
}
public Tuple<FeedType, string> DetectFeedType()
{
var retrieveResult = RetrieveFeed();
if (retrieveResult.Item1 != FeedReadResult.Success)
{
return new Tuple<FeedType, string>(FeedType.Unknown, string.Empty);
}
return new Tuple<FeedType, string>(FeedParserBase.DetectFeedType(retrieveResult.Item2), retrieveResult.Item2);
}
private Tuple<FeedReadResult, string> RetrieveFeed()
{
try