Share AntennaPod subscribe link instead of RSS url (#6835)

Apparently users are confused by RSS links.
This commit is contained in:
ByteHamster 2023-12-31 11:08:30 +01:00 committed by GitHub
parent 9db26b7bab
commit 28edb71fd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View File

@ -10,6 +10,7 @@ import androidx.core.app.ShareCompat;
import androidx.core.content.FileProvider; import androidx.core.content.FileProvider;
import java.io.File; import java.io.File;
import java.net.URLEncoder;
import de.danoeh.antennapod.core.R; import de.danoeh.antennapod.core.R;
import de.danoeh.antennapod.model.feed.Feed; import de.danoeh.antennapod.model.feed.Feed;
@ -33,12 +34,12 @@ public class ShareUtils {
} }
public static void shareFeedLink(Context context, Feed feed) { public static void shareFeedLink(Context context, Feed feed) {
String text = feed.getTitle(); String text = feed.getTitle()
if (feed.getLink() != null) { + "\n\n"
text += "\n" + feed.getLink(); + "https://antennapod.org/deeplink/subscribe/?url="
} + URLEncoder.encode(feed.getDownload_url())
text += "\n\n" + context.getResources().getString(R.string.share_rss_address_label) + "&title="
+ " " + feed.getDownload_url(); + URLEncoder.encode(feed.getTitle());
shareLink(context, text); shareLink(context, text);
} }

View File

@ -185,7 +185,6 @@
<string name="remove_feed_label">Remove podcast</string> <string name="remove_feed_label">Remove podcast</string>
<string name="share_label">Share</string> <string name="share_label">Share</string>
<string name="share_file_label">Share file</string> <string name="share_file_label">Share file</string>
<string name="share_rss_address_label">RSS address:</string>
<string name="feed_delete_confirmation_msg">Please confirm that you want to delete the podcast \"%1$s\", ALL its episodes (including downloaded episodes), and its statistics.</string> <string name="feed_delete_confirmation_msg">Please confirm that you want to delete the podcast \"%1$s\", ALL its episodes (including downloaded episodes), and its statistics.</string>
<string name="feed_delete_confirmation_msg_batch">Please confirm that you want to remove the selected podcasts, ALL their episodes (including downloaded episodes), and its statistics.</string> <string name="feed_delete_confirmation_msg_batch">Please confirm that you want to remove the selected podcasts, ALL their episodes (including downloaded episodes), and its statistics.</string>
<string name="feed_delete_confirmation_local_msg">Please confirm that you want to remove the podcast \"%1$s\" and its statistics. The files in the local source folder will not be deleted.</string> <string name="feed_delete_confirmation_local_msg">Please confirm that you want to remove the podcast \"%1$s\" and its statistics. The files in the local source folder will not be deleted.</string>