Skip to content

Suggestion: Mimetypes by type without subtype #33

@shiribailem

Description

@shiribailem

It's been a while since I dug into this project (just haven't been following any podcasts these days), but with a recent update over mimetypes a thought popped in my mind.

I figured I'd add it here since I'm in no state to set up and test myself right now.

Perhaps use either a split("/") or str.startswith() to test the first half of the mimetype only.

As all mimetypes podfox works with are either audio or video types, this would save managing the subtypes in a list.

Possible code around line 195:

if hasattr(link, 'type') and (link.type.split("/")[0] in ("audio", "video")):

If nothing else, it's something I'm sure someone can bang their head against and come up with a solution to

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions