You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: