[banshee/stable-2.6] 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/stable-2.6] Podcasting: assume HTTP if no protocol in URL (bgo#729193)
- Date: Mon, 15 Dec 2014 00:59:58 +0000 (UTC)
commit be398a852c15362932ebeadb1f03fd127cc0e880
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 619a4a0..4e19d29 100644
--- a/src/Extensions/Banshee.Podcasting/Banshee.Podcasting.Gui/PodcastActions.cs
+++ b/src/Extensions/Banshee.Podcasting/Banshee.Podcasting.Gui/PodcastActions.cs
@@ -341,7 +341,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]