aimok04 / kitshn

Unofficial Tandoor client for Android devices
https://kitshn.app
GNU General Public License v3.0
63 stars 6 forks source link

Display videos associated with the steps #15

Closed aimok04 closed 1 month ago

aimok04 commented 1 month ago

It would be cool to display ~the image~ or the video associated with the step, just like the web version (except that the web version does not display the videos, at least for me)

Originally posted by @dertasiu in https://github.com/aimok04/kitshn/issues/14

split issue because implementing video is more difficult

aimok04 commented 1 month ago

Hi @dertasiu 👋 This feature is also implemented now. You'll need to include "video" somewhere in the file name if you want to use it (e.g. "video_step_one.mp4") because the Tandoor api does not disclose the file type before download.

The feature will be available in version v1.0.0-alpha.9.

dertasiu commented 1 month ago

Amazing! I will be updating all my recipes and get back to you!. Thank you!!

dertasiu commented 1 month ago

It works very well! I just changed the names with this SQL query to concat "video_" to the name of every .mp4 file in the database. UPDATE cookbook_userfile SET name = concat('video_', name) WHERE file LIKE '%mp4'; It's a bummer that tandoor doesn't expose the extension of the file or the MIME type in the API, but this solution is more than enough. Thank you very much!