Heckie75 / kodi-addon-podcast

Subscribe to podcasts in KODI
MIT License
14 stars 3 forks source link

Episode duration #10

Closed stobb3s closed 3 years ago

stobb3s commented 3 years ago

New feature to display episode duration in the directory. Some RSS feeds include episode duration in the itunes:duration tag. This information can be in 3 forms:

The added code will add a new key duration to item which will contain the episode duration. This added to the ListItem information. The information is set for both music and video so the duration will display regardless of what mode the plugin is opened (Video add-on or Music add-on).

Here are some screenshots. For the default Estuary skin, the duration displays as a small icon in the bottom right. It displays duration only if the plugin is opened as a Video Add-on only. For Arctic Horizon and Confluence, the skin displays the duration in the Label2 position in the ListItem, and the duration displays when the plugin is a Video add-on and Music add-on both.

Estuary Screenshot Episode_Duration_Arctic_Horizon Episode_Duration_Confluence

Heckie75 commented 3 years ago

@stobb3s Thanks for the addition according the duration. I have merged and refactored it a little bit.

There is the new version pre6. I added also a new action in order to import only new feeds from gPodder that aren't imported and active yet. (I think about changing the order of process since it seems to be more intuitive to take a look at the new subscriptions and then to decide what the group should be to assign the new feed).

I think that we have made a big step! Many thanks for your support!

I hope that this is the final set - at least for the next release. I will play around with the addon the next days before I create a new PR in the addon repo.