File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## Version 5.12.1
4+
5+ * Fixing #654 Failed to import attachment due to bad mime type gathering (thanks to larsk2)
6+
37## Version 5.12.0
48
59* Adding automatic downloads for rigaya encoders on Windows
Original file line number Diff line number Diff line change 55from fastflix .shared import clean_file_string
66
77
8- def image_type (file : Path ):
8+ def image_type (file : Path | str ):
99 mime_type = "image/jpeg"
1010 ext_type = "jpg"
11- if file . name . lower (). endswith ( "png" ) :
11+ if Path ( file ). suffix == "png" :
1212 mime_type = "image/png"
1313 ext_type = "png"
1414 return mime_type , ext_type
Original file line number Diff line number Diff line change 11#!/usr/bin/env python
22# -*- coding: utf-8 -*-
3- __version__ = "5.12.0 "
3+ __version__ = "5.12.1 "
44__author__ = "Chris Griffith"
You can’t perform that action at this time.
0 commit comments