mirror of
https://github.com/ckaczor/FeedCenter.git
synced 2026-02-16 10:58:31 -05:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user