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

Update feed URL when redirected #1394

Merged
merged 1 commit into from
Nov 27, 2015

Conversation

mfietz
Copy link
Contributor

@mfietz mfietz commented Nov 18, 2015

Frankly, inceptor is not the only solution, but the easiest.

Another would be the HttpDownloader, but it gets far more complicated. We would have to check prior requests, if one of those was redirected. Then, the DownloadRequest source (download url) would have to be non-final. Next, we would have to check any code that used the DownloadRequest if it assumes the source field to be final and so on (e.g. when removing the requests from the current downloads).

I think it is easier to update the field when we encounter a redirect. I don't think there is any other reason for a feed URL to change, so we actually don't need to update a saved feed's URL when refreshing the same.

@mfietz mfietz added this to the FUTURE milestone Nov 18, 2015
@TomHennen TomHennen mentioned this pull request Nov 21, 2015
@TomHennen
Copy link
Contributor

fixes #1393

@TomHennen TomHennen modified the milestones: 1.4.1, FUTURE Nov 27, 2015
TomHennen added a commit that referenced this pull request Nov 27, 2015
@TomHennen TomHennen merged commit f169a26 into AntennaPod:develop Nov 27, 2015
@mfietz mfietz deleted the issue/1393-feed-redirect branch February 7, 2016 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants