[banshee] Podcasting: assume HTTP if no protocol in URL (bgo#729193)
- From: Andrés Aragoneses <aaragoneses src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] Podcasting: assume HTTP if no protocol in URL (bgo#729193)
- Date: Mon, 15 Dec 2014 00:58:49 +0000 (UTC)
commit 5371c3829ddb6555a6a178e58d2825caaecb620e
Author: Ankit <ankitstarski gmail com>
Date: Mon Dec 15 00:49:02 2014 +0530
Podcasting: assume HTTP if no protocol in URL (bgo#729193)
URLs which were not full (of the form protocol://address) were considered
as invalid. Let's test http:// as a default protocol before giving the user
an error.
Signed-off-by: Andrés G. Aragoneses <knocte gmail com>
.../Banshee.Podcasting.Gui/PodcastActions.cs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/Extensions/Banshee.Podcasting/Banshee.Podcasting.Gui/PodcastActions.cs
b/src/Extensions/Banshee.Podcasting/Banshee.Podcasting.Gui/PodcastActions.cs
index f77f749..e7c5591 100644
--- a/src/Extensions/Banshee.Podcasting/Banshee.Podcasting.Gui/PodcastActions.cs
+++ b/src/Extensions/Banshee.Podcasting/Banshee.Podcasting.Gui/PodcastActions.cs
@@ -343,7 +343,7 @@ namespace Banshee.Podcasting.Gui
return;
}
- if (!TryParseUrl (url, out feedUri)) {
+ if (!TryParseUrl (url, out feedUri) && !TryParseUrl ("http://" + url, out feedUri)) {
HigMessageDialog.RunHigMessageDialog (
null,
DialogFlags.Modal,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]