Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Share AntennaPod subscribe link instead of RSS url #6835

Merged
merged 1 commit into from
Dec 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import androidx.core.content.FileProvider;

import java.io.File;
import java.net.URLEncoder;

import de.danoeh.antennapod.core.R;
import de.danoeh.antennapod.model.feed.Feed;
Expand All @@ -33,12 +34,12 @@ public static void shareLink(@NonNull Context context, @NonNull String text) {
}

public static void shareFeedLink(Context context, Feed feed) {
String text = feed.getTitle();
if (feed.getLink() != null) {
text += "\n" + feed.getLink();
}
text += "\n\n" + context.getResources().getString(R.string.share_rss_address_label)
+ " " + feed.getDownload_url();
String text = feed.getTitle()
+ "\n\n"
+ "https://antennapod.org/deeplink/subscribe/?url="
+ URLEncoder.encode(feed.getDownload_url())
+ "&title="
+ URLEncoder.encode(feed.getTitle());
shareLink(context, text);
}

Expand Down
1 change: 0 additions & 1 deletion ui/i18n/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@
<string name="remove_feed_label">Remove podcast</string>
<string name="share_label">Share</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_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>
Expand Down