Antennapod: Podcast episodes added via iTunes or URL do not add increase the play time statistic when marked as played manually

Created on 5 Feb 2019  Â·  4Comments  Â·  Source: AntennaPod/AntennaPod

App version: 1.7.1 (from F-Droid)
Android version: 8.1.0 (LineageOS)
Device model: Samsung Galaxy S5 (SM-G900F)

Expected behaviour:
Episodes marked as played manually should increase the play time in the statistics of it's podcast.
The statistics should show (for example):
„1 from 75 episodes started“
„0.5 from 0.5 hours played“

Current behaviour:
The episode is added to the „started episodes“ but does not increase the played time.
The statistics only show (for example):
„1 from 75 episodes started“
„0.0 from 0.0 hours played.“

First occured: Version 1.7.1, but I cannot say if it also occurs in older versions.

Steps to reproduce:

  1. add a podcast via iTunes or a URL
  2. open the podcast
  3. mark an episode as played manually
  4. go to the statistics
  5. choose the statistics mode which sums up the time of all episodes marked as played
  6. look at the play time of the added podcast

I have noticed that this does not occur with all podcast URLs – some podcasts which “work” as expected:
https://chaosradio.de/feed/opus
https://www.deutschlandfunk.de/podcast-deutschlandfunk-der-tag.3417.de.podcast.xml
https://rechtsbelehrung.com/feed/podcast
https://www.kuechenstud.io/lagedernation/feed/mp3/

And here are some examples where the statistics do not work as expected:
https://schlusskonferenz.podigee.io/feed/mp3
https://podcast-news.podigee.io/feed/aac
(basically all Podcasts hosted on podigee.io)
http://www.ard.de/static/radio/radiofeature/rss/podcast.xml
https://audiothek.ardmediathek.de/programsets/21676038/synd_rss?offset=0&limit=12
https://audiothek.ardmediathek.de/programsets/46142064/synd_rss?offset=0&limit=12
(basically all podcasts from audiothek.ardmediathek.de)

enhancement good first issue

Most helpful comment

I can submit a PR later today to fix this.

All 4 comments

@benediktg It might have to be due to whether the podcast feeds supply the duration of the episodes.

I checked a few of the supplied feeds.

  1. those from ardmediathek.de do not have duration, in other words, AntennaPod simply does not know how long an episode is (without actually downloading). If you go to Episodes screen, you would notice those episodes show the file size, but not the duration.
  1. Those from chaosradio.de supply proper duration, e.g., <itunes:duration>02:02:53</itunes:duration>

  2. The one from podigee.io supply duration in the form of <itunes:duration>11485</itunes:duration> . It's possible that AntennaPod does not recognize the format, or maybe it is not even a proper duration to begin with. I don't know off hand.

@benediktg Can we consider this issue to be resolved?

https://help.apple.com/itc/podcasts_connect/#/itcb54353390 says about the <itunes:duration> tag:

If you specify a single number as a value (without colons), Apple Podcasts displays the value as seconds.

Should Antennapod also recognize this seconds-only format?

I can submit a PR later today to fix this.

Was this page helpful?
0 / 5 - 0 ratings