diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2019-02-28 07:35:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-28 07:35:41 +0100 |
commit | 249352c9d3d1f22f1f06d0c46c842984d7910d30 (patch) | |
tree | 11a7e72337010ed79b3440edee3ec41e31916b37 /lib/Db/Item.php | |
parent | 89d9b77994d564f4ef29db7cc7191c5cd87b8705 (diff) | |
parent | 7c17b2c24b1131ace6b464723978841566714f54 (diff) |
Merge pull request #282 from SMillerDev/switch_feedIO
Switch to feed-io for parsing
Diffstat (limited to 'lib/Db/Item.php')
-rw-r--r-- | lib/Db/Item.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/Db/Item.php b/lib/Db/Item.php index 1a8d284a2..3a17dd2cb 100644 --- a/lib/Db/Item.php +++ b/lib/Db/Item.php @@ -491,4 +491,18 @@ class Item extends Entity implements IAPI, \JsonSerializable $this->getEnclosureLink() ); } + + /** + * Check if a given mimetype is supported + * + * @param string $mime mimetype to check + * + * @return boolean + */ + public function isSupportedMime($mime) + { + return ( + stripos($mime, 'audio/') !== false || + stripos($mime, 'video/') !== false); + } } |