Skip to content

Releases

26a641bf-ls10

Choose a tag to compare

@github-actions github-actions released this 27 Nov 10:05

CI

Test report · Build status

LinuxServer changes

Full Changelog: 26a641bf-ls9...26a641bf-ls10

Upstream changes

Source: HTPC-Manager/HTPC-Manager@26a641b

Replace imghdr with filetype (#66)

imghdr has been removed from Python standard library with v3.13. filetype is a slim replacement. As a little bonus, it can return the valid MIME type for network response, while imghdr returns the the type as extension only.

A builtin replacement would be mimetypes, but it returns the MIME type from file extension, hence does not work with the extension is not present or correct. filetype obtains the type from actual file content, like imghdr used to do.

We could make it conditional, keep using imghdr if present, but that would IMO bload the code unnecessarily, and as said, the method actually returned an invalid MIME type to the network client, as long as cherrypy did not internally convert extension to MIME type.

Signed-off-by: MichaIng micha@dietpi.com

26a641bf-ls9

Choose a tag to compare

@github-actions github-actions released this 23 Nov 06:05

CI

Test report · Build status

LinuxServer changes

Full Changelog: 26a641bf-ls8...26a641bf-ls9

Upstream changes

Source: HTPC-Manager/HTPC-Manager@26a641b

Replace imghdr with filetype (#66)

imghdr has been removed from Python standard library with v3.13. filetype is a slim replacement. As a little bonus, it can return the valid MIME type for network response, while imghdr returns the the type as extension only.

A builtin replacement would be mimetypes, but it returns the MIME type from file extension, hence does not work with the extension is not present or correct. filetype obtains the type from actual file content, like imghdr used to do.

We could make it conditional, keep using imghdr if present, but that would IMO bload the code unnecessarily, and as said, the method actually returned an invalid MIME type to the network client, as long as cherrypy did not internally convert extension to MIME type.

Signed-off-by: MichaIng micha@dietpi.com

26a641bf-ls8

Choose a tag to compare

@github-actions github-actions released this 20 Nov 10:05

CI

Test report · Build status

LinuxServer changes

Full Changelog: 26a641bf-ls7...26a641bf-ls8

Upstream changes

Source: HTPC-Manager/HTPC-Manager@26a641b

Replace imghdr with filetype (#66)

imghdr has been removed from Python standard library with v3.13. filetype is a slim replacement. As a little bonus, it can return the valid MIME type for network response, while imghdr returns the the type as extension only.

A builtin replacement would be mimetypes, but it returns the MIME type from file extension, hence does not work with the extension is not present or correct. filetype obtains the type from actual file content, like imghdr used to do.

We could make it conditional, keep using imghdr if present, but that would IMO bload the code unnecessarily, and as said, the method actually returned an invalid MIME type to the network client, as long as cherrypy did not internally convert extension to MIME type.

Signed-off-by: MichaIng micha@dietpi.com

26a641bf-ls7

Choose a tag to compare

@github-actions github-actions released this 13 Nov 10:06

CI

Test report · Build status

LinuxServer changes

Full Changelog: 26a641bf-ls6...26a641bf-ls7

Upstream changes

Source: HTPC-Manager/HTPC-Manager@26a641b

Replace imghdr with filetype (#66)

imghdr has been removed from Python standard library with v3.13. filetype is a slim replacement. As a little bonus, it can return the valid MIME type for network response, while imghdr returns the the type as extension only.

A builtin replacement would be mimetypes, but it returns the MIME type from file extension, hence does not work with the extension is not present or correct. filetype obtains the type from actual file content, like imghdr used to do.

We could make it conditional, keep using imghdr if present, but that would IMO bload the code unnecessarily, and as said, the method actually returned an invalid MIME type to the network client, as long as cherrypy did not internally convert extension to MIME type.

Signed-off-by: MichaIng micha@dietpi.com

26a641bf-ls6

Choose a tag to compare

@github-actions github-actions released this 09 Nov 06:04

CI

Test report · Build status

LinuxServer changes

Full Changelog: 26a641bf-ls5...26a641bf-ls6

Upstream changes

Source: HTPC-Manager/HTPC-Manager@26a641b

Replace imghdr with filetype (#66)

imghdr has been removed from Python standard library with v3.13. filetype is a slim replacement. As a little bonus, it can return the valid MIME type for network response, while imghdr returns the the type as extension only.

A builtin replacement would be mimetypes, but it returns the MIME type from file extension, hence does not work with the extension is not present or correct. filetype obtains the type from actual file content, like imghdr used to do.

We could make it conditional, keep using imghdr if present, but that would IMO bload the code unnecessarily, and as said, the method actually returned an invalid MIME type to the network client, as long as cherrypy did not internally convert extension to MIME type.

Signed-off-by: MichaIng micha@dietpi.com

26a641bf-ls5

Choose a tag to compare

@github-actions github-actions released this 06 Nov 10:07

CI

Test report · Build status

LinuxServer changes

Full Changelog: 26a641bf-ls4...26a641bf-ls5

Upstream changes

Source: HTPC-Manager/HTPC-Manager@26a641b

Replace imghdr with filetype (#66)

imghdr has been removed from Python standard library with v3.13. filetype is a slim replacement. As a little bonus, it can return the valid MIME type for network response, while imghdr returns the the type as extension only.

A builtin replacement would be mimetypes, but it returns the MIME type from file extension, hence does not work with the extension is not present or correct. filetype obtains the type from actual file content, like imghdr used to do.

We could make it conditional, keep using imghdr if present, but that would IMO bload the code unnecessarily, and as said, the method actually returned an invalid MIME type to the network client, as long as cherrypy did not internally convert extension to MIME type.

Signed-off-by: MichaIng micha@dietpi.com

26a641bf-ls4

Choose a tag to compare

@github-actions github-actions released this 02 Nov 06:04

CI

Test report · Build status

LinuxServer changes

Full Changelog: 26a641bf-ls3...26a641bf-ls4

Upstream changes

Source: HTPC-Manager/HTPC-Manager@26a641b

Replace imghdr with filetype (#66)

imghdr has been removed from Python standard library with v3.13. filetype is a slim replacement. As a little bonus, it can return the valid MIME type for network response, while imghdr returns the the type as extension only.

A builtin replacement would be mimetypes, but it returns the MIME type from file extension, hence does not work with the extension is not present or correct. filetype obtains the type from actual file content, like imghdr used to do.

We could make it conditional, keep using imghdr if present, but that would IMO bload the code unnecessarily, and as said, the method actually returned an invalid MIME type to the network client, as long as cherrypy did not internally convert extension to MIME type.

Signed-off-by: MichaIng micha@dietpi.com

26a641bf-ls3

Choose a tag to compare

@github-actions github-actions released this 30 Oct 16:55

CI

Test report · Build status

LinuxServer changes

Full Changelog: 26a641bf-ls2...26a641bf-ls3

Upstream changes

Source: HTPC-Manager/HTPC-Manager@26a641b

Replace imghdr with filetype (#66)

imghdr has been removed from Python standard library with v3.13. filetype is a slim replacement. As a little bonus, it can return the valid MIME type for network response, while imghdr returns the the type as extension only.

A builtin replacement would be mimetypes, but it returns the MIME type from file extension, hence does not work with the extension is not present or correct. filetype obtains the type from actual file content, like imghdr used to do.

We could make it conditional, keep using imghdr if present, but that would IMO bload the code unnecessarily, and as said, the method actually returned an invalid MIME type to the network client, as long as cherrypy did not internally convert extension to MIME type.

Signed-off-by: MichaIng micha@dietpi.com

26a641bf-ls2

Choose a tag to compare

@github-actions github-actions released this 26 Oct 06:08

CI

Test report · Build status

LinuxServer changes

Full Changelog: 26a641bf-ls1...26a641bf-ls2

Upstream changes

Source: HTPC-Manager/HTPC-Manager@26a641b

Replace imghdr with filetype (#66)

imghdr has been removed from Python standard library with v3.13. filetype is a slim replacement. As a little bonus, it can return the valid MIME type for network response, while imghdr returns the the type as extension only.

A builtin replacement would be mimetypes, but it returns the MIME type from file extension, hence does not work with the extension is not present or correct. filetype obtains the type from actual file content, like imghdr used to do.

We could make it conditional, keep using imghdr if present, but that would IMO bload the code unnecessarily, and as said, the method actually returned an invalid MIME type to the network client, as long as cherrypy did not internally convert extension to MIME type.

Signed-off-by: MichaIng micha@dietpi.com

26a641bf-ls1

Choose a tag to compare

@github-actions github-actions released this 25 Oct 22:52

CI

Test report · Build status

LinuxServer changes

Full Changelog: https://github.com/linuxserver-playground/docker-htpcmanager/commits/26a641bf-ls1

Upstream changes

Source: HTPC-Manager/HTPC-Manager@26a641b

Replace imghdr with filetype (#66)

imghdr has been removed from Python standard library with v3.13. filetype is a slim replacement. As a little bonus, it can return the valid MIME type for network response, while imghdr returns the the type as extension only.

A builtin replacement would be mimetypes, but it returns the MIME type from file extension, hence does not work with the extension is not present or correct. filetype obtains the type from actual file content, like imghdr used to do.

We could make it conditional, keep using imghdr if present, but that would IMO bload the code unnecessarily, and as said, the method actually returned an invalid MIME type to the network client, as long as cherrypy did not internally convert extension to MIME type.

Signed-off-by: MichaIng micha@dietpi.com