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

Add structures for chapter parsing #38

Merged
merged 4 commits into from
Jun 19, 2018
Merged

Add structures for chapter parsing #38

merged 4 commits into from
Jun 19, 2018

Conversation

janw
Copy link
Owner

@janw janw commented Jun 19, 2018

Most podcasts implement chapters inside of the media files, which are currently not parsed by Tape Drive. The more sound approach though is the use of a podcast's feed to deliver chapter information, as the feed is parsed anyway and the media files should not have to be touched to deliver metadata – the only implementation that I know of is the @podlove specification of "Podlove Simple-Chapters" which are easily parsable from the feed.

This PR implements parsing of podlove's simple-chapters into a a dedicated database structure, and basic front-end display in the episode details modal as a chapter list. Future extension will have to be implemented separately, especially considering the planned front-end restructuring via #37.

All future implementations to parse chapter implementations of other kinds will be mildly forced to comply with the simple-chapters structure of basically four parts of relevant info (as of simple-chapters spec v1.2):

  1. start (timestamp)
  2. title
  3. link (href, optional)
  4. image (optional)

To stick with the general theme of Tape Drive (moving relevant information into the database, instead of fetching it on demand), chapter imagery is downloaded at time of feed/chapter parsing and saved to the filesystem for later use.

In addition to that, the PR subtly adds Django Rest Framework as a dependency as a starting point for a new proper api implementation.

@janw janw merged commit 750c8d8 into master Jun 19, 2018
@janw janw deleted the chapter-parsing branch May 4, 2019 12:53
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.

1 participant